02.05.2014, 20:39
Hello folks
I'm not sure if the title information specifies my problem but I will explain it anyways.
What happens is; if I die, I will be set in CJ skin and send to the Character Selection screen. If I then relog, I spawn dead in CJ skin and I will be send to the character selection screen instantly.
So let me give you a concrete example:
I drive around with my car and I flip. My car explodes and I die. My skin will change to the CJ skin(0) and I'm able to click the arrows to change skin. If I click spawn, it doesn't work.
What I want to do is: If a player dies, he will be spawned back to the original spawn place.
OnPlayerDeath:
OnPlayerRequestSpawn
OnPlayerRequestSpawn
Help is much appreciated!
Sincerely
Bible
I'm not sure if the title information specifies my problem but I will explain it anyways.
What happens is; if I die, I will be set in CJ skin and send to the Character Selection screen. If I then relog, I spawn dead in CJ skin and I will be send to the character selection screen instantly.
So let me give you a concrete example:
I drive around with my car and I flip. My car explodes and I die. My skin will change to the CJ skin(0) and I'm able to click the arrows to change skin. If I click spawn, it doesn't work.
What I want to do is: If a player dies, he will be spawned back to the original spawn place.
OnPlayerDeath:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], 2129.1775,35.4770,26.3709, 179, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
return 1;
}
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
return 0;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
return 0;
}
Sincerely
Bible