SA-MP Forums Archive
Skin spawn - 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: Skin spawn (/showthread.php?tid=604941)



Skin spawn - Godey - 12.04.2016

Hey!
I got a problem.. Suppose I made a /skin command which acts like
Код:
SetPVarInt(playerid,"SaveTheSkin",1);
and under OnPlayerSpawn I added:
Код:
if(GetPVarInt(playerid,"SaveTheSkin") == 1)
{
    SetPlayerSkin(playerid, pInfo[playerid][Skin]);
}
Why when in class selection it does not allow me to use "<<" or ">>" just one skin?
Unregistered users can use only Skin ID 0, why?

Please help..
Thanks


Re: Skin spawn - introzen - 12.04.2016

You've not added the classes. https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: Skin spawn - Godey - 12.04.2016

I added all 299 of them (not 311, still outdated :P)

Is there other place where I have to put the GetPlayerVarInt rather OnPlayerSpawn?

See if I enter like an un-registered person I can now use all the 0-299 skins
If I'm registered/un-registered and I use /skin <id> it doesn't save when I relog,
when I click spawn, it gives me the selected skin instead of replacing with the skin I set in /skin