/cc question
#1

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.


Код:
    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;
			}
		}
	}
Reply
#2

pawn Код:
if(PlayerInfo[playerid][pAdmin] <= 1 || PlayerInfo[playerid][pHelper] <= 1)
{
    ClearChatboxToAll(playerid,100);
}
Reply
#3

works at /cnc but at /cc it's same
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)