21.04.2010, 19:44
If you want to teleport players when the HP is 20 OR lower (for example: 5, 10, 15)
Use this:
Use this:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(HealthAmount <= 20)
{
SetPlayerPos(playerid, 0.0, 0.0, 0.0);
}
return 1;
}