Raised This Month: $ Target: $400
 0% 

Bladez Only + more?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jarrett
Junior Member
Join Date: Apr 2004
Old 04-30-2004 , 17:42   Bladez Only + more?
Reply With Quote #1

can anyone help me modify this plugin to allow more than just knives
im very new to amxx and small but i think it should be very simple to do
ive tried just adding new weapons to this
Code:
public switchweapon(id) {
   engclient_cmd(id,"weapon_amerknife")
   engclient_cmd(id,"weapon_gerknife")
   engclient_cmd(id,"weapon_spade")
}
but that causes a reliable channel overflowed
i think all that needs to be done is change switchweapon to something else
but i dont know amxx well enough to know what
if this cant be done just let me know
thanks
Jarrett is offline
Send a message via AIM to Jarrett
Jarrett
Junior Member
Join Date: Apr 2004
Old 04-30-2004 , 19:30  
Reply With Quote #2

or maby something to do with this
Code:
   register_event("CurWeapon","switchweapon","be","1=1","2!1","2!2","2!19")
someone please help me or point me into the right direction
Jarrett is offline
Send a message via AIM to Jarrett
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-30-2004 , 19:33   Re: Bladez Only + more?
Reply With Quote #3

Quote:
Originally Posted by Jarrett
can anyone help me modify this plugin to allow more than just knives
im very new to amxx and small but i think it should be very simple to do
ive tried just adding new weapons to this
Code:
public switchweapon(id) {
   engclient_cmd(id,"weapon_amerknife")
   engclient_cmd(id,"weapon_gerknife")
   engclient_cmd(id,"weapon_spade")
}
but that causes a reliable channel overflowed
i think all that needs to be done is change switchweapon to something else
but i dont know amxx well enough to know what
if this cant be done just let me know
thanks
i think it causes a reliable overflow because if im not mistaken that would make the client do the command weapon_amerknife weapon_gerknife weapon_spade over and over and over.
__________________
QwertyAccess is offline
Jarrett
Junior Member
Join Date: Apr 2004
Old 04-30-2004 , 19:42   Re: Bladez Only + more?
Reply With Quote #4

Quote:
Originally Posted by QwertyAccess
i think it causes a reliable overflow because if im not mistaken that would make the client do the command weapon_amerknife weapon_gerknife weapon_spade over and over and over.
no, i think its because its telling it to switch to one of the weapons but you have more than one of thoes weapons so it doesnt know witch one to switch to. but my post right before yours, can you help me with that, i think it has something to do with thoes numbers "1=1","2!1","2!2","2!19"
Jarrett is offline
Send a message via AIM to Jarrett
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 04-30-2004 , 21:17  
Reply With Quote #5

Quote:
Originally Posted by Jarrett
or maby something to do with this
Code:
   register_event("CurWeapon","switchweapon","be","1=1","2!1","2!2","2!19")
someone please help me or point me into the right direction

Try:
Code:
   register_event("CurWeapon","switchweapon","be","1=1","2!1","2!2","2!19","2!3","2!4","2!28")
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
Jarrett
Junior Member
Join Date: Apr 2004
Old 04-30-2004 , 21:43  
Reply With Quote #6

thanks, that prevents the overflow but now the knife shoots pistol bullets and when you shoot your pistol it shoots but switches back to the knife
i feel we are getting closer, can you please explane to me what thoes number mean
thanks agian
[edit]
i just found out if still overflows if your on axis
and you can only scroll up not down (mousescroll)
Jarrett is offline
Send a message via AIM to Jarrett
Jarrett
Junior Member
Join Date: Apr 2004
Old 04-30-2004 , 21:57  
Reply With Quote #7

just thought of something
would it be easy to write a plugin that automaticaly drops your weapon
because in dod you cant drop your pistol knive and nade
and thoes are what i want
i wouldent even need voting just a command (amx_melee 1)
Jarrett is offline
Send a message via AIM to Jarrett
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 05-01-2004 , 00:27  
Reply With Quote #8

The numbers(2!22) means that:
The second argument(2 - read_bye,short,coord(2))
Is not equal to (!)
22 - The ID of a weapon in DoD

BTW: You stole my name
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
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 14:36.


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