if(GetPlayerWeapon(playerid) > 0) { new s[50]; switch(GetPlayerWeapon(playerid)) { case /*Weapons ids*/: s = "Arma legal"; default: s = "Arma ilegal"; }}