02.12.2011, 13:09
When i use this command, the whole chat gets cleared..
Why?
Thx in Advance
Dont mention the not in order lines, its not like that in the GM
Why?
Thx in Advance
Dont mention the not in order lines, its not like that in the GM
PHP код:
if(strcmp(cmd, "/askadmin", true) == 0 || strcmp(cmd, "/ahelp", true) == 0)
{
if(!strlen(cmdtext[8])) return SendClientMessage(playerid, 0xFF0000AA, "Use /ahelp [message]");
new str[128];
if((gettime()-LastReport[playerid]) < 30)
{
format(str, 128, "You have to wait %d seconds before you can send a new help message!", (30-(gettime()-LastReport[playerid])));
SendClientMessage(playerid, 0xFF0000AA, str); return 1;
}
format(str, 128, "[ASKADMIN] Sender ID: %d. Message: %s", playerid, cmdtext[8]);
for(new i; i<MAX_PLAYERS; i++){
AdministratorMessage(COLOR_ADMINCMD, string,1);
SendClientMessage(i, 0x00FFFFAA, str);
}
SendClientMessage(playerid, 0x00FF00AA, "Help send to online admins!");
LastReport[playerid] = gettime();
return 1;
}