AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   DoD Class 5/13/07 v0.9d (https://forums.alliedmods.net/showthread.php?t=51176)

allenwr 02-12-2007 23:29

DoD Class 5/13/07 v0.9d
 
9 Attachment(s)
A long time ago, I saw a plugin that you choose the class of what ever team you are on... This is better. You are allowed to have any weapon, from any team, any time. Simply By typing the Name of the gun you want or selecting from a menu.

This is a complete rewrite of the old script.

Commads:
say /weaponname (eg: mg42,fg42)
say /classmenu
say /allies /axis /british /axis-para (brings up a list with picture of each weapon from that class/team)

Cvar(s):
sv_dodclass 1/0

Bugs:
None reported

Suggestions:
All ideas are welcome.

To do list:
Admin Only?
Use Weapon Limit Cvars

The zip file contains a precomplied version of the plugin(v0.9d) as well as the source(v0.9d) and the 4 .txt files for the MOTD the images so you can choose to host them yourself and a preview .html file of the MOTDs.

A side note, I am hosting all of the images include in the zip on my own site so to save you people some effort.

Phantom Warrior 02-12-2007 23:50

Re: DoD Class 2/12/07 v0.5b
 
Was this idea from me?

allenwr 02-12-2007 23:52

Re: DoD Class 2/12/07 v0.5b
 
Nope.

I started this Plugin a long time ago...

Hawk552 02-13-2007 07:11

Re: DoD Class 2/12/07 v0.5b
 
Bad coding, use "else if" if you have to do it like that.

allenwr 02-13-2007 10:05

Re: DoD Class 2/12/07 v0.5b
 
ok, im on my phone right now, but do you mean something like
PHP Code:

else(equali(team,"/carbine") {
     
//stuff


i am not sure if i can do that or not… some one enlighten me to a better way

Hawk552 02-13-2007 15:15

Re: DoD Class 2/12/07 v0.5b
 
... it's else if(equali....

allenwr 02-13-2007 15:41

Re: DoD Class 2/12/07 v0.5b
 
thabks, when i get home, i will make that change and anything else you see / recommend

allenwr 02-13-2007 22:28

Re: DoD Class 2/13/07 v0.6
 
Hey, there was a problem in 0.5 where your server would freeze while trying to precache. Fixed and tested.

diamond-optic 02-14-2007 12:53

Re: DoD Class 2/13/07 v0.6a
 
lol at least get the weapon names right

Quote:

Grand
is really Garand

Quote:

Karbine
is really Karabiner (tho commonly Karbiner)


and you should also label them as either the weapon name or the class name.. you have some of them with the weapon name and some with the class name.. you should use one or the other..


also in the set model.. you set only allies or axis.. you should have it check if the allies is american or british instead of just setting it to us-inf

allenwr 02-14-2007 17:54

Re: DoD Class 2/13/07 v0.6a
 
thanks for the input, but i used the common and easy to type names... most people can't get half of the german name right for the weapons... and americans british and allies are all the same team... just different names... now if you have a better name to call each of the team, please tell me... as a matter of fact, wheb i get home, i will try putting in britosh under a team name and test if it works... have you even tested it, out of curriosity?


All times are GMT -4. The time now is 11:06.

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