AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Superweapon - M4withM203 Edition(2007-3-4 update) (https://forums.alliedmods.net/showthread.php?t=51086)

Ryu2877 02-11-2007 06:45

Superweapon - M4withM203 Edition(2007-3-4 update)
 
6 Attachment(s)
M4 with M203

-----------------------------------------------------
2007-3-4 v0.4 update content:

Note: v0.4 is not an approved edition by amxx approver for the moment.

1.When superweapon spawn mode is "0"(not spawn), players can buy the sw by command;

2.add a CVAR for keep or not default m4 When admin strip players's sw


add 1 CVAR & 1 client command,

CVAR:

SW_M4StripMode 0 //
//"0" means only strip superweapon(still keep default m4a1)
//"1" means strip the holder's superweapon & default m4a1

SW_M4Price 8000 //m4 with m203's price

Command:

When sw spawn mode is "0", player type "say /buyswm4" can buy sw by certain condition

-----------------------------------------------------

This plugin supply a sort of special weapon: M4A1 with M203 grenade launcher.
The M203 can launch 2 type of grenades: He-grenade & Gas-grenade.
He-grenade can hurt players spang with blast damage & Gas-grenade hurt player who touch the "gas".

-----------------------------------------------------------------------
Modul & Require:

<amxmisc>
<cstrike>
<fakemeta>

-----------------------------------------------------------------------
CAVR:

SW_SpawnMode 0|1|2 //define superweapon spawn mode,
//"0" means superweapon never spawn, (admin still can give it to any player by admin command)
//"1" means auto, superweapon will auto spawn in general maps(DE|CS|AS|ES)
//"2" means superweapon will auto spawn in all type of maps

SW_MaxAmount_TE 3 //max amount of terrorists can holded m4 with m203

SW_MaxAmount_CT 3 //max amount of cts can holded m4 with m203

SW_GrenadeTK 0|1 //40mm hegrenade team kill,"0" is secundum server's rule, "1" is TK in any case

SW_GrenadeRT 3.0 //grenade reload time

SW_HeGrenadeMD 100 //40mm he grenade max damage

SW_HeGrenadeDR 400 //40mm he grenade damage radius

SW_HeGrenadeMC 3 //40mm he grenade's max amount can been carried

SW_HeGrenadePR 500 //40mm he grenade's price

SW_GasGrenadeMD 100 //40mm gas grenade max damage

SW_GasGrenadeDR 100 //40mm gas grenade damage radius

SW_GasGrenadeMC 1 //40mm gas grenade's max amount can been carried

SW_GasGrenadePR 500 //40mm gas grenade's price

-----------------------------------------------------------------------
Command:

1.Admin command(ADMIN_IMMUNITY): give or strip player's superweapon

amx_sw_m4 <#id | name> <give | strip>

{<#playerindex|name(can be partial)> <g(means give M4A1/W M203)|s(means strip target's superweapon if he has>}


2.Admin command(ADMIN_IMMUNITY): change superweapon mode

amx_sw_set <0 | 1 | 2>

"0" means stop SW mode(also strip all sw)
"1" means start it by CVAR(SW_SpawnMode)'s setting
"2" means start anywise


3.Player command: open superweapon menu
When player's Current weapon is "superweapon", press "spray key" will openning menu of grenade setting,

menu include:

(1).Switch current grenade type to he-grenade
(2).Switch current grenade type to gas-grenade
(3).Setting|Offload muffler
(4).Buy he-grenade
(5).Buy gas-grenade


4.Fire grenade:

press "+attack2" key to launch grenade


-----------------------------------------------------------------------
About the superweapon spawn:

Generally(can change by CVAR or Admin), superweapons will spawn after 1th round, stochastic
locality in map, with specifically amount(by CVAR setting).


-----------------------------------------------------------------------
Credit:

code and more:

VEN & more...

model maker:

Ankalar, CJ, TinSoldier, S7ok3, Dirtball, Pr0d!gy, Ritual, Rob O, Jennifer!!, SureShot, Nightshade, Sas.stu, -X-, Vunsata & more...

----------------------------------
Sorry for my bad English!

Alka 02-11-2007 07:27

Re: Superwepon - M4withM203 Edition
 
I must try this out! Sound Cool! Gj :wink:

godlike 02-11-2007 08:00

Re: Superwepon - M4withM203 Edition
 
Nice plugin. good job

Hawk552 02-11-2007 08:14

Re: Superwepon - M4withM203 Edition
 
Nice, when I saw the title, I thought "ugh, another plugin to unapprove", but it's actually pretty well coded and unique.

We'll just have to wait for a response basically saying "it works" for it to be approved.

Morpheus759 02-11-2007 08:33

Re: Superwepon - M4withM203 Edition
 
Nice !!! Now j go to test this.:D:D:D

Alka 02-11-2007 10:03

Re: Superwepon - M4withM203 Edition
 
I Test this plugin!:) Is super! NO BUG FOUND!...yet! every thing it's working!:wink: One thing i don't test The CVAR-s!

EDIT:I found Something!
PHP Code:

When I strip Players Weapon in hand remain default m4a1

Later EDIT: Tested Cvar-S Works! :)

*It's make a little LAG why?
*What I like at this plugin :)) when the weapons are spawn is jumping and run from you! :lol:

Sugestion:
Code:


1.Add a laser_beam to aim!
2.Fix that little bug!


Morpheus759 02-11-2007 10:14

Re: Superwepon - M4withM203 Edition
 
Hmm j test this 20 min agoand THIS IS AMAIZING!.

Quote:

When I strip Players Weapon in hand remain default m4a1!
Yes in my serwer too is this bug.

Fix this please!

But this is Nice !!

Phantom Warrior 02-11-2007 10:17

Re: Superwepon - M4withM203 Edition
 
Nice work:

HAWK: Tested and worked fine, no bugs.

redx6580 02-11-2007 12:49

Re: Superwepon - M4withM203 Edition
 
Tested, everything works fine. Except for this one thing that was bothering me.
I set
SW_SpawnMode 0
amx_sw_set 1
And the
SW_MaxAmount_CT 32
SW_MaxAmount_TE 32
And each time i try to give it to two plays, no matter what team it strips it from the both of them saying the teamlimit is over.
Any ideas?

Alka 02-11-2007 12:55

Re: Superwepon - M4withM203 Edition
 
try to use amx_sw_set 2! And try here =>> SW_MaxAmount_CT /T 10 less than 32! ;)


All times are GMT -4. The time now is 19:51.

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