What mean this? - 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: What mean this? (
/showthread.php?tid=202521)
What mean this? -
Face9000 - 24.12.2010
pawn Код:
if(Security != 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
Kick(playerid);
return 1;
}
What mean...?
Re: What mean this? -
hab2ever - 24.12.2010
Host has broken one of the Agreement rules, action has been taken.
And kick player.



Re: What mean this? -
Face9000 - 24.12.2010
-_- Useless post.
I mean,what mean for "security"...?
I saw this code in some rp gm's.
Re: What mean this? -
Hiitch - 24.12.2010
looks like either a stock, or a public function.
Search for it in the gamemode, search for:
or
If you don't understand it there, post it here, and I'll try to help you understand it more.
( I don't know why it says 'host', and not 'player' since it doesn't close the server, it only kicks the player :\ )
Re: What mean this? -
Jeffry - 24.12.2010
If the variable 'Security' is
not 0, means any other number except 0, the following action will be made: Sending the message and kick the player.
!= Means: Is NOT
EDIT: To the posts upon:
Security is just a normal variable defined with 'new'.
Re: What mean this? -
TouR - 24.12.2010
Quote:
Originally Posted by Logitech90
-_- Useless post.
I mean,what mean for "security"...?
I saw this code in some rp gm's.
|
Its just a global variable mate... Who knows what scripter had in his mind when he was scripting this
Re: What mean this? -
Face9000 - 24.12.2010
I founded this:
pawn Код:
if(Security == 0 || Security == 1)
{
}
else
{
GameModeExit();
}
}
else
{
GameModeExit();
}
return 1;
}
@tour,alright,but asking is legit
Re: What mean this? -
DRIFT_HUNTER - 24.12.2010
Well i used ****** and here is the answer in 10sec
http://pastebin.com/TJfS93VL
Re: What mean this? -
Face9000 - 24.12.2010
Yeah,understand.
Thanks for help and Merry Christmas!
Re: What mean this? -
Hiitch - 24.12.2010
Ah, I understand it now. It kicks the player, because the host has done something that the gamemode does not allow.
So, I guess it the host has changed something in the server.cfg, the server kicks players to disallow them to connect.