anti collision
#4

Quote:
Originally Posted by Ebisu
Посмотреть сообщение
Here you go, Just an example.
Edit it for youself.
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
   if (
Logged[playerid]==&& issuerid == INVALID_PLAYER_ID)
    {
            new 
Float:hp;
            if(
weaponid == 54GetPlayerHealth(playeridhp), hp+=amountSetPlayerHealth(playeridhp);
    }
    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).
Reply


Messages In This Thread
anti collision - by wallen - 08.12.2016, 09:04
Re: anti collision - by CoZmiNeXe - 19.07.2017, 13:51
Re: anti collision - by Ebisu - 19.07.2017, 14:31
Re: anti collision - by Paulice - 19.07.2017, 14:40
Re: anti collision - by Ebisu - 19.07.2017, 14:50
Re: anti collision - by Paulice - 19.07.2017, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)