Get same skin when spawn.
#4

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
PHP код:
new Skin;
public 
OnPlayerDisconnect(playeridreason)
{
    
Skin GetPlayerSkin(playerid);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
SetPlayerSkin(playeridSkin);
    return 
1;

Are you aware of what you just posted there? Have you like, switched off your brain..? Sorry for the rudeness!
You made a global variable 'Skin', saved the last disconnected player's skin into it, and then made the newest connected player's skin to that!

OT: What you must do is you should have a MySQL/INI saving system, you must include a 'skin' variable in the ENUMERATOR you use for the player's saving (PlayerInfo[playerid][pSkin]) and then save it into his ENUM and his FILE on disconnect, and on loading load it from his FILE. I hope you get what I mean.
Reply


Messages In This Thread
Get same skin when spawn. - by Configuration - 16.07.2013, 23:22
Re: Get same skin when spawn. - by Nines - 16.07.2013, 23:30
Re: Get same skin when spawn. - by ThePhenix - 16.07.2013, 23:41
Re: Get same skin when spawn. - by RajatPawar - 17.07.2013, 06:26

Forum Jump:


Users browsing this thread: 3 Guest(s)