[SOLVED] Needed better Idea for getting attacker weapon
hii all, i need some good suggestions & better way or new idea.... as i m wanted to give points as per specific weapon kills...
sooo is there any new idea to detect weapons....soo plugin can use low cpu usage... if simple lang i dont want to use if that attacker has this or that weapon.. PHP Code:
|
Re: Needed better Idea for getting attacker weapon
You can check the victim was killed by weapon of the attacker like this:
PHP Code:
|
Re: Needed better Idea for getting attacker weapon
bro i wanted to give points on that weapon then how...???
|
Re: Needed better Idea for getting attacker weapon
What do you mean points for weapon?
|
Re: Needed better Idea for getting attacker weapon
i am creating xp / points system plugin ... i want to give points on specific weapons i had used that above give my code but i need better one..
|
Re: Needed better Idea for getting attacker weapon
Show here code :D
|
Re: Needed better Idea for getting attacker weapon
code is show above ....
|
Re: Needed better Idea for getting attacker weapon
Store your preset points for kills in an array ( corresponding with the CSW constants ), then retrieve the used weapon's name with read_data( 4 ), formatting it and converting it back to it's CSW constant, and then get the points value from the array.
|
Re: Needed better Idea for getting attacker weapon
i didn't got this can show one example...plz
|
Re: Needed better Idea for getting attacker weapon
long way without csx
easy way with csx module (RECOMMANDED)
|
| All times are GMT -4. The time now is 10:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.