OnPlayerWeaponShot bug
#1

MOVIE



https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot

Return Values:
0 - Prevent the bullet from causing damage.


Код:
if(hittype == BULLET_HIT_TYPE_OBJECT && hitid == myobject)
{
     SendClientMessageToAll(-1, "Shooted");
    
     return 0;
}
Reply
#2

The call back is suppose to return a zero value aswell so you could rewrite the function of it.

pawn Код:
public OnPlayerWeaponShot(blabla)
{
       if(hittype == BULLET_HIT_TYPE_OBJECT && hitid == myobject)
{
     SendClientMessageToAll(-1, "Shooted");
   
     return 0;
}
return 0;
}
Reply
#3

@UP

Not working!
This callback is bugged as f**k.
Reply
#4

Use object 19324 which is an indestructible version of the ATM added in 0.3.7.
Reply
#5

I want this object and I as a developer looking forward to a properly working function. Changing the object just masking bug.
Reply
#6

change your host! host bug
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)