Saving skins
#1

I want people to spawn at the same location as they were on when they disconnected, that's no problem. But when i'm saving the skin on "OnPlayerDisconnect" i use "GetPlayerSkin".

But how can i give the skin the player had before disconnecting back when player spawns with "SetPlayerSkin" or something else if possible.
Reply
#2

Under OnPlayerDisconnect you would use
pawn Код:
new skin = GetPlayerSkin(playerid);
Then write it as so in their .ini file. If you already have their positions saved.
Add an if under OnPlayerSpawn if their x variable is equal to 0 then spawn them at the noob spawn and give them the newb skin. Else, they get the skin they last had.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)