Raised This Month: $ Target: $400
 0% 

Help on a Plugin Creation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kenchi
Member
Join Date: Feb 2005
Location: Steam
Old 05-24-2006 , 04:29   Help on a Plugin Creation
Reply With Quote #1

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
__________________
CS is Love, CS is the source of Love. CS made me the person I am today, ^_º A little bit weird... rofl


[IMG]http://img14.**************/img14/3522/20526a.gif[/IMG]
Kenchi is offline
Send a message via MSN to Kenchi Send a message via Yahoo to Kenchi
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-24-2006 , 08:30  
Reply With Quote #2

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?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
VEN
Veteran Member
Join Date: Jan 2005
Old 05-24-2006 , 11:51  
Reply With Quote #3

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.
VEN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode