Skin spawn
#1

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
Reply
#2

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)