HELP ! <== 2
#1

Код:
dcmd_kickallEA(playerid,params[]) {
#pragma unused params
	if(PlayerData[playerid][Level] == 5)
	{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	if(i != playerid && i != PlayerData[i][Level] >= 1 && IsPlayerConnected(i)) // here
	{
	new ownername[MAX_PLAYER_NAME],string[100];
	GetPlayerName(playerid,ownername,sizeof(ownername));
	format(string,sizeof(string),"[ ! ] Server owner %s kicked everyone except administrators !",ownername);
	SendClientMessageToAll(COLOUR_GOLD,string);
	print(string);
	Kick(i);
	}
  }
 }
	return 1;
}
What the problem ? Cause I get WARNING OF TAG MISMATCH <=== caps sorry :P only 1
Reply
#2

pawn Код:
if(i != playerid && PlayerData[i][Level] >= 1 && IsPlayerConnected(i)) // not anymore
Reply
#3

Ok i will try that,thanks
Reply
#4

Doesnt work :/
Reply
#5

You can't use print(string);

Use printf("[ ! ] Server owner %s kicked everyone except administrators !",ownername);

Reply
#6

thats not the problem I got now,the problem is admins get kicked which supposed not to be
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)