Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:avozilo(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(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"LG:RP | "CRVENA"Ne mozete koristiti ovu komandu dok ste u vozilu.");
- if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"LG:RP | "SIVA"Morate biti na Admin & GameMaster duznosti!");
- if(GetPVarInt(playerid, "stvorioavozilo") == 0) ShowModelSelectionMenu(playerid, vozilolist, "Admin/Gm Vozila");
- else if(GetPVarInt(playerid, "stvorioavozilo") == 1)
- {
- DestroyVehicle(AdminVozilo[playerid]);
- Delete3DTextLabel(avehl[playerid]);
- AdminVozilo[playerid] = -1;
- SetPVarInt(playerid, "stvorioavozilo", 0);
- SCM(playerid,-1,""srw_boja"AVOZILO | "BELA"Unistili ste Admin & GM Vozilo.");
- }
- }
- else return SCM(playerid,-1,""HZELENA"* Niste ovlasceni,da koristite ovu komandu");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement