[HELP]In This Command
#4

Код:
stock GetName(playerid)
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof(Name));
    return Name;
}


CMD:kickall(playerid,params[])
{
   new string[100];
   if (adlvl[playerid] < 6) return 0;
   for(new i=0; i < MAX_PLAYERS; i++)
   {
   	Kick(i);
   }
   format(string,sizeof(string),"{FF0000}[SERVER]:{FFFFFF} Admin\"%s (%d)\" has kicked all players except admins",GetName(playerid),playerid);
   SendClientMessageToAll(-1,string);
   return 1;
}
Reply


Messages In This Thread
[HELP]In This Command - by Immortal99 - 03.08.2016, 16:42
Re: [HELP]In This Command - by Luicy. - 03.08.2016, 16:46
Re: [HELP]In This Command - by AndySedeyn - 03.08.2016, 16:47
Re: [HELP]In This Command - by WhiteGhost - 03.08.2016, 16:49
Re: [HELP]In This Command - by Luicy. - 03.08.2016, 16:50
Re: [HELP]In This Command - by JustMe.77 - 03.08.2016, 16:51
Re: [HELP]In This Command - by K0P - 03.08.2016, 16:52
Re: [HELP]In This Command - by Konstantinos - 03.08.2016, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)