Advertisement
AlexRap

Untitled

Nov 8th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. CMD:closestcar(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pAdmin] < 2)return SCM(playerid, -1, AdminOnly);
  4. new closecar = GetClosestVehicle2(playerid, 10000);
  5. PutPlayerInVehicle(playerid, closecar, 0);
  6. return 1;
  7. }
  8. new Float:spx, Float:spy, Float:spz;
  9. new tempvw, tempint;
  10. forward respawn123(id);
  11. public respawn123(id)
  12. {
  13. SetPlayerPos(id, spx, spy, spz);
  14. SetPlayerVirtualWorld(id,tempvw);
  15. SetPlayerInterior(id,tempint);
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement