now to call OnPlayerGiveDamage ??
#1

How to make code to call OnPlayerGiveDamage,

is it PlayerGiveDamage(playerid,.....) ??
Reply
#2

Haven't posted or scripted in a while, so my post may be useless.

First off, why do you want to call that callback? It is called when a player gives damage to someone else, such as shooting another player.
Reply
#3

Yes i know "It is called when a player gives damage" i want test is player able to take damage, when damage given by player it may be miss shoot but when called by code is 100% shoot so if player OnPlayerTakedmg not be called player id is not possible to take damage.
Reply
#4

OnPlayerGiveDamage is called AFTER they have hit them on their screen, the server is not able to tell if the other player will take damage.
You can call it via the script by just using OnPlayerGiveDamage(.. however it'll just call what ever script you put in there and not deal any players damage.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)