SA-MP Forums Archive
HELP ! <== 2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP ! <== 2 (/showthread.php?tid=95197)



HELP ! <== 2 - The_Tough - 02.09.2009

Код:
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


Re: HELP ! <== 2 - Clavius - 02.09.2009

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



Re: HELP ! <== 2 - The_Tough - 03.09.2009

Ok i will try that,thanks


Re: HELP ! <== 2 - The_Tough - 06.09.2009

Doesnt work :/


Re: HELP ! <== 2 - Lightning[SV] - 06.09.2009

You can't use print(string);

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




Re: HELP ! <== 2 - The_Tough - 06.09.2009

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