1 post in this topic

CMD:kickall(playerid, params[])
{
	if(PI[playerid][pAdmin] < 10 || AdminLogged[playerid] == false) return true;
 	{
  		for(new i = 0; i <= MAX_PLAYERS; i++)
    	{
    		if(IsPlayerConnected(i))
    		{
    		    if(PI[i][pAdmin] > 0)
    		    {
	       			ShowPlayerDialog(i,2324,DIALOG_STYLE_MSGBOX,"Внимание!!!","{CB1A1A}Администраторов не отключает с сервера!\n{CB1A1A} Внимание массовое отключение с сервера!\n{CB1A1A}Причина будет в нашей офф. группе VK: vk.com/t*****y_roleplay","Понял","");
	     		}
	       		ShowPlayerDialog(i,2324,DIALOG_STYLE_MSGBOX,"Внимание!!!","{CB1A1A} Внимание массовое отключение с сервера!\n{CB1A1A}Причина будет в нашей офф. группе VK: vk.com/t******y_roleplay","Понял","");
    		    if(PI[i][pAdmin] == 0)
    		    {
	       			Kick(i);
	     		}
	        }
       	}
	}
 	return true;
}

 

Edited by Покемон

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content