24.08.2009, 13:09
first use this include
http://forum.sa-mp.com/index.php?topic=44902.0
then detecte if the player in the zone
set a timer in "OnGameModeInit" wuch have the interval 100 and it repeats itself
then check the zone by using "IsPlayerInZone"
this is an example
http://forum.sa-mp.com/index.php?topic=44902.0
then detecte if the player in the zone
set a timer in "OnGameModeInit" wuch have the interval 100 and it repeats itself
then check the zone by using "IsPlayerInZone"
this is an example
pawn Код:
//put this in "OnGameModeInit()"
SetTimer("CheckZone", 100, true);
forward CheckZone();
public CheckZone()
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(!IsPlayerInZone(i, "Los Santos"))
{
SetPlayerWantedLevel(i, 1), // change the 1 with the desired wanted level
}
}
}
}

