Posts: 3,351
Threads: 780
Joined: Jan 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...?
Posts: 3,351
Threads: 780
Joined: Jan 2010
-_- Useless post.
I mean,what mean for "security"...?
I saw this code in some rp gm's.
Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
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'.
Posts: 3,351
Threads: 780
Joined: Jan 2010
I founded this:
pawn Код:
if(Security == 0 || Security == 1)
{
}
else
{
GameModeExit();
}
}
else
{
GameModeExit();
}
return 1;
}
@tour,alright,but asking is legit
Posts: 3,351
Threads: 780
Joined: Jan 2010
Yeah,understand.
Thanks for help and Merry Christmas!
Posts: 370
Threads: 21
Joined: Jun 2009
Reputation:
0
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.