Skin beeing set to 0?
#5

pawn Код:
public OnAccountLoad(playerid)
{
    //Your stuffs
    g_PlayerLoggedIn[playerid] = true; //You may already have something similar to this.
    return 1;
}

public OnPlayerRequestSpawn(playerid) //The callback called before player getting spawned
{
    if(g_PlayerLoggedIn[playerid])
        SetSpawnInfo(playerid, g_SavedTeam[playerid], g_SavedSkin[playerid], ...); //Set the spawn info, make sure you store the class information to use them in this function.
    return 1;
}
So when the player spawns, they'll be using the saved skin.
Reply


Messages In This Thread
Skin beeing set to 0? - by vassilis - 18.01.2015, 23:04
Re: Skin beeing set to 0? - by vassilis - 20.01.2015, 00:07
Re: Skin beeing set to 0? - by Lordzy - 20.01.2015, 02:22
Re: Skin beeing set to 0? - by vassilis - 20.01.2015, 02:45
Re: Skin beeing set to 0? - by Lordzy - 20.01.2015, 02:49
Re: Skin beeing set to 0? - by vassilis - 20.01.2015, 02:52
Re: Skin beeing set to 0? - by Lordzy - 20.01.2015, 02:53
Re: Skin beeing set to 0? - by vassilis - 20.01.2015, 02:57
Re: Skin beeing set to 0? - by Lordzy - 20.01.2015, 03:01
Re: Skin beeing set to 0? - by vassilis - 20.01.2015, 16:11

Forum Jump:


Users browsing this thread: 1 Guest(s)