/cchat
#1

How can i make that a message come we "Chat cleared by an Admin."? here the command:

Код:
COMMAND:cchat(playerid,params[])
{
	if(Admin[playerid] < 1) return NoSuccess(playerid,"You cannot use this Command!");
	
	ClearChatForAll();
	GameTextForAll("Chat cleared",2500,1)
	return 1;
}
Reply
#2

After the GameTextForAll put
pawn Код:
SendClientMessageToAll(0xDEEE20FF, "Chat cleared by an Admin");
Reply
#3

pawn Код:
new string[128], pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "Chat cleared by Admin %s.", pName);
SendClientMessageToAll(-1, string);
Reply
#4

Quote:
Originally Posted by MrSurfur1
Посмотреть сообщение
After the GameTextForAll put
pawn Код:
SendClientMessageToAll(0xDEEE20FF, "Chat cleared by an Admin");
Then i have 1 error: error 001: expected token: ";", but found "-identifier-"
Reply
#5

Ah thx, work now all. Thx for Help. ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)