• Current Weapon Class
    2 replies, posted
Hello Scripters, again.., I would like to have a plugin/lua code which with I can see the CLASS NAME of the current weapon( like weapon_mad_alyxgun ) [code] Command: Current_wepclass Result: In Chat AND Console: You are currently holding a "#classname#". [/code] I hope you CAN and WILL do that :D Thanks. ------------- Timo
[lua] concommand.Add("current_wepclass",function(ply,cmd,args) ply:ChatPrint("You are currently holding a "..ply:GetActiveWeapon( ):GetClass()..".") end) [/lua] using chatprint prints it to the console as well. I'm unsure about the GetClass bit but i think it should work. Though if it doesn't, please post the error here so i can try fix it.
Thanks, Ill try later! Works PERFECT! Exept if you die and then check it xD Then theres an error(doesnt matter)
Sorry, you need to Log In to post a reply to this thread.