AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Admin Weapon II (mattcook) (https://forums.alliedmods.net/showthread.php?t=10530)

v3x 02-22-2005 00:48

Admin Weapon II (mattcook)
 
1 Attachment(s)
Ported to AMXX

Code:

/* AMX(x) Mod script.
*
* Admin Weapon II
*  by Mattcook
*
*
* Description: Give clients weapons.
*
* Settings: amx_weaponmsg (0/1) - announces when a player gets a weapon
*
* Usage: amx_weapon <authid, nick, @team, @all or #userid> <weapon #>
* Example: amx_weapon Mattcook 43
*
*/

#include <amxmodx>
#include <amxmisc>
#include <fun>


Weapon codes:
Code:

11= USP
12= Glock
13= Deagle
14= 228
15= Dualies
16= 5-7

21= Pump Shotty
22= Auto-Shotgun

31= MP5
32= TMP
33= C90
34= Mac-10
35= UMP

40= Clarion
41= Kreig552
42= AK47
43= M4A1
44= Bullop
45= Scout
46= AWP
47= T-Autosniper
48= CT-Autosniper
49= Galil

51= Para

81= Kevlar
82= Kevlar + Helmet
83= Flashbang
84= HE Grenade
85= Smoke Grenade
86= Defuse Kit
87= Nightvision Goggles *Item Currently Non-Working*
88= Sheild

99= ALL GUNS
95= PARA,Dualies,Kit,Nades
96= AWP,Deagle,Kit,Nades
97= AK47,Deagle,Nades
98= M4A1,Deagle,Kit,Nades
90= All Pistols

60= Primary Ammo
70= Secondary Ammo

Binding on the keypad..

Code:

KEYPAD NUMBERS:
1= KP_END
2= KP_DOWNARROW
3= KP_PGDN
4= KP_LEFTARROW
5= KP_5
6= KP_RIGHTARROW
7= KP_HOME
8= KP_UPARROW
9= KP_PGDN

KEYPAD KEYS:
/= KP_SLASH
*= *
-= KP_MINUS
+= KP_PLUS
ENTER= KP_ENTER
.= DEL
0= INS

If anyone wants a custom weapons package, post a reply.

Johnny got his gun 02-22-2005 03:35

This springs to mind.

http://www.tcwonline.org/~johnnygoth...x/keyboard.jpg

#eclipse 02-22-2005 10:08

Could someone convert this for TS? Thanks in advance...

nightscreem 02-22-2005 16:19

cool plugin
but aren't there more like this

v3x 02-23-2005 02:43

Quote:

Originally Posted by nightscreem
cool plugin
but aren't there more like this

Yes, but I <3 this one.

:avast:

Agret 02-25-2005 07:15

Quote:

Originally Posted by #eclipse
Could someone convert this for TS? Thanks in advance...

What is the reason for this? In TS you buy the guns you want at the start. You have a sort of unlimited money system. If you have more guns than you can afford you move really slowly anyway.

f1del1ty.oXi 02-25-2005 08:23

ugh, woulda been nicer to port the menu and not this one...=\

xeroblood 02-25-2005 09:47

The Weapon Menu already works for AMXX, no porting needed...

Simply Change:
Code:
#include <amxmod> #include <amxmisc> // This is ONLY Required to Compile for AMX Mod X v1.0 // Comment or Remove to compile for AMX 0.9.9 //#include <fun>

To:
Code:
#include <amxmodx> #include <amxmisc> // This is ONLY Required to Compile for AMX Mod X v1.0 // Comment or Remove to compile for AMX 0.9.9 #include <fun>

And recompile!!

Oh, and GJ on the port v3x!

v3x 02-25-2005 16:17

Quote:

Originally Posted by f1del1ty.oXi
ugh, woulda been nicer to port the menu and not this one...=\

Hehe, I have both of these on my server :).

I'll port the other one over in a bit..

Mattcook 03-12-2005 15:04

Thanks for porting this over, and posting it here too.

P.S.
This plugin works better than any of those other Weapon Giving plugins :wink: (besides Weapon Menu)


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

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