If Is Player In Gangzone... How to create a function like that ??
#2

You can use the IsPlayerInZone.... then just use a timer....

pawn Код:
stock IsPlayerInZone( playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax )
{
    new RetValue = 0;
    new Float: PosX, Float: PosY, Float: PosZ;
    GetPlayerPos( playerid, PosX, PosY, PosZ );

    if( PosX >= XMin && PosY >= YMin && PosX < XMax && PosY < YMax )
    {
      RetValue = 1;
    }
    return RetValue;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)