Help on a Plugin Creation
public kill_all_knives() {
new iEnt = find_ent_by_class(-1,"weapon_knife") while(iEnt!=0) { remove_entity(iEnt) iEnt = find_ent_by_class(iEnt,"weapon_knife") } } I found this little sample script of disabling a knife posted by some guy forgot his name I really do wanted to disable the knife until bought by an optional plugin named "buy bare knuckels" that acts like a knife, this would be a temporary plugin until Asskicr's buyknife is fully functional. Asskicr's plugin doesn't really work, the name is "BuyKnife v1.0", instead of disabling the knife, it took my secondary weapon, how ODDDD I was hoping that there would be a hero over at rocks-hideout, that would allow this to happen but really don't know which one, If none, could someone post a script to disable knife on each time the round starts with their name as author of it. Plezzzzz I bet its a very simple plugin to create, don't ask me I'm too noob about it, I'm only good in modifying Tanxs guys Edited: Hey Asskicr, Hapi B-Day man....... got some news about your old buyknife plugin it really needs an update with a fix ofcourse Tanx |
What? You went off-topic like 3 times just in that post...
So let me get this straight, you want a plugin that will replace the knife with a "bare hands" type of thing, but you can still buy the knife to get it? |
There are cs_set_no_knives native in cstrike module. Why just don't use it? Btw, your code above will crash the server. You can delete knife entity only on creation, once it's linked to the player it's can't be deleted in that way.
|
| All times are GMT -4. The time now is 16:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.