[DUV] Entrando em interiores com KEY_SECONDARY_ATTACK
#5

Porque nгo:

pawn Code:
#include a_samp

#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && \
        ((oldkeys & (%0)) != (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_SECONDARY_ATTACK))
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0, 1480.98, 110.62, 1003.00)) // Entrada
        {
            // Do something here
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0, 391.10, -1772.66, 19.000)) // Saida
        {
            GameTextForPlayer(playerid, "~w~Prefeitura", 5000, 1);
        }
    }
    return true;
}
?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)