[AJUDA] GangZystem
#3

Postaram isso a cerca de 10min em outro topico

pawn Код:
// OnGameModeInit
SetTimer("OnPlayerInGangZone",1000*2, true);

//qualquer lugar do seugm

public OnPlayerInGangZone(playerid)
{
       if(IsPlayerInGZ(playerid,X,Y,X,Y)) --> Verifica se o player estб na GangZone
       return 1;
}

stock IsPlayerInGZ(playerid,Float:x,Float:y,Float:z)
{
    GetPlayerPos(playerid, x, y, z);
    if(cordenadaX>= x && cordenadaXy >= Y &&cordenadaX x <= X && cordenadaY<= Y) return 1;
    else return 0;
}
Reply


Messages In This Thread
[AJUDA] GangZystem - by Oddie - 21.05.2011, 01:52
Re: [AJUDA] GangZystem - by Shadoww5 - 21.05.2011, 02:28
Re: [AJUDA] GangZystem - by zbt_Daimyo - 21.05.2011, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)