SA-MP Forums Archive
weapon display - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: weapon display (/showthread.php?tid=518851)



weapon display - Le3aT - 11.06.2014

Hey, I got a question.
I made a textdraw and variables.. etc.

What If i want this textdraw to display the player's current weapon, That'd be nice if you helped me.


Re: weapon display - Le3aT - 11.06.2014

simply, I want to display the weapon name on my textdraw, how ?


Re: weapon display - Threshold - 11.06.2014

pawn Код:
new weap[32], var = GetPlayerWeapon(playerid);
switch(var)
{
    case 0, 18, 44, 45: weap = "None"; //If the weapon is 0, 18, 44 or 45, make the weapon 'null'
    default: GetWeaponName(var, weap, sizeof(weap)); //Get the name of the player's weapon
}
TextDrawSetString(TextDraw, weap);



Re: weapon display - Le3aT - 12.06.2014

Not working.


Re: weapon display - Threshold - 12.06.2014

Ї\_(ツ)_/Ї