Simple question, Related to PlayerHealth
#3

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:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(playerid == killerid) return 0;
SetPlayerPos(playerid, -, -, -);
return 1;
}
Reply


Messages In This Thread
Simple question, Related to PlayerHealth - by Le3aT - 21.05.2014, 00:14
Re: Simple question, Related to PlayerHealth - by SickAttack - 21.05.2014, 00:35
Re: Simple question, Related to PlayerHealth - by Abagail - 21.05.2014, 00:40
Re: Simple question, Related to PlayerHealth - by Le3aT - 21.05.2014, 00:53
Re: Simple question, Related to PlayerHealth - by K9IsGodly - 21.05.2014, 01:01
Re: Simple question, Related to PlayerHealth - by Le3aT - 21.05.2014, 01:17
Re: Simple question, Related to PlayerHealth - by K9IsGodly - 21.05.2014, 01:34
Re: Simple question, Related to PlayerHealth - by Le3aT - 21.05.2014, 01:44
Re: Simple question, Related to PlayerHealth - by Le3aT - 21.05.2014, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)