PDA

View Full Version : save skin


TheDiscussionCafe
22/05/2012, 01:09 AM
anyone help me with save skin? i want so when new player register after register they can pick anyskin. then when they they log off and then log back on, they just have to log in and they will automatic spawn. how can i do that?

Jonny5
22/05/2012, 01:16 AM
man you should have grouped these questions together.

anyways

your not telling use what command processor you use, what saving system you use?
It can be done many different ways,
are you just looking for a verbal description of the steps?
a code example?
a full system?

if you have no saving system i suggest going right to sqlite or mysql
and not messing about with ini files.

TheDiscussionCafe
22/05/2012, 01:18 AM
i am using dudb right now. or i can use dini. whichever is easier and more eficiennt

Jonny5
22/05/2012, 01:25 AM
well dini is NOT the way to go,

iv never used dudb, i always just write my own but
if thats your user system then all you need todo is add the skin field.

when a user registers at your server allow them class selection,
and after they spawn save the skin.

when they login set their spawn info along with their last saved skin.
and force them to spawn in the OnPlayerRequestClass

TheDiscussionCafe
22/05/2012, 01:42 AM
okay thanks. how can i force them to skip Onplayerrequestclass?

I have the other codes. i just need this^

Jonny5
22/05/2012, 01:50 AM
use SetSpawnInfo (http://wiki.sa-mp.com/wiki/SetSpawnInfo)
and SpawnPlayer (http://wiki.sa-mp.com/wiki/SpawnPlayer)

in the OnPlayerRequestClass callback