07.10.2012, 08:12
How cand i do , /cc when execute the command , the chat of admin and helpers to remain , and at players/newbie to delete it ?
Sorry for my bad english.
Sorry for my bad english.
Код:
if(strcmp(cmd, "/cc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
{
ClearChatboxToAll(playerid,100);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "XGamminG RPG: %s a sters chatul", sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
//SendClientMessage(playerid,0x70AD52FF, "Chatul a fost sters cu succes!");
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You're not a Admin so you cannot use this command!");
return 1;
}
}
}

