Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. YCMD:avozilo(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(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"LG:RP | "CRVENA"Ne mozete koristiti ovu komandu dok ste u vozilu.");
  6. if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
  7. {
  8. if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"LG:RP | "SIVA"Morate biti na Admin & GameMaster duznosti!");
  9. if(GetPVarInt(playerid, "stvorioavozilo") == 0) ShowModelSelectionMenu(playerid, vozilolist, "Admin/Gm Vozila");
  10. else if(GetPVarInt(playerid, "stvorioavozilo") == 1)
  11. {
  12. DestroyVehicle(AdminVozilo[playerid]);
  13. Delete3DTextLabel(avehl[playerid]);
  14. AdminVozilo[playerid] = -1;
  15. SetPVarInt(playerid, "stvorioavozilo", 0);
  16. SCM(playerid,-1,""srw_boja"AVOZILO | "BELA"Unistili ste Admin & GM Vozilo.");
  17. }
  18. }
  19. else return SCM(playerid,-1,""HZELENA"* Niste ovlasceni,da koristite ovu komandu");
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement