SA-MP Forums Archive
save addplayerclass - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: save addplayerclass (/showthread.php?tid=612507)



save addplayerclass - neropic - 18.07.2016

Hi, i have a question, when I select a skin from requestclass and spawn, I would like to know
when I disconnect and reconnect, make the skin save, when i reconnect whit a registered account, when entering OnPlayerRequestClass only appears your saved skin, not all skins.

Sorry for bad english


Re: save addplayerclass - Gammix - 18.07.2016

You want multiple skins in class selection screen when you register but only one skin when you login?

If yes, you could save the skin using SQL or INI and then when you enter class selection you could do something like this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    // "Variable" will the variable in which you save skin
    SetPlayerSkin(playerid, Variable);
    return 1;
}



Respuesta: Re: save addplayerclass - neropic - 19.07.2016

Quote:
Originally Posted by Gammix
Посмотреть сообщение
You want multiple skins in class selection screen when you register but only one skin when you login?

If yes, you could save the skin using SQL or INI and then when you enter class selection you could do something like this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    // "Variable" will the variable in which you save skin
    SetPlayerSkin(playerid, Variable);
    return 1;
}
thanks mate, +rep