Raised This Month: $ Target: $400
 0% 

t drop knife help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Achtung
Junior Member
Join Date: Oct 2007
Old 10-17-2007 , 10:01   t drop knife help!
Reply With Quote #1

i woundering if someone can code a plugin. The meaning is that terrorist will drop its knife every round. Plz help me
Achtung is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-17-2007 , 18:21   Re: t drop knife help!
Reply With Quote #2

This should be in Suggestions/Requests

EDIT: You cannot "drop" a knife unless you were to block the knife entirely and spawn a knife model near the player.
__________________

Last edited by M249-M4A1; 10-17-2007 at 18:29.
M249-M4A1 is offline
Achtung
Junior Member
Join Date: Oct 2007
Old 10-18-2007 , 00:56   Re: t drop knife help!
Reply With Quote #3

ok i want to block the knife in Terrorist. Does that plugin exists `?
Achtung is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-18-2007 , 16:41   Re: t drop knife help!
Reply With Quote #4

Probably not the best way to do it... but...
Attached Files
File Type: sma Get Plugin or Get Source (m2_no_terrorist_knife.sma - 707 views - 1.2 KB)
__________________
M249-M4A1 is offline
Achtung
Junior Member
Join Date: Oct 2007
Old 10-19-2007 , 02:44   Re: t drop knife help!
Reply With Quote #5

thank you M249-M4A1 ! i will test as soon as possible
Achtung is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-19-2007 , 13:05   Re: t drop knife help!
Reply With Quote #6

It's supposed to give your glock back
__________________
M249-M4A1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-19-2007 , 13:35   Re: t drop knife help!
Reply With Quote #7

I've tested this :
Code:
#include <amxmodx> #include <fakemeta> new const T_SPAWN_CLASSNAME[] = "info_player_deathmatch" //new const CT_SPAWN_CLASSNAME[] = "info_player_start" public plugin_init() {     register_plugin("No Terro Knives","0.1","connor")     register_forward(FM_SetModel, "fwd_SetModel") } public fwd_SetModel(ent, const model[]) {     if(!pev_valid(ent))         return FMRES_IGNORED     if( !equal(model, "models/w_knife.mdl") )         return FMRES_IGNORED     static Float:origin[3]     pev(ent, pev_origin, origin)     if( check_terrorist(origin) )     {         engfunc(EngFunc_RemoveEntity, ent)         return FMRES_SUPERCEDE     }     return FMRES_IGNORED } check_terrorist(Float:origin[]){     new ent     while((ent = engfunc(EngFunc_FindEntityInSphere, ent, origin, 50.0)) != 0 ) {         static classname[33]         pev(ent, pev_classname, classname, charsmax(classname))         if(equal(classname,T_SPAWN_CLASSNAME))             return 1     }     return 0 }

Tested on my listenserver and worked, but as soon as i've added a bot, server crashed.
ConnorMcLeod 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 01:16.


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