21.05.2014, 00:40
Well if the players health is 0 then they should be dying anyway. In that case, why not use the OnPlayerDeath function? As said in your statement you are trying to set their position whilst their HP is 0. You can do it like this,
When OnPlayerDeath is called teleport them to the coordinates. If you want them to have low health whilst at the place just set their health low to something like 20, or even 5 if applicable.
What I'm trying to say:
When OnPlayerDeath is called teleport them to the coordinates. If you want them to have low health whilst at the place just set their health low to something like 20, or even 5 if applicable.
What I'm trying to say:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(playerid == killerid) return 0;
SetPlayerPos(playerid, -, -, -);
return 1;
}