Anyone help me with these commands
#2

Код:
else if(strcmp(cmdtext, "/kickall", true) == 0)
	{
	    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You need to be rcon admin use /rcon login {pass}");
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
		if(IsPlayerConnected(i) && (i != playerid))}
		{
		PlayerPlaySound(i,1057,0.0,0.0,0.0);
		Kick(i);
		}
		new string[128];
		format(string,sizeof(string),"[ Administrator \"%s\" has Kicked all players. ]");
		return 1;
	}
1. you are not getting the message cause you arent sending any, you are just formating it
PS: even if u send it at last the player wont recieve it cause you will be send the message AFTER kicking
2. it kicks you cause you are looping through all players and NOT EXCLUDING yourself
Reply


Messages In This Thread
Anyone help me with these commands - by Beasthian - 29.11.2015, 08:49
Re: Anyone help me with these commands - by xTURBOx - 29.11.2015, 13:40
Re: Anyone help me with these commands - by UltraScripter - 29.11.2015, 14:00
Re: Anyone help me with these commands - by Pottus - 29.11.2015, 14:09
Re: Anyone help me with these commands - by UltraScripter - 29.11.2015, 14:13
Re: Anyone help me with these commands - by Vince - 29.11.2015, 14:30
Re: Anyone help me with these commands - by jlalt - 29.11.2015, 14:30
Re: Anyone help me with these commands - by Beasthian - 30.11.2015, 07:29

Forum Jump:


Users browsing this thread: 1 Guest(s)