need some help

New Member
Joined
Aug 22, 2005
Messages
105
Best answers
0
hello guys,

i got a terribly hard question (at least for meh) that i wanted to ask you.

what does this line of code return if you select kamehameha in the attack list

Code:
	new playerID = get_msg_arg_int( 1 );
	new clip,ammo
	new weapon = get_user_weapon( playerID, clip, ammo )
i would really like to know this, because it keeps on giving me errors

thanks ssj2goku
 
New Member
✔️ HL Verified
Joined
Apr 23, 2005
Messages
416
Best answers
0
Nothing :p

It won't return you index of weapon if you are using anything above AMXX 1.00/1.01
You need to check your weapon different way *cough* CurWeapon *cough*
 
New Member
✔️ HL Verified
Joined
Apr 23, 2005
Messages
416
Best answers
0
Yea, the CurWeapon message. Check the string/integer in it. I can't say anything more, sry.
 
New Member
Joined
Mar 18, 2005
Messages
14
Best answers
0
Its not a big secret encore.
http://amxmodx.org/forums/viewtopic.php?t=19880

You could also implement your own weapon id system by intercepting all the weapon commands and assign each one a unique id.. That way you know what weapon has what id instead of having to go through all of esf's weapon ids.
 
New Member
✔️ HL Verified
Joined
Apr 23, 2005
Messages
416
Best answers
0
Jinto said:
Its not a big secret encore.
http://amxmodx.org/forums/viewtopic.php?t=19880

You could also implement your own weapon id system by intercepting all the weapon commands and assign each one a unique id.. That way you know what weapon has what id instead of having to go through all of esf's weapon ids.

Sry Jinto, I always need to act like a mysterious persona ... -.-"
I think its better that peeps solve it by themselves, not just by getting finished snippets.
 
Freelance Mappzor
✔️ HL Verified
🚂 Steam Linked
💻 Oldtimer
Joined
Nov 21, 2003
Messages
17,065
Best answers
0
Location
Stairing at the Abyss
Gohan Ssj said:
lol dude.. but.. if u can help.. why wont u ? =\
A wise man said once. "If you give a man a fish you feed him for a day. But if you teach the same man how to catch fish you feed him for life."


In other words you learn faster if you do it yourself. Since people tend to forget how it goes when someone does it instead of you ;)
 
New Member
Joined
Nov 1, 2004
Messages
168
Best answers
0
Location
Israel
lol dud.. guass ur right

buttt stilll ifff uuu cannn helppp thennn helpppp :D
 
New Member
Joined
Aug 22, 2005
Messages
105
Best answers
0
only problem is, how the hell would a beginning coder know EVERY message and EVENT in esf ????
 
New Member
✔️ HL Verified
Joined
Apr 23, 2005
Messages
416
Best answers
0
yea. trail & error = best way.

Events are easy.

Type "metagame" in console and message list will appear
You can use them with register_message and with register_event.

And if you want to learn how to do those. Take Johnny Got His Guns tracer.
 

Users who are viewing this thread

Top Bottom