19.01.2019, 05:10
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:
Creating a function to specifically kill the player in this condition can help, with me it worked.
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.
}
}
}
}