Vedrann

Untitled

May 11th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.28 KB | None | 0 0
  1. CMD:vipgetcar(playerid, params[])
  2. {
  3.     if(PlayerInfo[playerid][pVip] < 1)
  4.         return Greska(playerid, "Nemate dozvolu da koristite ovu komandu!");
  5.  
  6.     new vehid,
  7.         Float:Poz_X,
  8.         Float:Poz_Y,
  9.         Float:Poz_Z,
  10.         Float:Angle,
  11.         string[70];
  12.  
  13.     new Vozilo_1 = PlayerInfo[playerid][pVozilo_1],
  14.         Vozilo_2 = PlayerInfo[playerid][pVozilo_2], Vozilo_3 = PlayerInfo[playerid][pVozilo_3];
  15.  
  16.     if(sscanf(params, "i", vehid))
  17.         return Koristi(playerid, "/vipgetcar [ID Vozila]");
  18.    
  19.     if(vehid == IVI)
  20.         return Greska(playerid, "Pogresan ID vozila!");
  21.  
  22.     if(vehid != Vozilo_1 || vehid != Vozilo_2 || vehid != Vozilo_3 )
  23.         return Greska(playerid, "Mozete samo ID svog vozila da portujete ( /v )");
  24.        
  25.     if(WARPInfo[playerid][war_ID] != -1)
  26.         return Greska(playerid, "Ne mozete koristiti ovu komandu dok ste u waru!");
  27.  
  28.     GetPlayerPos(playerid, Poz_X, Poz_Y, Poz_Z);
  29.     GetPlayerFacingAngle(playerid, Angle);
  30.     F_SetVehiclePos(vehid, Poz_X, Poz_Y+3, Poz_Z);
  31.     SetVehicleZAngle(vehid, Angle);
  32.  
  33.     SetVehicleVirtualWorld(vehid, GetPlayerVirtualWorld(playerid));
  34.  
  35.     format(string, sizeof(string),""IGBOJA"[Info]  "BIJELA"Portovali ste vozilo ID: %d do sebe!", vehid);
  36.     SCM(playerid, -1,string);
  37.  
  38.     return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment