How to lock the skins ##
#1

How to lock skins and unlock them with a command, only a few skins for example the cops??
I tried wikipedia but these tutorials ain't working. They lock all skins.
Reply
#2

i make this topic already and you ca't do that (you can lock it by bpassword find it in http://wiki.sa-mp.com )
Reply
#3

pawn Код:
// global boolean
new
    bool: bLocked = false;

public OnPlayerRequestClass( playerid, classid )
{
    if ( bLocked )
    {
        switch ( classid )
        {
            case 1, 5, 7, 9 : // protect classes 1, 5, 7, 9
            {
                SendClientMessage( playerid, 0xffffffff, "Skin locked" );
                return 0;
            }
        }
    }
    return 1;
}
All you need then is a command which toggles it:

pawn Код:
if ( strcmp( cmdtext, "/lock", 5, true ) == 0 ) bLocked = !bLocked;
Reply
#4

How to unlock this shit?
Reply
#5

Pls help, how to unlock that, I don't need a server freeze, I just need a password to protect ONLY a few skins;
Or atleast to let the admin to give the rights for some skins.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)