Getting gun name of issuerid and playerid OnPlayerTakeDamage
#1

Well, basically, i stumbled on this specific part. What i wanna do is, i want to get the gun name of the issuerid who shot playerid and store the gun name, so i can format it inside a textdraw. This is the code, in which i used to do it.


pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
        GetWeaponName(weaponid, Weap, 34);
    TextDrawSetString(Textdraw5[issuerid], astring);
    format(astring, 256, "%s", Weap);
        TextDrawShowForPlayer(issuerid, Textdraw5[issuerid]);
        /* issuerid gun */
Now, i want to tell the playerid which gun issuerid used to shoot him.

pawn Код:
format(bstring, 256, "%s", Weap);
    TextDrawSetString(Textdraw11[issuerid], bstring);
        TextDrawShowForPlayer(playerid, Textdraw11[playerid]);
The problem: whenever the issuerid shoots playerid, it tells playerid the gun he is currently using, when i want it to show which gun playerid used to shoot him. help is appreciated
Reply


Messages In This Thread
Getting gun name of issuerid and playerid OnPlayerTakeDamage - by GwENiko - 10.10.2014, 18:13
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by GwENiko - 11.10.2014, 04:37
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by Pottus - 11.10.2014, 04:53
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by Threshold - 11.10.2014, 04:55
Re: Getting gun name of issuerid and playerid OnPlayerTakeDamage - by GwENiko - 11.10.2014, 05:38

Forum Jump:


Users browsing this thread: 4 Guest(s)