[help]Cmd To admins
#1

Hey,
I need som help with my codered cmd, I want to do so when i type the codered it kick all players but not the admins thay will still bee online,

Код:
if (strcmp(cmdtext,"/codered",true) == 0)
 	{
	if (PlayerInfo[playerid][pAdmin] >= 1336)
	{
	SendClientMessageToAll(COLOR_RED, "|___________CODE RED___________|");
	SendClientMessageToAll(COLOR_RED, "The server is being attacked (D-DOSED)");
	SendClientMessageToAll(COLOR_RED, "Please Connect later when an admin is online!");
	SendClientMessageToAll(COLOR_RED, "Until then do not connect and STAY OUT!");
	SendClientMessageToAll(COLOR_RED, "Please Visit the foruns for more information!");
	SendClientMessageToAll(COLOR_RED, "http://Everestgaming.ucoz.net/!");
	SendClientMessageToAll(COLOR_RED, "|___________CODE RED___________|");
	for(new i = 0; i < MAX_PLAYERS; i++) if(i != playerid)Kick(i);
	return 1;
	}
}
Reply


Messages In This Thread
[help]Cmd To admins - by tony_fitto - 27.06.2009, 17:16
Re: [help]Cmd To admins - by woot - 27.06.2009, 17:23
Re: [help]Cmd To admins - by tony_fitto - 27.06.2009, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)