Password to skin
#10

Only the skins who should have the password need the array PasswordClass[..] before the function AddPlayerClass. Not all skins!

Also you should write OnPlayerRequestClass like this:
PHP код:
public OnPlayerRequestClass(playerid,classid)
{
    for(new 
i;i<sizeof(PasswordClass);i++)
    {
        if(
classid == PasswordClass[i])
        {
            
ShowPlayerDialog(playerid,DIALOG_SKINPW,DIALOG_STYLE_INPUT,"Password","Put in the password for the skin","Next","");
            return 
1;
        }
    }
    
ShowPlayerDialog(playerid,-1,DIALOG_STYLE_INPUT," "," "," "," ");
    return 
1;

So when you choose a skin who needn't a password the dialog will hide.
Reply


Messages In This Thread
Password to skin - by Bulgaria - 30.03.2016, 07:24
Re: Password to skin - by saffierr - 30.03.2016, 07:40
Re: Password to skin - by Mencent - 30.03.2016, 07:47
Re: Password to skin - by Bulgaria - 30.03.2016, 07:52
Re: Password to skin - by Mencent - 30.03.2016, 08:02
Re: Password to skin - by Bulgaria - 30.03.2016, 08:09
Re: Password to skin - by Mencent - 30.03.2016, 08:12
Re: Password to skin - by Bulgaria - 30.03.2016, 08:13
Re: Password to skin - by Mencent - 30.03.2016, 08:16
Re: Password to skin - by Mencent - 31.03.2016, 09:31

Forum Jump:


Users browsing this thread: 3 Guest(s)