When player leave LS
#3

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
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
}
}
}
}
Reply


Messages In This Thread
When player leave LS - by radeee - 24.08.2009, 12:57
Re: When player leave LS - by MenaceX^ - 24.08.2009, 13:04
Re: When player leave LS - by James_Alex - 24.08.2009, 13:09
Re: When player leave LS - by radeee - 24.08.2009, 13:51
Re: When player leave LS - by James_Alex - 24.08.2009, 13:56
Re: When player leave LS - by Correlli - 24.08.2009, 13:57
Re: When player leave LS - by radeee - 24.08.2009, 14:11
Re: When player leave LS - by radeee - 24.08.2009, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)