22.07.2011, 01:39
(
Последний раз редактировалось Devastador; 22.07.2011 в 02:14.
)
Assim й bem mais fбcil, repare:
Uma correзгozinha ali, no lugar de 'tmp' й 'text', rs.
pawn Код:
if(strcmp(cmd,"/ac",true) == 0)
{
if(pAdmin[playerid] >= 1)
{
text = strtok(cmdtext,idx);
if(!strlen(text))
{
SendClientMessage(playerid,-1,"Digite: /ac [texto]");
return true;
}
format(string,sizeof(string),"%s",text);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(pAdmin[i] >= 1)
{
SendClientMessage(i,-1,string);
}
}
}
else SendClientMessage(playerid,-1,"Sem permissгo.");
return true;
}