Posts: 330
Threads: 65
Joined: Apr 2012
Reputation:
0
How to make code to call OnPlayerGiveDamage,
is it PlayerGiveDamage(playerid,.....) ??
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
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.
Posts: 330
Threads: 65
Joined: Apr 2012
Reputation:
0
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.
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
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.