SA-MP Forums Archive
Skin on player register - 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 on player register (/showthread.php?tid=624437)



Skin on player register - Martin4 - 16.12.2016

How i can put skin when someone register, than login?!
Because this Cj skin it is too ugly ://..



Re: Skin on player register - Runn3R - 16.12.2016

https://sampwiki.blast.hk/wiki/SetPlayerSkin

Or use the parameter on SetSpawnInfo


Re: Skin on player register - Martin4 - 16.12.2016

Still i cant fix it. Please show me in code :/


Re: Skin on player register - Don_Cage - 16.12.2016

Use SetPlayerSkin under login fuction to set it to a specific skin each time they login.
Use it under register function to set it once when they register.

Read the link he provided to know how to use it.


Re: Skin on player register - Martin4 - 16.12.2016

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
Use SetPlayerSkin under login fuction to set it to a specific skin each time they login.
Use it under register function to set it once when they register.

Read the link he provided to know how to use it.

I've put SetPlayerSkin(playerid, 137); under Public OnPlayerLogins and also under OnPlayerRegister, but still nothing..
Wtf? What is wrong with this?



Re: Skin on player register - Martin4 - 17.12.2016

SOMEONE know? To tell me pls?!!!!


Re: Skin on player register - Runn3R - 17.12.2016

Set it after SpawnPlayer(playerid);


Re: Skin on player register - Martin4 - 17.12.2016

Quote:
Originally Posted by Runn3R
Посмотреть сообщение
Set it after SpawnPlayer(playerid);
But , what about when someone changes his clothes in clothes shop , and he relog, skin doesnt stay, how i can fix this?


Re: Skin on player register - Alex_T - 17.12.2016

Create a variable to store the skin in and everytime he changes it in clothes shop, change the variable to the skin he set in clothes shop then when he logs in use SetPlayerSkin(playerid, skinvariable)


Re: Skin on player register - Martin4 - 17.12.2016

Quote:
Originally Posted by Alex_T
Посмотреть сообщение
Create a variable to store the skin in and everytime he changes it in clothes shop, change the variable to the skin he set in clothes shop then when he logs in use SetPlayerSkin(playerid, skinvariable)
I've Put under SetPlayerSpawn --- SetPlayerSkin(playerid, 137); and under OnPlayerLogins:

Код:
    new originalskin = PlayerInfo[playerid][pModel];
   	SetPlayerSkin(playerid, originalskin);//
Still nothing.. When i spawn give me skin with id 137, but when i change it in clothes shop and relog, skin still same..