Skocz do zawartości

Kaimsoon

Użytkownik
  • Zawartość

    316
  • Rejestracja

  • Ostatnia wizyta

O Kaimsoon

  • Tytuł
    Zaawansowany
  • Urodziny 01.08.1999

Kontakt

  • Gadu-Gadu
    45825096

Informacje profilowe

  • Płeć
    Mężczyzna

Informacje o serwerze

  • Typ serwera
    Nie wybrano

Ostatnie wizyty

2097 wyświetleń profilu
  1. Kaimsoon

    Gmemode DM do SA: MP 0.3.7, ma ktoś?

    żadne.
  2. Kaimsoon

    Konfiguracja SA: MP na pukawka.pl

    Wrzucasz gm w formacie .amx do folderu gamemodes, wrzucasz plugin w formacie .so do folderu plugins (jeśli nie ma to stwórz), wrzuć pliki do folderu scriptfiles jeśli gm takie posiada, a następnie skonfiguruj server.cfg wpisując pluginy i gamemoda
  3. Kaimsoon

    Konfiguracja SA: MP na pukawka.pl

    Hosting tu nie ma znaczenia bo sam kiedyś z niego korzystałem i nie miałem żadnych problemów na pewno coś źle robisz
  4. Kaimsoon

    Konfiguracja SA: MP na pukawka.pl

    No tak jak wszędzie nie rozumiem w czym problem
  5. Kaimsoon

    sprzedam autorski skrypt serwisu z filmami erotycznymi

    Też tak sądzę, 500zł za taki skrypt?? tanio cuś
  6. Kaimsoon

    GTA: TAG MAP

    Po co robić z tego program? Równie dobrze mogłeś wrzucić tu sam obraz i na to samo by wyszło
  7. Kaimsoon

    jak zrobić warunek w PHP?

    Podobnie jak w pawn, wystarczy poszukać w necie http://www.capaciouscore.pl/kursy/kurs-php/instrukcje-warunkowe-if-elseif-else/
  8. Kaimsoon

    Kłopot z audio!

    Zgaduję że pobrałeś wersje która zajmuje około 1GB, z tego co się orientuję są tam wycięte dzwięki. Kup originalną gre, lub pobierz. z innego źródła
  9. Kaimsoon

    DD, errory.

    removeIsEvent(remove_id){ #if defined _zz if(Iter_Contains(z_z_players, remove_id)) { Iter_Remove(z_z_players, remove_id); if(script_zz[statees] == true){ SpawnPlayer(remove_id); } event_saved(); } return 1; } #endif #if defined _derby if(Iter_Contains(d_d_players, remove_id)) { Iter_Remove(d_d_players, remove_id); if(script_dd[statees] == true){ SpawnPlayer(remove_id); } event_saved(); return 1; } Jesli to nie zadziała spróbuj tak removeIsEvent(remove_id){ #if defined _zz if(Iter_Contains(z_z_players, remove_id)) { Iter_Remove(z_z_players, remove_id); if(script_zz[statees] == true){ SpawnPlayer(remove_id); } event_saved(); return 1; } #endif #if defined _derby if(Iter_Contains(d_d_players, remove_id)) { Iter_Remove(d_d_players, remove_id); if(script_dd[statees] == true){ SpawnPlayer(remove_id); } event_saved(); return 1; } return 0; }
  10. Kaimsoon

    DD, errory.

    Czyli zapewne błąd leży gdzie indziej, wklej cały kod tutaj http://codegenerators.pl i przelicz klamry(musi być tyle samo otwierających ( { ), co zamykających ( } )
  11. Kaimsoon

    DD, errory.

    sry, mała poprawka #define _derby 1 #define d_d_start_players 2 #define d_d_start_players_max 100 removeIsEvent(remove_id) { #if defined _zz if(Iter_Contains(z_z_players, remove_id)) { Iter_Remove(z_z_players, remove_id); if(script_zz[statees] == true) { SpawnPlayer(remove_id); } event_saved(); } return 1; } #endif #if defined _derby if(Iter_Contains(d_d_players, remove_id)) { Iter_Remove(d_d_players, remove_id); if(script_dd[statees] == true) { SpawnPlayer(remove_id); } event_saved(); } return 1; #endif enum d_d_event { winreed, bool:statees, bool:starting, Timer, autho[MAX_PLAYERS + 2], _spawn[MAX_PLAYERS], arena, load_aren } new script_dd[d_d_event]; new Iterator:d_d_players<d_d_start_players_max>; //new Iterator:d_d_vehicles<MAX_PLAYERS>; #define MAX_DD_AREN 20 #define MAX_DD_AREN_SP 100 #define stats_dd 4 new bool:event_status[20]; new dd_losowanie[MAX_DD_AREN]; enum dd_arens{ dd_name[80], uid, loades, bool: ACTIVE, dd_vehicle }; new script_dd_aren[MAX_DD_AREN][dd_arens]; enum dd_arens_{ Float:possek[4] }; new script_dd_spawn[MAX_DD_AREN][MAX_DD_AREN_SP][dd_arens_]; Hook:dd_OnPlayerConnect(playerid){ if(Iter_Contains(d_d_players, playerid)){ Iter_Remove(d_d_players, playerid); } return 1; } Hook:dd_OnPlayerDisconnect(playerid, reason) { if(Iter_Contains(d_d_players, playerid)) { Iter_Remove(d_d_players, playerid); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid, 1); if(Iter_Count(d_d_players) == 1) { foreach (new u : d_d_players) { if(!IsPlayerConnected(u)) continue; script_dd[winreed] = u; break; } } } event_saved(); return 1; } Hook:dd_OnPlayerDeath(playerid, killerid, reason) { if(script_dd[statees] == true && Iter_Contains(d_d_players, playerid)) { Iter_Remove(d_d_players, playerid); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid, 1); SetPlayerRandomColor(playerid); if(Iter_Count(d_d_players) == 1) { foreach (new u : d_d_players) { if(!IsPlayerConnected(u)) continue; script_dd[winreed] = u; break; } } event_saved(); return 1; } return 1; } CMD:ddexit(playerid, params[]) { if(removeIsEvent(playerid) == 0)return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Nie jesteś zapisany(a) na żaden event"); SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Wypisałeś(aś) się z Derbów."); return 1; } CMD:dd(playerid, params[]) { if(Iter_Contains(d_d_players, playerid))return SendClientMessage(playerid, RED, "{FF0000} *(DDb} Jesteś już zapisany(a) na Derby"); if(Iter_Count(d_d_players) >= script_dd_aren[script_dd[arena]][loades] && script_dd[starting] == true) return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Na Derby zapisało się zbyt dużo osób, spróbuj w następnej kolejce."); if(script_dd[statees] == true) return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Derby aktualnie trwają"); if(event_status[stats_dd] == true) return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Ten event aktualnie jest wyłączony przez administratora"); removeIsEvent(playerid); Iter_Add(d_d_players, playerid); if(Iter_Count(d_d_players) >= d_d_start_players && script_dd[statees] == false && script_dd[starting] == false) { start_dd(); script_dd[starting] = true; } event_saved(); SSendClientMessage(playerid, GREEN, "{FFFFFF} *(DD){/b} Zapisałeś(aś) się na Derby."); return 1; } stock start_dd(){ if(script_dd[load_aren] == 0) { Iter_Clear(d_d_players); event_saved(); script_dd[starting] = false; return SendClientMessageToAll(RED, "{FF0000} *(DD){/b} Derby nie mogą wystartować z powodu braku areny"); } event_saved(); if(script_dd[starting] == true) return 1; new losuj = dd_losowanie[random(script_dd[load_aren])]; if(script_dd_aren[losuj][active] == false) return start_dd(); script_dd[arena] = losuj; SetTimer("script_dd_Go", 20000, 0); started_ev(1, 20); SendClientMessageToAll(EVENT_STARTED, "(start -> event)›Derby wystartują za {b}20 sekund {/b}Zapisy nadal trwają (/DD)"); return 1; } forward script_dd_Go(); public script_dd_Go() { script_dd[starting] = false; if(Iter_Count(d_d_players) <= 1) { KillTimer(script_dd[Timer]); Iter_Clear(d_d_players); script_dd[statees] = false; SendClientMessageToAll(RED, "{FF0000} *(DD){/b} Derby nie wystartowały z powodu braku graczy."); return 1; } script_dd[winreed] = INVALID_PLAYER_ID; event_saved(); SendClientMessageToAll(INFO, "{FFFFFF} *(DD){/b} Derby wystartowały!"); ////(); //(); new spawn; //Streamer_UpdateEx(p, script_dd_spawn[script_dd[arena]] [0][possek][0], script_dd_spawn[script_dd[arena]][0][possek][1], script_dd_spawn[script_dd[arena]][0][possek][2]); foreach (new p : d_d_players) { if(!IsPlayerConnected(p)) continue; //Streamer_Update(p); //if(p > sizeof(script_dd_spawn[script_dd[arena]]))break; SetPlayerArmour(p, 0.0); obiect_on(p); ResetPlayerWeapons(p); SetPlayerVirtualWorld(p, 147); SetPlayerInterior(p, 0); RemovePlayerFromVehicle(p); SetPlayerPos(p, script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2] + 11.0); SetPlayerFacingAngle(p, script_dd_spawn[script_dd[arena]][spawn][possek][3]); script_dd[_spawn][p] = spawn; spawn++; PlayerEventTDSet(p, "Derby", "Startuje"); } foreach (new p : d_d_players){ TogglePlayerControllable(p, 0); } script_dd[statees] = true; SetTimer("script_dd_veh", 1000, 0); return 1; } forward script_dd_veh(); public script_dd_veh(){ #define spawn script_dd[_spawn][p] foreach (new p : d_d_players) { SetPlayerPos(p, script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2] + 11.0); SetPlayerFacingAngle(p, script_dd_spawn[script_dd[arena]][spawn][possek][3]); script_dd[autho][p] = CreatePlayerVehicle(p, script_dd_aren[script_dd[arena]][dd_vehicle], true); //CreateVehicle(script_dd_aren[script_dd[arena]][dd_vehicle], script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2], script_dd_spawn[script_dd[arena]][spawn][possek][3] + 8.0, -1, -1, 99999); SetVehicleVirtualWorld(script_dd[autho][p], 147); SetPlayerHealth(p, 100.0); PutPlayerInVehicle(p, script_dd[autho][p], 0); //SendClientMessage(p, GREEN, "ID Twojego pojazdu to: %d", script_dd[autho][p]); TogglePlayerControllable(p, 0); SetVehiclePos(script_dd[autho][p], script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2] + 5.0); } #undef spawn SetTimerEx("script_dd_rlg", 1000, 0, "d", 3); } forward script_dd_rlg(czas); public script_dd_rlg(czas) { if(script_dd[statees] != true) return 1; if(czas > 0){ format(string2, sizeof(string2), "~g~Start za: ~r~%d", czas); foreach (new i : d_d_players){ new Float:pos[4]; GetPlayerPos(i, pos[0], pos[1], pos[2]); if(pos[2] < script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][2]){ SetVehiclePos(script_dd[autho][i], script_dd_spawn[script_dd[arena]] [script_dd[_spawn][i]][possek][0], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][1], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][2] + 1.0); } PlayerEventTDSet(i, "Derby", string2); } SetTimerEx("script_dd_rlg", 1000, 0, "d", czas - 1); return 1; } foreach (new i : d_d_players) { if(!IsPlayerConnected(i)) continue; TogglePlayerControllable(i, 1); SetVehiclePos(script_dd[autho][i], script_dd_spawn[script_dd[arena]] [script_dd[_spawn][i]][possek][0], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][1], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][2] + 2.0); PlayerEventTDSet(i, "Derby", "Trwa"); } script_dd[Timer] = SetTimer("script_dd_update", 1000, 1); return 1; } forward script_dd_update(); public script_dd_update() { if(script_dd[statees] != true) return 1; if(Iter_Count(d_d_players) == 0) { //(); KillTimer(script_dd[Timer]); Iter_Clear(d_d_players); script_dd[statees] = false; SendClientMessageToAll(RED, "{FF0000} *(DD){/b} Derby zostały zakończona z powodu braku graczy."); return 1; } if(Iter_Count(d_d_players) == 1) { KillTimer(script_dd[Timer]); foreach (new p : d_d_players) { if(!IsPlayerConnected(p)) continue; SetPlayerRandomColor(p); SetPlayerVirtualWorld(p, 0); TogglePlayerControllable(p, 1); SetPlayerHealth(p, 100.0); ResetPlayerWeapons(p); script_dd[statees] = false; SpawnPlayer(p); new kasy = random(10000), score = random(100); givePlayerExp(p, score); givePlayerMoney(p, kasy); format(ee_stri, sizeof(ee_stri), " %s (%d) po raz %d wygrał {b}/DD{/b}. I otrzymuje {b}%d Score i %d${/b} ", playerNick(p), p, addPointEvent(p, stats_dd), score, kasy); SendClientMessageToAll(ORANGE, ee_stri); Iter_Remove(d_d_players, p); break; } Iter_Clear(d_d_players); //(); script_dd[statees] = false; return 1; } if(script_dd[winreed] != INVALID_PLAYER_ID) { KillTimer(script_dd[Timer]); new kasy = random(10000), score = random(100); givePlayerMoney(script_dd[winreed], kasy); givePlayerExp(script_dd[winreed], score); format(ee_stri, sizeof(ee_stri), " %s (%d) wygrał {b}/DD{/b}. I otrzymuje {b}%d Score i %d${/b} ", playerNick(script_dd[winreed]), script_dd[winreed], addPointEvent(script_dd[winreed], stats_dd), score, kasy); SendClientMessageToAll(ORANGE, ee_stri); //(); script_dd[statees] = false; foreach (new p : d_d_players) { SpawnPlayer(p); } Iter_Clear(d_d_players); event_saved(); return 1; } new Float:player_possek[4], next; format(ee_stri, sizeof(ee_stri), "~r~Graczy. ~g~%d", Iter_Count(d_d_players)); foreach (new p : d_d_players) { if(!IsPlayerConnected(p)) continue; PlayerEventTDSet(p, "Derby", ee_stri); GetPlayerPos(p, player_possek[0], player_possek[1], player_possek[2]); if(floatround(player_possek[2]) <= 0 || pInfo[p][player_afk]){ SpawnPlayer(p); SetPlayerRandomColor(p); Iter_SafeRemove(d_d_players, p, next); p = next; } if(!IsPlayerInRangeOfPoint(p, 900.0, script_dd_spawn[script_dd[arena]] [0][possek][0], script_dd_spawn[script_dd[arena]][0][possek][1], script_dd_spawn[script_dd[arena]][0][possek][2])){ SpawnPlayer(p); SetPlayerRandomColor(p); Iter_SafeRemove(d_d_players, p, next); p = next; } if(!IsPlayerInAnyVehicle(p)) { SetPlayerRandomColor(p); SpawnPlayer(p); Iter_SafeRemove(d_d_players, p, next); p = next; } } event_saved(); return 1; } ////////////////////////////
  12. Kaimsoon

    Czy mozna jakoś uniknąć zapłaty za mandat za parkowanie

    Mój znajomy gdy dostał mandat i nie zapłacił, po pół roku przyszedł do niego komornik, ale że jeszczę się uczy to jakoś się dogadali i nic nie musiał płacić.
  13. Kaimsoon

    DD, errory.

    26 errorów czyli błąd klamer, łap poprawiony kod: #define _derby 1 #define d_d_start_players 2 #define d_d_start_players_max 100 removeIsEvent(remove_id){ #if defined _zz if(Iter_Contains(z_z_players, remove_id)) { Iter_Remove(z_z_players, remove_id); if(script_zz[statees] == true){ SpawnPlayer(remove_id); } event_saved(); return 1; } #endif #if defined _derby if(Iter_Contains(d_d_players, remove_id)) { Iter_Remove(d_d_players, remove_id); if(script_dd[statees] == true){ SpawnPlayer(remove_id); } event_saved(); return 1; } } #endif enum d_d_event { winreed, bool:statees, bool:starting, Timer, autho[MAX_PLAYERS + 2], _spawn[MAX_PLAYERS], arena, load_aren } new script_dd[d_d_event]; new Iterator:d_d_players<d_d_start_players_max>; //new Iterator:d_d_vehicles<MAX_PLAYERS>; #define MAX_DD_AREN 20 #define MAX_DD_AREN_SP 100 #define stats_dd 4 new bool:event_status[20]; new dd_losowanie[MAX_DD_AREN]; enum dd_arens{ dd_name[80], uid, loades, bool: ACTIVE, dd_vehicle }; new script_dd_aren[MAX_DD_AREN][dd_arens]; enum dd_arens_{ Float:possek[4] }; new script_dd_spawn[MAX_DD_AREN][MAX_DD_AREN_SP][dd_arens_]; Hook:dd_OnPlayerConnect(playerid){ if(Iter_Contains(d_d_players, playerid)){ Iter_Remove(d_d_players, playerid); } return 1; } Hook:dd_OnPlayerDisconnect(playerid, reason) { if(Iter_Contains(d_d_players, playerid)) { Iter_Remove(d_d_players, playerid); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid, 1); if(Iter_Count(d_d_players) == 1) { foreach (new u : d_d_players) { if(!IsPlayerConnected(u)) continue; script_dd[winreed] = u; break; } } } event_saved(); return 1; } Hook:dd_OnPlayerDeath(playerid, killerid, reason) { if(script_dd[statees] == true && Iter_Contains(d_d_players, playerid)) { Iter_Remove(d_d_players, playerid); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid, 1); SetPlayerRandomColor(playerid); if(Iter_Count(d_d_players) == 1) { foreach (new u : d_d_players) { if(!IsPlayerConnected(u)) continue; script_dd[winreed] = u; break; } } event_saved(); return 1; } return 1; } CMD:ddexit(playerid, params[]) { if(removeIsEvent(playerid) == 0)return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Nie jesteś zapisany(a) na żaden event"); SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Wypisałeś(aś) się z Derbów."); return 1; } CMD:dd(playerid, params[]) { if(Iter_Contains(d_d_players, playerid))return SendClientMessage(playerid, RED, "{FF0000} *(DDb} Jesteś już zapisany(a) na Derby"); if(Iter_Count(d_d_players) >= script_dd_aren[script_dd[arena]][loades] && script_dd[starting] == true) return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Na Derby zapisało się zbyt dużo osób, spróbuj w następnej kolejce."); if(script_dd[statees] == true) return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Derby aktualnie trwają"); if(event_status[stats_dd] == true) return SendClientMessage(playerid, RED, "{FF0000} *(DD){/b} Ten event aktualnie jest wyłączony przez administratora"); removeIsEvent(playerid); Iter_Add(d_d_players, playerid); if(Iter_Count(d_d_players) >= d_d_start_players && script_dd[statees] == false && script_dd[starting] == false) { start_dd(); script_dd[starting] = true; } event_saved(); SSendClientMessage(playerid, GREEN, "{FFFFFF} *(DD){/b} Zapisałeś(aś) się na Derby."); return 1; } STOCK start_dd(){ if(script_dd[load_aren] == 0) { Iter_Clear(d_d_players); event_saved(); script_dd[starting] = false; return SendClientMessageToAll(RED, "{FF0000} *(DD){/b} Derby nie mogą wystartować z powodu braku areny"); } event_saved(); if(script_dd[starting] == true) return 1; new losuj = dd_losowanie[random(script_dd[load_aren])]; if(script_dd_aren[losuj][ ACTIVE] == false) return start_dd(); script_dd[arena] = losuj; SetTimer("script_dd_Go", 20000, 0); started_ev(1, 20); SendClientMessageToAll(EVENT_STARTED, "(start -> event)›Derby wystartują za {b}20 sekund {/b}Zapisy nadal trwają (/DD)"); return 1; } forward script_dd_Go(); public script_dd_Go() { script_dd[starting] = false; if(Iter_Count(d_d_players) <= 1) { KillTimer(script_dd[Timer]); Iter_Clear(d_d_players); script_dd[statees] = false; SendClientMessageToAll(RED, "{FF0000} *(DD){/b} Derby nie wystartowały z powodu braku graczy."); return 1; } script_dd[winreed] = INVALID_PLAYER_ID; event_saved(); SendClientMessageToAll(INFO, "{FFFFFF} *(DD){/b} Derby wystartowały!"); ////(); //(); new spawn; //Streamer_UpdateEx(p, script_dd_spawn[script_dd[arena]] [0][possek][0], script_dd_spawn[script_dd[arena]][0][possek][1], script_dd_spawn[script_dd[arena]][0][possek][2]); foreach (new p : d_d_players) { if(!IsPlayerConnected(p)) continue; //Streamer_Update(p); //if(p > sizeof(script_dd_spawn[script_dd[arena]]))break; SetPlayerArmour(p, 0.0); obiect_on(p); ResetPlayerWeapons(p); SetPlayerVirtualWorld(p, 147); SetPlayerInterior(p, 0); RemovePlayerFromVehicle(p); SetPlayerPos(p, script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2] + 11.0); SetPlayerFacingAngle(p, script_dd_spawn[script_dd[arena]][spawn][possek][3]); script_dd[_spawn][p] = spawn; spawn++; PlayerEventTDSet(p, "Derby", "Startuje"); } foreach (new p : d_d_players){ TogglePlayerControllable(p, 0); } script_dd[statees] = true; SetTimer("script_dd_veh", 1000, 0); return 1; } forward script_dd_veh(); public script_dd_veh(){ #define spawn script_dd[_spawn][p] foreach (new p : d_d_players) { SetPlayerPos(p, script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2] + 11.0); SetPlayerFacingAngle(p, script_dd_spawn[script_dd[arena]][spawn][possek][3]); script_dd[autho][p] = CreatePlayerVehicle(p, script_dd_aren[script_dd[arena]][dd_vehicle], true); //CreateVehicle(script_dd_aren[script_dd[arena]][dd_vehicle], script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2], script_dd_spawn[script_dd[arena]][spawn][possek][3] + 8.0, -1, -1, 99999); SetVehicleVirtualWorld(script_dd[autho][p], 147); SetPlayerHealth(p, 100.0); PutPlayerInVehicle(p, script_dd[autho][p], 0); //SendClientMessage(p, GREEN, "ID Twojego pojazdu to: %d", script_dd[autho][p]); TogglePlayerControllable(p, 0); SetVehiclePos(script_dd[autho][p], script_dd_spawn[script_dd[arena]][spawn][possek][0], script_dd_spawn[script_dd[arena]][spawn][possek][1], script_dd_spawn[script_dd[arena]][spawn][possek][2] + 5.0); } #undef spawn SetTimerEx("script_dd_rlg", 1000, 0, "d", 3); } forward script_dd_rlg(czas); public script_dd_rlg(czas) { if(script_dd[statees] != true) return 1; if(czas > 0){ format(string2, sizeof(string2), "~g~Start za: ~r~%d", czas); foreach (new i : d_d_players){ new Float:pos[4]; GetPlayerPos(i, pos[0], pos[1], pos[2]); if(pos[2] < script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][2]){ SetVehiclePos(script_dd[autho][i], script_dd_spawn[script_dd[arena]] [script_dd[_spawn][i]][possek][0], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][1], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][2] + 1.0); } PlayerEventTDSet(i, "Derby", string2); } SetTimerEx("script_dd_rlg", 1000, 0, "d", czas - 1); return 1; } foreach (new i : d_d_players) { if(!IsPlayerConnected(i)) continue; TogglePlayerControllable(i, 1); SetVehiclePos(script_dd[autho][i], script_dd_spawn[script_dd[arena]] [script_dd[_spawn][i]][possek][0], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][1], script_dd_spawn[script_dd[arena]][script_dd[_spawn][i] ][possek][2] + 2.0); PlayerEventTDSet(i, "Derby", "Trwa"); } script_dd[Timer] = SetTimer("script_dd_update", 1000, 1); return 1; } forward script_dd_update(); public script_dd_update() { if(script_dd[statees] != true) return 1; if(Iter_Count(d_d_players) == 0) { //(); KillTimer(script_dd[Timer]); Iter_Clear(d_d_players); script_dd[statees] = false; SendClientMessageToAll(RED, "{FF0000} *(DD){/b} Derby zostały zakończona z powodu braku graczy."); return 1; } if(Iter_Count(d_d_players) == 1) { KillTimer(script_dd[Timer]); foreach (new p : d_d_players) { if(!IsPlayerConnected(p)) continue; SetPlayerRandomColor(p); SetPlayerVirtualWorld(p, 0); TogglePlayerControllable(p, 1); SetPlayerHealth(p, 100.0); ResetPlayerWeapons(p); script_dd[statees] = false; SpawnPlayer(p); new kasy = random(10000), score = random(100); givePlayerExp(p, score); givePlayerMoney(p, kasy); format(ee_stri, sizeof(ee_stri), " %s (%d) po raz %d wygrał {b}/DD{/b}. I otrzymuje {b}%d Score i %d${/b} ", playerNick(p), p, addPointEvent(p, stats_dd), score, kasy); SendClientMessageToAll(ORANGE, ee_stri); Iter_Remove(d_d_players, p); break; } Iter_Clear(d_d_players); //(); script_dd[statees] = false; return 1; } if(script_dd[winreed] != INVALID_PLAYER_ID) { KillTimer(script_dd[Timer]); new kasy = random(10000), score = random(100); givePlayerMoney(script_dd[winreed], kasy); givePlayerExp(script_dd[winreed], score); format(ee_stri, sizeof(ee_stri), " %s (%d) wygrał {b}/DD{/b}. I otrzymuje {b}%d Score i %d${/b} ", playerNick(script_dd[winreed]), script_dd[winreed], addPointEvent(script_dd[winreed], stats_dd), score, kasy); SendClientMessageToAll(ORANGE, ee_stri); //(); script_dd[statees] = false; foreach (new p : d_d_players) { SpawnPlayer(p); } Iter_Clear(d_d_players); event_saved(); return 1; } new Float:player_possek[4], next; format(ee_stri, sizeof(ee_stri), "~r~Graczy. ~g~%d", Iter_Count(d_d_players)); foreach (new p : d_d_players) { if(!IsPlayerConnected(p)) continue; PlayerEventTDSet(p, "Derby", ee_stri); GetPlayerPos(p, player_possek[0], player_possek[1], player_possek[2]); if(floatround(player_possek[2]) <= 0 || pInfo[p][player_afk]){ SpawnPlayer(p); SetPlayerRandomColor(p); Iter_SafeRemove(d_d_players, p, next); p = next; } if(!IsPlayerInRangeOfPoint(p, 900.0, script_dd_spawn[script_dd[arena]] [0][possek][0], script_dd_spawn[script_dd[arena]][0][possek][1], script_dd_spawn[script_dd[arena]][0][possek][2])){ SpawnPlayer(p); SetPlayerRandomColor(p); Iter_SafeRemove(d_d_players, p, next); p = next; } if(!IsPlayerInAnyVehicle(p)) { SetPlayerRandomColor(p); SpawnPlayer(p); Iter_SafeRemove(d_d_players, p, next); p = next; } } event_saved(); return 1; }
  14. Kaimsoon

    Problem z textdrawem.

    SetPlayerSkinEx(playerid, skinid) { SetSpawnInfo(playerid, NO_TEAM, skinid, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0); //NOTEAM SetPlayerSkin(playerid, skinid); format(StrEasy, sizeof StrEasy, "~g~~h~Skin: ~w~~h~%d", skinid); PlayerTextDrawSetString(playerid, TextPlayerMenu[4], StrEasy); return 1; }
×