Advertisement
DexyHendrix

Untitled

Dec 13th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. CMD:pvozila(playerid,params[])
  2. {
  3. new Float:Pos[4];
  4. new vehid = GetPlayerVehicleID(playerid);
  5. if(PlayerInfo[playerid][pAdmin] < 5) return GRESKA(playerid,"Nemate ovlascenje!");
  6. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  7. GetPlayerFacingAngle(playerid,Pos[3]);
  8. CarInfo[vehid][cOriginLocationx] = Pos[0];
  9. CarInfo[vehid][cOriginLocationy] = Pos[1];
  10. CarInfo[vehid][cOriginLocationz] = Pos[2];
  11. CarInfo[vehid][cOriginAngle] = Pos[3];
  12. SacuvajAuto(vehid);
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement