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,""CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
- new Float:Pos[4];
- GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""SIVA"Morate biti na Admin duznosti!");
- if(AdminVozilo[playerid] == -1)
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, 0, alarm, doors, bonnet, boot, objective);
- vozilo1 = CreateVehicle(579,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
- PutPlayerInVehicle(playerid,vozilo1,0);
- AdminVozilo[playerid] = vozilo1;
- SCM(playerid,-1,""CRVENA"Stvorili ste Admin vozilo.");
- }
- else if(AdminVozilo[playerid] != -1)
- {
- DestroyVehicle(AdminVozilo[playerid]);
- AdminVozilo[playerid] = -1;
- SCM(playerid,-1,""CRVENA"Unistili ste Admin vozilo.");
- }
- }
- else return SCM(playerid,-1,""SIVA"Samo Admini.");
- return 1;
- }
Add Comment
Please, Sign In to add comment