Message to all players when doing /kick - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Message to all players when doing /kick (
/showthread.php?tid=77339)
Message to all players when doing /kick -
Jakku - 10.05.2009
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
Re: Message to all players when doing /kick -
SpiderPork - 10.05.2009
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*/);
Re: Message to all players when doing /kick -
Jakku - 10.05.2009
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
Re: Message to all players when doing /kick -
SpiderPork - 10.05.2009
Search that in some admin script then just copy the kick command.
Re: Message to all players when doing /kick -
Jakku - 10.05.2009
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
Re: Message to all players when doing /kick -
SpiderPork - 10.05.2009
Well, it's easier to have levels, so not everybody will be the same level.