Zmajk0

Untitled

Aug 28th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. cmd:najblizirent(playerid,params[])
  2. {
  3. if(GetPlayerInterior(playerid)!=0) return SendClientMessage(playerid,-1,"SERVER: Ne mozete koristiti ovu komandu iz enterijera !");
  4. if(GetPlayerVirtualWorld(playerid)!=0) return SendClientMessage(playerid,-1,"SERVER: Ne mozete koristiti ovu komandu iz enterijera !");
  5. {
  6. for(new i=1; i<MAX_RENTS; i++)
  7. {
  8. if(IsPlayerInRangeOfPoint(playerid,100000,RentInfo[i][rentX],RentInfo[i][rentY],RentInfo[i][rentZ]))
  9. SetPlayerCheckpoint(playerid,RentInfo[i][rentX],RentInfo[i][rentY],RentInfo[i][rentZ],0);
  10. break;
  11. }
  12. }
  13. return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment