pawn Код:
if(strcmp(cmd,"/geral",true)==0)
{
if(pInfo[playerid][AdminLevel1] >= 1)
{
if(UsouComando[playerid][3] == 1)
{
SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Aguarde 1 minuto para falar com todos novamente!");
return 1;
}
new msg[128];
strmid(tmp,cmdtext,9,strlen(cmdtext));
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA,"/geral [texto]");
return 1;
}
else
{
new pNome[MAX_PLAYER_NAME];
pNome = GetPlayerName(playerid,pNome,sizeof(pNome));
format(msg,sizeof(msg),"» O : %s diz: %s", pNome, tmp);
SendClientMessageToAll(0xE0FFFFAA,msg);
UsouComando[playerid][3] = 1;
SetTimerEx("UsouComando1", 60000, false, "i", playerid);
return 1;
}
}
Testa ai '-'.