[Ajuda] Problema com GangZona
#4

pawn Код:
public checarareaGz()
{
    for(new i = 0; i < MAX_PLAYERS; ++i)
    {
        //if(IsPlayerInArea(i, checkGzs[i][0],checkGzs[i][1],checkGzs[i][2],checkGzs[i][3]))
        if(IsPlayerConnected(i))
        {
            for(new h = 0; h < MAX_GZS; i++)
            {
                if(isPlayerGangZone(i, heckGzs[h][0],checkGzs[h][1],checkGzs[h][2],checkGzs[h][3]))
                {
                    SendClientMessage(i,0x000000ff,"aaaaaaaaaaaaaaa");
                }
            }
        }
    }
    return 1;
}

isPlayerGangZone(pid, Float: gz_x, Float: gz_y,  Float: gz_x2, Float: gz_y2)
{
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(pid, X, Y, Z);
        if (X > gz_x && X < gz_x2 && Y > gz_y && Y < gz_y2)return true;
        return 0;
}
Reply


Messages In This Thread
[Ajuda] Problema com GangZona - by cotonete - 14.10.2011, 12:27
Re: [Ajuda] Problema com GangZona - by WLSF - 14.10.2011, 14:45
Re: [Ajuda] Problema com GangZona - by cotonete - 14.10.2011, 14:47
Re: [Ajuda] Problema com GangZona - by [O.z]Caroline - 14.10.2011, 14:49

Forum Jump:


Users browsing this thread: 2 Guest(s)