Realy big problem, with setting skin on spawning.
#3

pawn Код:
SetSpawnInfo(playerid, 0, 123, X, Y, Z, A, 0, 0, 0, 0, 0, 0); // You will spawn with skin number 123.
SpawnPlayer(playerid); // Spawn the player is forced.
If you are using MySQL, it may be a field in your table that contains the skin and on your gamemode you PlayerInfo a variable or other (pInfo...), and we must proceed like this:

pawn Код:
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], X, Y, Z, A, 0, 0, 0, 0, 0, 0); // We will look for the skin that the player has.
SpawnPlayer(playerid); // Spawn the player is forced.
Reply


Messages In This Thread
Realy big problem, with setting skin on spawning. - by AA9 - 11.01.2014, 18:51
Re: Realy big problem, with setting skin on spawning. - by 1FreeHost - 11.01.2014, 19:27
Re : Realy big problem, with setting skin on spawning. - by TheSy - 11.01.2014, 20:24
Re: Realy big problem, with setting skin on spawning. - by AA9 - 12.01.2014, 09:13
Re: Realy big problem, with setting skin on spawning. - by AA9 - 12.01.2014, 11:18

Forum Jump:


Users browsing this thread: 2 Guest(s)