Player disconnect reasons - 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: Player disconnect reasons (
/showthread.php?tid=96314)
Player disconnect reasons -
asteroid - 07.09.2009
Well I came back , and forgot all scripting.
I need some help , for some time until I will remmember it
There's a code
Onplayerdisconnect etc..
if(reason==0)
{
format(msg,sizeof(msg),"*** %s disconnected (error).",name);
}else if(reason == 1){
format(msg,sizeof(msg),"*** %s disconnected (normal).",name);
else {
baned/kicked
I should write reason=2 to get kicked? because I whant to get kicked reason seperate from banned reason
Re: Player disconnect reasons -
Correlli - 07.09.2009
Quote:
Originally Posted by Pfff
because I whant to get kicked reason seperate from banned reason
|
You can't do that. ID-reason 2 is for kicked
and banned reason. But you could script your own reason-system.