Admin Chat
#1



Код:
    if(!strcmp(strget(cmdtext,0),"/c"))
	{
	if(Spieler[playerid][AdminLevel] >=2)
	{
	if(!strlen(strget(cmdtext,1)))
	return
	SendClientMessage(playerid,COLOR_GREY,"Use: /c [Text]");
	new string[256];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid,name,sizeof(name));
 	format(string,sizeof(string), "Server - AdminChat [%d] %s: %s",playerid, name, cmdtext);
	print(string);
	{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	if(Spieler[i][AdminLevel] >=2)
	{
	PlayerPlaySound(i,1057 ,0,0,0);
 	SendClientMessage(i,COLOR_LIGHTGREEN,string);
	}}}}
	return 1;
}
This is my Admin Chat. But when we Chat in the Chat We see always the command for writing ( /c ). I ask you how to improve this. I hope you can help me =)

]B4E[kengston
Reply


Messages In This Thread
Admin Chat - by ]B4E[kengston - 05.01.2011, 23:22
Re: Admin Chat - by Kaylux - 05.01.2011, 23:24
AW: Admin Chat - by ]B4E[kengston - 05.01.2011, 23:26
Re: Admin Chat - by John_F - 05.01.2011, 23:31
Re: Admin Chat - by Kaylux - 05.01.2011, 23:32
AW: Admin Chat - by ]B4E[kengston - 05.01.2011, 23:35
Re: Admin Chat - by iggy1 - 06.01.2011, 06:44
Re: Admin Chat - by Joe Staff - 06.01.2011, 07:16

Forum Jump:


Users browsing this thread: 1 Guest(s)