What mean this?
#1

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...?
Reply
#2

Host has broken one of the Agreement rules, action has been taken.
And kick player.
Reply
#3

-_- Useless post.

I mean,what mean for "security"...?

I saw this code in some rp gm's.
Reply
#4

looks like either a stock, or a public function.

Search for it in the gamemode, search for:

Код:
Public Security
or
Код:
Stock Security
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 :\ )
Reply
#5

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'.
Reply
#6

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
Reply
#7

I founded this:

pawn Код:
if(Security == 0 || Security == 1)
        {
        }
        else
        {
            GameModeExit();
        }
    }
    else
    {
        GameModeExit();
    }
    return 1;
}
@tour,alright,but asking is legit
Reply
#8

Well i used ****** and here is the answer in 10sec

http://pastebin.com/TJfS93VL
Reply
#9

Yeah,understand.

Thanks for help and Merry Christmas!
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)