(ask)spawn player after death in hospital
#4

Quote:
Originally Posted by Kitten
View Post
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
        SetPlayerPos(.....CO-RD...);
	return 1;
}
Does not work. You are not setting it after death. It should be set after spawn.

So:

pawn Code:
new Dead[MAX_PLAYERS];

public OnPlayerDeath(playerid,killerid, reason)
{
Dead[playerid] = 1;
return 1;
}

public OnPlayerSpawn(playerid)
{
if (Dead[playerid] == 1) {
SetPlayerPos(playerid, X,Y,Z);'
Dead[playerid] = 0;
}

return 1;
}
Reply


Messages In This Thread
(ask)spawn player after death in hospital - by gondes - 24.07.2010, 07:44
Re: (ask)spawn player after death in hospital - by Kitten - 24.07.2010, 07:46
Re: (ask)spawn player after death in hospital - by ikey07 - 24.07.2010, 07:47
Re: (ask)spawn player after death in hospital - by Jakku - 24.07.2010, 10:18
Re: (ask)spawn player after death in hospital - by sabretur - 07.05.2011, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)