20.02.2014, 18:34
Hello to all
I want to know how to make clear the whole cat?
I want to know how to make clear the whole cat?
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
SendClientMessageToAll(0xDEEE20FF, " ");
for(new i = 0; i < 100; i ++) SendClientMessageToAll(COLOR_GREY, " ");
if(strcmp(cmd, "/clearchat", true) == 0 || strcmp(cmd, "/cc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 )
{
if(PlayerInfo[playerid][pAdmin] == 0)
{
for(new i = 0; i < 100; i++)
SendClientMessage(playerid,COLOR_WHITE," ");
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "AdmCmd:%s has cleared the chat.", sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
}
else
{
SendClientMessage(playerid, -1, "{F81414}[DENIED]:{FFFFFF} You are not authorized to use that command!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in !");
}
return 1;
}
#define CleanChatPlayer(%0) \
for(new msg=0; msg<32; msg++) {SendClientMessage(%0,-1," ");}
native CleanChatPlayer(playerid);
#define CleanChatAll() \
for(new msg=0; msg<32; msg++) {SendClientMessageToAll(-1," ");}
native CleanChatPlayer();