27.12.2014, 04:24
Hello.
I'm trying to spawn at the hospital when i die but it doesn't work.
I also tried this ->
none of them works because i spawn at Blueberry falling.
I'm trying to spawn at the hospital when i die but it doesn't work.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
IsDead[playerid] = 1;
if(IsDead[playerid] == 1)
{
IsDead[playerid] = 0;
SetPlayerPos(playerid, 1183.31, -1325.01, 13.58);
SetPlayerFacingAngle(playerid, -90);
SetPlayerSkin(playerid,X[playerid][XVar]);
ResetPlayerWeapons(playerid);
return 1;
}
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsDead[playerid] == 1)
{
IsDead[playerid] = 0;
SetPlayerPos(playerid, 1183.31, -1325.01, 13.58);
SetPlayerFacingAngle(playerid, -90);
SetPlayerSkin(playerid,X[playerid][XVar]);
ResetPlayerWeapons(playerid);
return 1;
}
return 1;
}
public OnPlayerDeath(playerid,killerid,reason)
{
IsDead[playerid] = 1;
return 1;
}

