Raised This Month: $ Target: $400
 0% 

Admin Weapon II (mattcook)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Johnny got his gun (102)
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-22-2005 , 01:48   Admin Weapon II (mattcook)
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (admin_weapon.sma - 13005 views - 17.6 KB)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 02-22-2005 , 04:35  
Reply With Quote #2

This springs to mind.

http://www.tcwonline.org/~johnnygoth...x/keyboard.jpg
Johnny got his gun is offline
#eclipse
Junior Member
Join Date: Nov 2004
Old 02-22-2005 , 11:08  
Reply With Quote #3

Could someone convert this for TS? Thanks in advance...
#eclipse is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 02-22-2005 , 17:19  
Reply With Quote #4

cool plugin
but aren't there more like this
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-23-2005 , 03:43  
Reply With Quote #5

Quote:
Originally Posted by nightscreem
cool plugin
but aren't there more like this
Yes, but I <3 this one.

__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Agret
Member
Join Date: Jan 2005
Location: Melbourne, Victoria
Old 02-25-2005 , 08:15  
Reply With Quote #6

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.
__________________

(`._Agret_.)
.-~*'ϔm_h__d_l_gꆨ'*~-.
Agret is offline
Send a message via ICQ to Agret Send a message via AIM to Agret Send a message via MSN to Agret Send a message via Yahoo to Agret
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 02-25-2005 , 09:23  
Reply With Quote #7

ugh, woulda been nicer to port the menu and not this one...=\
__________________
f1del1ty.oXi is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 02-25-2005 , 10:47  
Reply With Quote #8

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!
xeroblood is offline
Send a message via MSN to xeroblood
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-25-2005 , 17:17  
Reply With Quote #9

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..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Mattcook
Junior Member
Join Date: Mar 2005
Location: Michigan
Old 03-12-2005 , 16:04  
Reply With Quote #10

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

P.S.
This plugin works better than any of those other Weapon Giving plugins (besides Weapon Menu)
__________________
--
Mattcook
Mattcook is offline
Send a message via AIM to Mattcook Send a message via MSN to Mattcook
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 11:33.


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