#2

Код:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
        new pname[MAX_PLAYER_NAME], string[128];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "{AFAFAF}%s {FF0000}has tried to login in RCON and got Kicked!", pname);
        SendClientMessageToAll(COLOR_RED, string);
        Kick(playerid);
        return 1;
}
You were looping through MAX_PLAYERS and then were kicking them all,
Try that one, and change that
Код:
KickPlayer();
To
Код:
KickPlayer(playerid);
Reply


Messages In This Thread
HELP - by DeStRoY232 - 22.09.2017, 10:25
Re: HELP - by FuNkYTheGreat - 22.09.2017, 10:39
Re: HELP - by pollo97 - 22.09.2017, 10:40
Re: HELP - by DeStRoY232 - 22.09.2017, 11:14
Re: HELP - by pollo97 - 22.09.2017, 11:51
Re: HELP - by Sew_Sumi - 22.09.2017, 11:59
Re: HELP - by dominik523 - 22.09.2017, 12:20
Re: HELP - by Kampott - 22.09.2017, 12:35
Re: HELP - by DeStRoY232 - 22.09.2017, 12:40
DeStRoY232 - by Sew_Sumi - 23.09.2017, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)