31.05.2013, 13:42
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;
}