[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
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) if(PlayerInfo[i][pAdmin] < 1) Kick(i);
Reply
#3

Quote:
Originally Posted by //exora
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) if(PlayerInfo[i][pAdmin] < 1) Kick(i);
Thanks i ganna try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)