Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
SetPlayerVirtualWorld(playerid, LastVW[playerid]);
SetPlayerInterior(playerid, LastInt[playerid]);
SetSpawnInfo(playerid, 0, skin, LastX[playerid], LastY[playerid], LastZ[playerid]+0.5,0, 0,0,0,0,0,0);
SpawnPlayer(playerid);
SetPlayerSkin(playerid, skin);
I only added the SetPlayerSkin afterwards, I debugged it and it definitely gets the correct skin from skin.
I'm extremely confused, adds CJ skin.
Posts: 596
Threads: 75
Joined: Nov 2015
It sets the CJ skin because the skin variable is returning the value 0.Check if you are updating the variable properly.
Posts: 79
Threads: 3
Joined: Oct 2012
Reputation:
0
You need use a SetPlayerSkin in OnPlayerSpawn public
Posts: 1,648
Threads: 482
Joined: Jun 2010
It crashes the player when using SetPlayerSkin in OnPlayerSpawn
Posts: 596
Threads: 75
Joined: Nov 2015
Quote:
Originally Posted by Dokins
It crashes the player when using SetPlayerSkin in OnPlayerSpawn
|
Try using different coordinates for spawn and then trying setting the skin on spawn
Posts: 1,648
Threads: 482
Joined: Jun 2010
It saves the players last coordinates and uses them to spawn the player.