Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. stock NovaPozicijaV(playerid, Float:aaX, Float:aaY, Float:aaZ)
  2. {
  3. if(!IsPlayerConnected(playerid)) return 1;
  4. if(!IsPlayerInAnyVehicle(playerid)) return JBC_SetPlayerPos(playerid, aaX, aaY, aaZ);
  5. JBC_SetVehiclePos(GetPlayerVehicleID(playerid), aaX, aaY, aaZ);
  6. return 1;
  7. }
  8. /////////////////////////////////////////////////////////////////////////////
  9. stock h_SetPlayerCheckpoint(playerid, Float:aaX, Float:aaY, Float:aaZ, Float:radius)
  10. {
  11. CheckpointX[playerid] = aaX;
  12. CheckpointY[playerid] = aaY;
  13. CheckpointZ[playerid] = aaZ;
  14. CheckpointR[playerid] = radius;
  15. IgracevCPPrikazan[playerid] = true;
  16. SetPlayerCheckpoint(playerid, aaX, aaY, aaZ, radius);
  17. return 1;
  18. }
  19. ///////////////////////////////////////////////////////////////////////////////
  20. stock h_DisablePlayerCheckpoint(playerid)
  21. {
  22. CheckpointX[playerid] = 0.0000;
  23. CheckpointY[playerid] = 0.0000;
  24. CheckpointZ[playerid] = 0.0000;
  25. CheckpointR[playerid] = 0.0000;
  26. IgracevCPPrikazan[playerid] = false;
  27. return DisablePlayerCheckpoint(playerid);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement