20.06.2011, 00:53
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/duvida", true, 8) == 0)
{
new txt = strtok(cmdtext, idx);
if(!strlen(txt)) return SendClientMessage(playerid, -1, "USO: /duvida [TEXTO]");
new n[24], str[128];
GetPlayerName(playerid, n, 24);
SendClientMessage(playerid, -1, "Duvida enviada. Aguarde resposta ...");
format(str, 128, "DUVIDA de %s: %s.", n, txt);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i)) { SendClientMessage(i, -1, str); }
}
return 1;
}
return 0;
}