PDA

View Full Version : Bladez Only + more?


Jarrett
04-30-2004, 17:42
can anyone help me modify this plugin (http://forums.alliedmods.net/showthread.php?t=1104) 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
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
04-30-2004, 19:30
or maby something to do with this
register_event("CurWeapon","switchweapon","be","1=1","2!1","2!2","2!19")
someone please help me or point me into the right direction

QwertyAccess
04-30-2004, 19:33
can anyone help me modify this plugin (http://forums.alliedmods.net/showthread.php?t=1104) 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
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.

Jarrett
04-30-2004, 19:42
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"

SidLuke
04-30-2004, 21:17
or maby something to do with this
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:
register_event("CurWeapon","switchweapon","be","1=1","2!1","2!2","2!19","2!3","2!4","2!28")

Jarrett
04-30-2004, 21:43
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
04-30-2004, 21:57
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)

IceMouse[WrG]
05-01-2004, 00:27
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 :(