Little OnPlayerDeath question
#1

Skin rolls back to CJ skin after first death, but later after second death it works fine. Whats the problem?
It looks like with animations which works only after second applying... -_-

public OnPlayerDeath(playerid)
{
new skin = GetPlayerSkin(playerid);
SetSpawnInfo(playerid, 0, skin, 1607.3992, 1815.2408, 10.8204, 0, 0, 0, 0, 0, 0, 0);
return 1;
}
Reply
#2

Why do you use SetSpawnInfo? Use AddPlayerClass in OnGameModeInit, I have no probs with it.
Reply
#3

im using it because i have a login system which is using SetSpawnInfo. it looks like:

SetSpawnInfo(playerid,0,dini_Int(file, "Skin"),dini_Int(file, "X"),dini_Int(file, "Y"),dini_Int(file, "Z"),0,0,0,0,0,0,0);

And when you dead you need to spawn at hospital entrance with the same skin you had before. But skin applies only after second death. Thats sucks.
Reply
#4

Solved.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)