Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:apopravi(playerid, params[],help)
- {
- #pragma unused help
- if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"LG:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
- if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pGM] < 1) return SCM(playerid,-1,""HZELENA"* Niste ovlasceni,da koristite ovu komandu");
- new giveplayerid,pplayerid;
- if(!IsPlayerInAnyVehicle(playerid))
- {
- new string[128];
- RepairVehicle(GetPlayerVehicleID(playerid));
- SetVehicleHealth(GetPlayerVehicleID(playerid), 999.0);
- format(string,sizeof(string),""SRWBOJA"A | "BELA"%s je popravio vozilo!",GetName(playerid));
- AdminGameMaster(-1, string);
- SCM(playerid,-1,""CRVENA"* Popravili ste vozilo!");
- }
- else
- {
- new string[128];
- if(sscanf(params, "i", giveplayerid)) return SCM(playerid,-1, "LG:RP Pomoc | "SPLAVA"/apopravi [ID/Ime]");
- if(pplayerid == IPI) return SCM(playerid,-1, ""CRVENA"(GRESKA) "SIVA"Pogresan ID!");
- if(!IsPlayerInAnyVehicle(giveplayerid)) return SCM(playerid, -1, ""CRVENA"ERROR: "CRVENA"Taj igrac nije u vozilu.");
- RepairVehicle(GetPlayerVehicleID(giveplayerid));
- SetVehicleHealth(GetPlayerVehicleID(giveplayerid), 999.0);
- format(string,sizeof(string),""SRWBOJA"A | "BELA"%s je popravio vozilo igracu "SRWBOJA"%s",GetName(playerid),GetName(giveplayerid));
- AdminGameMaster(-1, string);
- SCM(playerid,-1,""CRVENA"* Popravili ste vozilo!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement