AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   SHoot Gun out of hand / throw gun (https://forums.alliedmods.net/showthread.php?t=23922)

angel killer 02-05-2006 02:07

SHoot Gun out of hand / throw gun
 
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

Charming 02-05-2006 03:29

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.

Hawk552 02-05-2006 11:02

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.

VEN 02-05-2006 13:03

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) }

angel killer 02-05-2006 13:39

says it bad loads

VEN 02-05-2006 13:49

Which HL modification do you run?
Is CSX module enabled?

angel killer 02-05-2006 14:32

counter strike

Charming 02-05-2006 14:47

Hawk like i said its already been made.

angel killer 02-05-2006 15:05

ok well now it rus but crashes my server when u get to 1 bullet

VEN 02-05-2006 15:12

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.


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

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