Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. YCMD:apopravi(playerid, params[],help)
  2. {
  3. #pragma unused help
  4. if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"LG:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
  5. if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pGM] < 1) return SCM(playerid,-1,""HZELENA"* Niste ovlasceni,da koristite ovu komandu");
  6. new giveplayerid,pplayerid;
  7. if(!IsPlayerInAnyVehicle(playerid))
  8. {
  9. new string[128];
  10. RepairVehicle(GetPlayerVehicleID(playerid));
  11. SetVehicleHealth(GetPlayerVehicleID(playerid), 999.0);
  12. format(string,sizeof(string),""SRWBOJA"A | "BELA"%s je popravio vozilo!",GetName(playerid));
  13. AdminGameMaster(-1, string);
  14. SCM(playerid,-1,""CRVENA"* Popravili ste vozilo!");
  15. }
  16. else
  17. {
  18. new string[128];
  19. if(sscanf(params, "i", giveplayerid)) return SCM(playerid,-1, "LG:RP Pomoc | "SPLAVA"/apopravi [ID/Ime]");
  20. if(pplayerid == IPI) return SCM(playerid,-1, ""CRVENA"(GRESKA) "SIVA"Pogresan ID!");
  21. if(!IsPlayerInAnyVehicle(giveplayerid)) return SCM(playerid, -1, ""CRVENA"ERROR: "CRVENA"Taj igrac nije u vozilu.");
  22. RepairVehicle(GetPlayerVehicleID(giveplayerid));
  23. SetVehicleHealth(GetPlayerVehicleID(giveplayerid), 999.0);
  24. format(string,sizeof(string),""SRWBOJA"A | "BELA"%s je popravio vozilo igracu "SRWBOJA"%s",GetName(playerid),GetName(giveplayerid));
  25. AdminGameMaster(-1, string);
  26. SCM(playerid,-1,""CRVENA"* Popravili ste vozilo!");
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement