Posts: 1,409
Threads: 376
Joined: Apr 2012
Reputation:
0
Hello, how to make that you see the Damage when you shoot an player as a gametext for example: "DAMAGE GIVEN: DAMAGE"?
Posts: 1,409
Threads: 376
Joined: Apr 2012
Reputation:
0
Yeah but how to put it then in the gametext like "DAMAGE GIVEN: DAMAGE"
Posts: 791
Threads: 65
Joined: Oct 2009
Reputation:
0
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new str[128];
format(str,sizeof(str),"%.2f", amount);
GameTextForPlayer(playerid,str, 5, 1000);
}
Posts: 1,409
Threads: 376
Joined: Apr 2012
Reputation:
0
This dont work, know everyone an other solution or should i use for that OnPlayerGiveDamage?
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
What about it doesn't work? The code jamesbond007 posted looks perfectly fine to me.
Posts: 1,409
Threads: 376
Joined: Apr 2012
Reputation:
0
But will it send that to the ID who got damage, or to the ID which give damage?
Posts: 977
Threads: 10
Joined: Apr 2011
Reputation:
0
Not to come off absurdly rude, but if you cannot figure that out by looking at the callback parameters and the parameters you pass to the function, I don't think you should be running a server.
Look on the Wiki for their documentation if you need further assistance (one link was already posted).