HELP !
#1

Код:
dcmd_kickall(playerid,params[]) {
#pragma unused params
	if(PlayerData[playerid][Level] == 4 || IsPlayerAdmin(playerid))
	{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
	new ownername[MAX_PLAYER_NAME],string[76];
	GetPlayerName(playerid,ownername,sizeof(ownername));
	format(string,sizeof(string),"[ SERVER ] You all have been kicked by server owner %s !",ownername);
	SendClientMessageToAll(COLOUR_CRIMSON,string);
	Kick(i);
	}
  }
	return 1;
}
Is there any way to prevent the playerid to get kicked ?
Reply
#2

Add this check:
pawn Код:
if(i != playerid)
{
// continue with your code.
}
Reply
#3

very thanks !
Reply
#4

You're welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)