[Ajuda] Unknown Command
#2

Tenta desse jeito ae

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{    
    if(Flood[playerid] > GetTickCount())
    {
        SendClientMessage(playerid, 0xCCCCCCCC, "| ANTI-FLOOD | Vocк estб bloqueado de usar comandos.");    
        Flood[playerid] = GetTickCount() + 1500;    
        return 1;
    }
   
    for(new i = 0; i < GetMaxPlayers(); i++)    
    {        
        if(IsPlayerAdmin(i))        
        {            
            format(str, sizeof(str), "- %s usou o comando %s", PlayerName(playerid), cmdtext);            
            SendClientMessage(i, c_admint, str);        
        }    
    }
   
    if(!success)    
    {        
        PlayerPlaySound(playerid, 1133, 0, 0, 0);        
        format(str, sizeof(str), "| ERRO | O comando '%s' estб desativado ou nгo existe.", cmdtext);        
        SendClientMessage(playerid, c_erro, str);        
        GameTextForPlayer(playerid, "~r~COMANDO INVALIDO", 3000, 5);    
    }    
    return 1;
}
Reply


Messages In This Thread
Unknown Command - by Alado - 31.05.2013, 07:56
Re: Unknown Command - by PT - 31.05.2013, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)