Gang Zones
#6

Quote:
Originally Posted by Eric_White
Посмотреть сообщение
PHP код:
airport GangZoneCreate(1276.906, -2684.5882155.362, -2167.434) return SendClientMessage(playeridCOLOR_RED"You have entered a restricted area");  
return 
1
Try something like that
Are you drunk?


Here is what you need, including the functions to check if the player is on a specific turf.

https://sampforum.blast.hk/showthread.php?tid=276352

So doing something like

Код:
 
if ( IsPlayerInZone( playerid, airoport ) )
    return SendClientMessage( playerid, -1, "Please leave!" );
You'd have to have a 1 second timer where you deal with this kind of checks on your server, and from there it will be easy adding this one.
Reply


Messages In This Thread
Gang Zones - by wallen - 26.02.2018, 18:43
Re: Gang Zones - by Eric_White - 26.02.2018, 18:50
Re: Gang Zones - by wallen - 26.02.2018, 19:01
Re: Gang Zones - by Eric_White - 26.02.2018, 19:05
Re: Gang Zones - by wallen - 26.02.2018, 19:07
Re: Gang Zones - by Cypress - 26.02.2018, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)