11.06.2014, 22:36
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);