Message to all players when doing /kick
#1

Hello!
Now I have a little problem. I have tried to put a message to my /kick command when doing it. I want it: Player name has been kicked from the server! and that to all. I used format_string but when I did /kick server crashed. Could you someone give me working version


Thanks
Reply
#2

Just help him, the topic will be moved anyways.

You must get the player's name then put it in a string.
pawn Код:
new name[MAX_PLAYER_NAME]:

GetPlayerName(/*whatever you got for the victim's define*/, name, sizeof(name));
format(string, sizeof(string), "~ %s has been kicked from the server.", name);
SendClientMessageToAll(RED, string);
Kick(/*victim's define*/);
Reply
#3

Quote:
Originally Posted by SpiderPork
Just help him, the topic will be moved anyways.

You must get the player's name then put it in a string.
pawn Код:
new name[MAX_PLAYER_NAME]:

GetPlayerName(/*whatever you got for the victim's define*/, name, sizeof(name));
format(string, sizeof(string), "~ %s has been kicked from the server.", name);
SendClientMessageToAll(RED, string);
Kick(/*victim's define*/);
Thanks. Now I also need a reason like /kick [id] [reason] so the player can see why he has been kicked
Reply
#4

Search that in some admin script then just copy the kick command.
Reply
#5

Quote:
Originally Posted by SpiderPork
Search that in some admin script then just copy the kick command.
Yea, but all of admin script got the fuc***** levels so it is harder
Reply
#6

Well, it's easier to have levels, so not everybody will be the same level.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)