give_item
Hi, im having a problem with giving an item to a killer.
It aint giving the nade to the killer. Code:
|
Re: give_item
Use "weapon_hegrenade", not "CSW_HEGRENADE". Also, you don't need to use the "e" flag in register_event, because it's a global event.
|
Re: give_item
This is part of my new release(TFC Weapons)
Does this give you a hint? PHP Code:
|
Re: give_item
Okay thanks.. :)
I was also wondering, why cant i do this: Code: get_user_frags(id) / get_user_deaths(id) I want to find the kill ratio.. But the i get "Run time error: 11 - Divide" Edit: I've just tryed it, and it works, but it is like it's repeating itself 10 times. I gives me loads of nades when im killing an enemy.. :/? |
Re: give_item
I'll rewrite your code. (The First Part)
PHP Code:
Hm. |
Re: give_item
Copy and Post full code.
|
Re: give_item
Okay.. I did the same as you.. But it's repeating it self 10 times or something, i just get loads of nades, when i kill an enemy...
|
Re: give_item
Code:
|
Re: give_item
Quote:
|
Re: give_item
stigma: As for dividing, the result will be an integer, which probably isn't the kind of ratio you want (no decimals). But, what is the context of that code? Are you assigning it to a variable, or just running that piece by itself?
As for it getting lots of grenades, here is the start of the GunGame DeathMsg hook, it should explain it to you: Code:
Phantom Warrior: Umm... it is his full code? |
| All times are GMT -4. The time now is 11:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.