Raised This Month: $ Target: $400
 0% 

question with get_user_weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 02-14-2007 , 17:33   Re: question with get_user_weapons
Reply With Quote #9

Quote:
Originally Posted by Alka View Post
hi. black rose how can i make a HUD msg to show the "curent weapon" in hand? Thanks ;)

Ex: Weapon: Ak47
Weapon: AWP
Weapon glock18

Ps: I try with this above functions!but give me an error!
Code:
#include <amxmodx> new const g_Weapons[][] = {     "", "p228", "", "scout", "hegrenade",     "xm1014", "c4", "mac10", "aug", "smokegrenade",     "elite", "fiveseven", "ump45", "sg550", "galil",     "famas", "usp", "glock18", "awp", "mp5",     "m249", "m3", "m4a1", "tmp", "g3sg1",     "flashbang", "deagle", "sg552", "ak47", "knife",     "p90" }; new g_HUD[64] = "Weapon: %s"; public plugin_init() {     register_event("CurWeapon", "event_CurWeapon", "b") } public event_CurWeapon(id) {     new temp = get_user_weapon(id, temp, temp)     set_hudmessage(255, 0, 255, -1.0, 0.35, 0, 6.0, 12.0, 0.1, 0.1, 3)     show_hudmessage(id, g_HUD, g_Weapons[temp])     // g_Weapons[read_data(2)], Not a good way. Switch from knife to another weapons still returns knife. }
[ --<-@ ] Black Rose is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode