OnPlayerTakeDamage
#8

Hello, AhmedMohamed first of all, see what Y_Less has questioned you, "0xFFFF" is a hexadecimal value, that when turning into decimal stands for "65535", which is the "issuerid" of the function.

I've had this problem before, I do not know if there is another way to solve it, but I've done a function to call death to the player.
Just do something like this:

PHP Code:
     if(issuerid == INVALID_PLAYER_ID)
    {
        switch(
weaponid)
        {
            case 
54//Your switch weaponid, in this case, collision
            
{
                if(
amount 99.0//Here, check if amount is bigger then 99.0, that is the damage caused by a very large drop.
                
{
                    
//Here, you call your function to kill player.
                
}
                 else
                {
                    
//Here, just deal damage to the player.
                
}
            }
        }
    } 
Creating a function to specifically kill the player in this condition can help, with me it worked.
Reply


Messages In This Thread
OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 02:32
Re: OnPlayerTakeDamage - by B3x7K - 19.01.2019, 02:39
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 02:58
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 03:20
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 03:37
Re: OnPlayerTakeDamage - by GeorgeLimit - 19.01.2019, 03:46
Re: OnPlayerTakeDamage - by AhmedMohamed - 19.01.2019, 03:58
Re: OnPlayerTakeDamage - by ApolloScripter - 19.01.2019, 05:10
Re: OnPlayerTakeDamage - by Undef1ned - 19.01.2019, 12:33
Re: OnPlayerTakeDamage - by GeorgeLimit - 19.01.2019, 13:24
Re: OnPlayerTakeDamage - by B3x7K - 19.01.2019, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)