Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd:najblizirent(playerid,params[])
- {
- if(GetPlayerInterior(playerid)!=0) return SendClientMessage(playerid,-1,"SERVER: Ne mozete koristiti ovu komandu iz enterijera !");
- if(GetPlayerVirtualWorld(playerid)!=0) return SendClientMessage(playerid,-1,"SERVER: Ne mozete koristiti ovu komandu iz enterijera !");
- {
- for(new i=1; i<MAX_RENTS; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid,100000,RentInfo[i][rentX],RentInfo[i][rentY],RentInfo[i][rentZ]))
- SetPlayerCheckpoint(playerid,RentInfo[i][rentX],RentInfo[i][rentY],RentInfo[i][rentZ],0);
- break;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment