[Pedido] Ignorar player
#3

PHP код:
new BlockedPlayer[MAX_PLAYERS];

public 
OnPlayerText(playeridtext[])
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i) && BlockedPlayer[i] != playerid)
        {
            
//mensagem
        
}
    }
    return 
1;
}

//OnPlayerConnect
BlockedPlayer[playerid] = -1;

//OnPlayerDisconnect
for(new 0MAX_PLAYERSi++) if(BlockedPlayer[i] == playeridBlockedPlayer[i] = -1
Reply


Messages In This Thread
Ignorar player - by mvrky - 17.02.2018, 17:17
Re: Ignorar player - by Ermanhaut - 17.02.2018, 21:20
Re: Ignorar player - by RodrigoMSR - 17.02.2018, 21:48
Re: Ignorar player - by JohnBlack - 17.02.2018, 22:01
Re: Ignorar player - by Ermanhaut - 17.02.2018, 23:13

Forum Jump:


Users browsing this thread: 1 Guest(s)