Raised This Month: $ Target: $400
 0% 

SHoot Gun out of hand / throw gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
angel killer
Senior Member
Join Date: Oct 2005
Location: Califronia
Old 02-05-2006 , 02:07   SHoot Gun out of hand / throw gun
Reply With Quote #1

can anyone make a plugin that allows you to shoot a gun out of somones hand.
ANd can somone make a plugin that allows you to throw a gun if it has no ammo
angel killer is offline
Send a message via AIM to angel killer
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 02-05-2006 , 03:29  
Reply With Quote #2

Well if a gun "HAS NO AMMO !!" just press "G" like any other normal person SECONDLY the plugin to shoot someones gun outta there hand has been made www.hwrp.cjb.net tsrpg_reality_mod.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-05-2006 , 11:02  
Reply With Quote #3

Quote:
Originally Posted by Charming
Well if a gun "HAS NO AMMO !!" just press "G" like any other normal person SECONDLY the plugin to shoot someones gun outta there hand has been made www.hwrp.cjb.net tsrpg_reality_mod.
...
I think he's asking to let you shoot a gun out of people's hands if you aim for the gun instead of their head.

And the other question is if the gun is out of ammo, you can throw it at someone and deal damage to them.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
VEN
Veteran Member
Join Date: Jan 2005
Old 02-05-2006 , 13:03  
Reply With Quote #4

CSX module required.
Code:
// #include <amxmodx> #include <csx> public plugin_init() {     register_plugin("SHoot Gun out of hand / throw gun", "0.1b2", "VEN")     register_event("CurWeapon", "event_clip_empty", "be", "1=1", "3=0") } public client_damage(attacker, victim, damage, wpnindex, hitplace, TA) {     if ((hitplace != HIT_RIGHTARM && hitplace != HIT_LEFTARM)     || !attacker || !victim || !is_user_alive(victim))         return     new clip, ammo, wid = get_user_weapon(victim, clip, ammo)     if (wid != CSW_HEGRENADE && wid != CSW_SMOKEGRENADE     && wid != CSW_FLASHBANG && wid != CSW_KNIFE)         drop_weapon(victim, wid, "Your hand is damaged!") } public event_clip_empty(id) {     new clip, ammo, wid = get_user_weapon(id, clip, ammo)     if (!ammo)         drop_weapon(id, wid, "Your gun is out of ammo!") } stock drop_weapon(id, wid, reason[]) {     new weapon[20]     get_weaponname(wid, weapon, 19)     engclient_cmd(id, "drop", weapon)     client_print(id, print_center, reason) }
VEN is offline
angel killer
Senior Member
Join Date: Oct 2005
Location: Califronia
Old 02-05-2006 , 13:39  
Reply With Quote #5

says it bad loads
angel killer is offline
Send a message via AIM to angel killer
VEN
Veteran Member
Join Date: Jan 2005
Old 02-05-2006 , 13:49  
Reply With Quote #6

Which HL modification do you run?
Is CSX module enabled?
VEN is offline
angel killer
Senior Member
Join Date: Oct 2005
Location: Califronia
Old 02-05-2006 , 14:32  
Reply With Quote #7

counter strike
angel killer is offline
Send a message via AIM to angel killer
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 02-05-2006 , 14:47  
Reply With Quote #8

Hawk like i said its already been made.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
angel killer
Senior Member
Join Date: Oct 2005
Location: Califronia
Old 02-05-2006 , 15:05  
Reply With Quote #9

ok well now it rus but crashes my server when u get to 1 bullet
angel killer is offline
Send a message via AIM to angel killer
VEN
Veteran Member
Join Date: Jan 2005
Old 02-05-2006 , 15:12  
Reply With Quote #10

I've done code for kill by throwed weapon.
But no one except weapon owner can touch it while it on the air i.e. registered touch never called on other players.

Quote:
ok well now it rus but crashes my server when u get to 1 bullet
That's true. But it's not my fault. It's CS or AMXX or something (i dont know). Sometimes server crashes sometimes not. This problem isn't new for me. There are workaround. Maybe i'll implement it later.

P.S. Also i'll report about that bug to the AMXX DEVs later but i'm not sure if this AMXX problem.
VEN is offline
Reply


Thread Tools
Display Modes

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 22:28.


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