SHARE
TWEET

Untitled

Conkee Apr 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. YCMD:racc(playerid, params[], help)
  2. {
  3.     #pragma unused help
  4.     if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UG:RP| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
  5.     if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, -1, ""CRVENA".::(( UltraG ))::. "SIVA"Gospodine niste ovlasteni :P.");
  6.     if(RespawnVozila == 1) return SCM(playerid, -1, ""CRVENA"[GRESKA] "BELA"Respawn je vec pokrenut!");
  7.     new string[128]; RespawnVozila = 1;
  8.     format(string,sizeof string, ""SRWBOJA"<<< "BELA"Admin %s je pokrenuo respawn SVIH vozila! "SRWBOJA">>>", GetName(playerid));
  9.     SendClientMessageToAll(-1, string);
  10.     SendClientMessageToAll(-1, ""SRWBOJA"<<< "BELA"Udjite u svoje vozilo ukoliko zelite da ga zadrzite! "SRWBOJA">>>");
  11.  
  12.     new b_Used[MAX_VOZILA char];
  13.     foreach(Player, i)
  14.         if(IsPlayerInAnyVehicle(i))
  15.             b_Used{GetPlayerVehicleID(i)} = true;
  16.  
  17.     for(new i = 0; i < MAX_VOZILA; ++i)
  18.         if(!b_Used{i} && GetVehicleModel(i))
  19.             RTC(i);
  20.  
  21.     RespawnVozila = 0;
  22.     SendClientMessageToAll(-1, ""SRWBOJA"<<< "SRWBOJA"Vozila Respawnovana "SRWBOJA">>>");
  23.     return 1;
  24. }
  25. ////////////////////////////////////////////////////////////////////////////////
  26. forward Respawn();
  27. public Respawn()
  28. {
  29.     new bool:b_Used[MAX_VOZILA];
  30.     foreach(Player, i)
  31.         if(IsPlayerInAnyVehicle(i))
  32.             b_Used[GetPlayerVehicleID(i)] = true;
  33.  
  34.     for(new car = 593; car < MAX_VOZILA; car++)
  35.         if(!b_Used[car])
  36.             RTC(car);
  37.  
  38.     RespawnVozila = 0;
  39.     SendClientMessageToAll(-1, ""SRWBOJA"<<< "SRWBOJA"Privatna Vozila Respawnovana "SRWBOJA">>>");
  40.     return 1;
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top