Headshot not working!
#8

if you use 2 script or even more and all of them use onplayertake damage

and u do like this for example

BAD:

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    if(
IsPlayerNPC(playerid)) return 0;

return 0 will block OnPlayerTakeDamage for other scripts so it will only work in the first script

GOOD:

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    if(
IsPlayerNPC(playerid)) return 1;

return 1 will allow OnPlayerTakeDamage to be called in other filterscripts

EDIT

@TadePoleMG hehe sorry my bad

FIXED!
Reply


Messages In This Thread
Headshot not working! - by BlackLineCnR - 20.05.2018, 13:16
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 13:36
Re: Headshot not working! - by BlackLineCnR - 20.05.2018, 13:38
Re: Headshot not working! - by Lokii - 20.05.2018, 13:47
Re: Headshot not working! - by BlackLineCnR - 20.05.2018, 13:49
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 13:53
Re: Headshot not working! - by BlackLineCnR - 20.05.2018, 13:55
Re: Headshot not working! - by Lokii - 20.05.2018, 13:55
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 13:58
Re: Headshot not working! - by TadePoleMG - 20.05.2018, 14:04

Forum Jump:


Users browsing this thread: 2 Guest(s)