[ZP] Extra item: Thunder Knife
1 Attachment(s)
Here it is, working now
THUNDER KNIFE What it does: when human player purchases it, he will receive knife that crackles with electricity. If zombie is slashed with thunder knife, he will die instantly. Nemesis is immune to thunder knife Update: lightning strike is now much more larger TODO: Model for thunder knife? Credits: fiendshard, Mercylezz, abdul, vechta, nikhil, laci, nido |
Re: [HELP] [ZP] Extra item: Thunder Knife
Try this:
PHP Code:
|
Re: [HELP] [ZP] Extra item: Thunder Knife
Nope, doesn't work
|
Re: [HELP] [ZP] Extra item: Thunder Knife
check on event damage if user has the item & weapon is knife
|
Re: [HELP] [ZP] Extra item: Thunder Knife
Never ever used register_event("Damage"), but used takedamage. So idk why is passed in the paramter of the function eventDeath or w/e. What is the id? The victim?
Anyway, if it is as i suspect, this should work: Code:
#include <amxmodx> |
Re: [HELP] [ZP] Extra item: Thunder Knife
Quote:
|
Re: [HELP] [ZP] Extra item: Thunder Knife
You need to change this
Code:
Code:
Or for setting havetk[i] to 0 you can use arrayset( ... ) native to achieve your goal And change this: Code:
Code:
|
Re: [HELP] [ZP] Extra item: Thunder Knife
You justt LOVE using static right :)
Got a question, does maxplayers just get hte max amount of players that are allowed int he server or the amount of players in the server at the moment? Because I usuallly use get_players |
Re: [HELP] [ZP] Extra item: Thunder Knife
Quote:
And regarding max players, get_maxplayers() returns the maximum slots on the server and you can store this value as a global during plugin start since the to change the max player setting you need to restart your server :up: AND plz dont use get_players( ... ) bcoz it is resource ful and difficult :nono: |
Re: [ZP] Extra item: Thunder Knife
It is necessary to use STATIC bcoz static electricity is used in this knife
|
| All times are GMT -4. The time now is 14:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.