Quote:
Originally Posted by Ebisu
Here you go, Just an example.
Edit it for youself.
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if (Logged[playerid]==1 && issuerid == INVALID_PLAYER_ID)
{
new Float:hp;
if(weaponid == 54) GetPlayerHealth(playerid, hp), hp+=amount, SetPlayerHealth(playerid, hp);
}
return 1;
}
|
OnPlayerTakeDamage is called after damage has been taken. What you have to actually do is check if the player is falling (there are various methods) and if so, set the player's health to 99999 (or blinking).