22.09.2017, 11:14
EDITED :
my brother typed wrong rcon password but server kicking me not him LOL
Quote:
|
Код:
//You must pass the id of player you want to kick
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
//Here you get the name of player to kick
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);
//Kick the player
Kick(playerid);
for (new i = 0; i < MAX_PLAYERS; i++)
{
//And than send the message to all connected players
if(IsPlayerConnected(i)) SendClientMessageToAll(COLOR_RED, string);
}
return 1;
}
|


