Unable to use on defuse/& other code questions
Yes, I am trying to get into scripting starting off by editing others plugins, and this one kinda intrigued me, but there was a few things I didn't like. This specific Bazooka plugin doesn't allow users to buy bazookas on defusion maps, because of this line
PHP Code:
if (find_ent_by_class(-1, "func_bomb_target") == 0) { Whats the -1 mean? .. Thats why I'm asking if you could just explain everything basicly .. that is in the code above. AlsoWhat can be done to edit this to make it usable on defusion maps? I tried taking it out complately but got a few error messages upon compiling. I aslo tried just taking out only this line: PHP Code:
Anyone know ? |
Re: A few questions
Also, I wrote this small script as my first plugin and there were a few errors, here is the orignial code:
PHP Code:
And then after a few suggestions .. I changed a bit around and it now looks like this.. and works fine. PHP Code:
PHP Code:
and PHP Code:
PHP Code:
|
Re: code questions
As per the Global Forum Rules, you need to have a descriptive topic. If you wish for this topic to stay open, please correct the topic title before you post again.
|
| All times are GMT -4. The time now is 05:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.