10.10.2014, 18:13
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.
Now, i want to tell the playerid which gun issuerid used to shoot him.
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
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 */
pawn Код:
format(bstring, 256, "%s", Weap);
TextDrawSetString(Textdraw11[issuerid], bstring);
TextDrawShowForPlayer(playerid, Textdraw11[playerid]);