Help REP+ -
sheNdjze - 05.04.2016
Alright, i would like to make something to save the last skin spawned with in on player request class, i mean let me make you an example: i join the server and i got a large choose for skins, i choose policeman skin, now i spawn and i relog, after relog before spawn to bring me to last skin i selected, like this in this video:
https://www.youtube.com/watch?v=nUrMvtXULho, i already got in my script something like this with setspawninfo that after login gets PlayerInfo[playerid][pModel] and skips the class selection and spawn you with the last chosen skin in class selection. Rep ++ to who helps me...
Re: Help REP+ -
Vanter - 05.04.2016
You have to do some things, I shall help you by guiding you, but I won't make the script for you..
First, you gotta create a SetPlayerTeamFromSkin, only if you have teams in your server, if not, skip this
Second, you have to create a "pskin' under your playerinfo enum (assuming you are using Y_INI)
Third, After player registeration, set pskin to 0.
Fourth, OnPlayerRequestClass, check if pskin == 0, then continue
if pskin != 0, then forcespawn, and setteamfromskin (if there are teams in your server)
Fifth, OnPlayerDisconnect, set pskin =GetPlayerSkin(playerid);
That's only guidlines, use ****** now
Re: Help REP+ -
sheNdjze - 05.04.2016
it does not do what i want, i already got this function in my gm, i want the saved skin when i request the class not when i spawn, because when i spawn it already works but i just don't want it like this. thank you anyway