Get same skin when spawn.
#1

Hello evryone when player enter in game and register and quit game and join again spawn him and get old skin
Reply
#2

do you have a skin selection?
Reply
#3

PHP код:
new Skin;
public 
OnPlayerDisconnect(playeridreason)
{
    
Skin GetPlayerSkin(playerid);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
SetPlayerSkin(playeridSkin);
    return 
1;

Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)