Password protected skin - HELP
#10

Like they said on the wiki
Код:
    AddPlayerClass(221, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 0
    AddPlayerClass(212, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 1
    AddPlayerClass(199, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 2
For example, you have those 3 skins already, and you wanna add a new playerclass with skin 1 (this will be passworded).

Код:
AddPlayerClass(221, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 0
AddPlayerClass(212, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 1
AddPlayerClass(199, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); //Class 2
AddPlayerClass(1, 0, 0, 0, 130, 24, 300, 0, 0, 0, 0); // Class3
Then your OnPlayerRequestClass should look like this

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
        case 0: Locked[playerid] = 0; // Class 0, skin 221
        case 1: Locked[playerid] = 0; // Class 1, skin 212
        case 2: Locked[playerid] = 0; // Class 2, skin 199
        case 3: Locked[playerid] = 1; // Class 3, skin 1 <-- this one is locked
    }
    return 1;
}
Hope this helps
Reply


Messages In This Thread
Password protected skin - HELP - by litesp - 21.06.2011, 17:35
Re: Password protected skin - HELP - by litesp - 21.06.2011, 19:10
Re: Password protected skin - HELP - by Scenario - 21.06.2011, 19:12
Re: Password protected skin - HELP - by litesp - 21.06.2011, 20:00
Re: Password protected skin - HELP - by Scenario - 21.06.2011, 21:10
Re: Password protected skin - HELP - by Sasino97 - 21.06.2011, 21:20
Re: Password protected skin - HELP - by Scenario - 21.06.2011, 21:48
Re: Password protected skin - HELP - by litesp - 22.06.2011, 13:36
Re: Password protected skin - HELP - by litesp - 23.06.2011, 15:07
Re: Password protected skin - HELP - by Wesley221 - 23.06.2011, 15:26

Forum Jump:


Users browsing this thread: 4 Guest(s)