[Tutorial] Easy /Ban and /Kick
#8

Quote:
Originally Posted by budelis
View Post
Change this:

Code:
Kick(targetid); //Kicks him
SendClientMessage(playerid,-1,"SERVER: You have been banned from the server.");//Sends the kicked a message
To this:

Code:
SendClientMessage(targetid,-1,"SERVER: You have been banned from the server.");//Sends the kicked a message
Kick(targetid); //Kicks him
or maybe use this.
pawn Code:
new pname[MAX_PLAYER_NAME], str[256];
    new targetid;
    GetPlayerName(targetid, pname, sizeof(pname));
    format(str, sizeof(str), "%s has been kicked from the server", pname);
    SendClientMessageToAll(-1, str);
Reply


Messages In This Thread
Easy /Ban and /Kick - by [Y]P90 - 25.08.2012, 12:24
Re: Easy /Ban and /Kick - by SAMPHacker - 25.08.2012, 12:34
Respuesta: Easy /Ban and /Kick - by [Y]P90 - 25.08.2012, 12:36
Re: Easy /Ban and /Kick - by budelis - 25.08.2012, 12:38
Re: Easy /Ban and /Kick - by SAMPHacker - 25.08.2012, 12:41
Respuesta: Easy /Ban and /Kick - by [Y]P90 - 25.08.2012, 12:42
Re: Easy /Ban and /Kick - by SAMPHacker - 25.08.2012, 12:44
Re: Easy /Ban and /Kick - by Devilxz97 - 25.08.2012, 14:25
AW: Easy /Ban and /Kick - by [Y]P90 - 25.08.2012, 16:06
Re: Easy /Ban and /Kick - by PawnFox - 27.08.2012, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)