AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help! (https://forums.alliedmods.net/showthread.php?t=27636)

PainKiller6 04-25-2006 23:59

Need help!
 
Sup, I'm havin trouble with a disarm command, I haven't been able to get it to work, I've tried hundreds of different methods but nothing happens, heres the code...

Code:
new wpnname[33], wammo, wclip, wid wid = get_user_weapon(victim,wclip,wammo) get_weaponname(wid,wpnname,32) engclient_cmd(victim,"drop",wpnname)

In this case victim is the user's id...

Edit: Nm, I'm hella retarded, I had a return PLUGIN_HANDLED earlier in the function that I forgot about.... oopsies...

SubStream 05-10-2006 10:19

You could also look at this plugin's code for learning to disarm players.


All times are GMT -4. The time now is 05:12.

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