How to assign a skin to one player?
#1

I want to be able to assign a skin to my account, and only my account so for example if anyone joined my server and tried using my skin they would be told its locked and they will have to choose another one. CAn anyone help me with this?

Cheers, Scott.
Reply
#2

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

Class IDs are assigned when AddPlayerClass is used.

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


Isn't it amazing, what a Search button can do ?
Reply
#3

If I understand correctly, you mean something like this?

BlackPlayer (skinid 1)
OrangePlayer (Skinid 3)
PurplePlayer (Just Connected is in class selection)

Class Selection for PurplePlayer:
Skinid1 (Has been taken, Please Choose another one)
Skinid2 (will respawn.)
Skinid3 (Has been taken, Please Choose another one)
Skinid4 (will respawn.)
Skinid5 (will respawn.)

If so then, use the OnPlayerRequestClass Callback, never tried to make something like this, but perhaps you will be needing variable's to store if the skins has been taken. Or perhaps assign SetPlayerTeam ids on OnPlayerSpawn Callback and check them with GetPlayerTeam function.
Reply
#4

http://forum.sa-mp.com/showthread.ph...hlight=buyskin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)