Raised This Month: $105 Target: $400
 26% 

DoD Class 5/13/07 v0.9d


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Day of Defeat        Category:   General Purpose        Approver:   GHW_Chronic (70)
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-13-2007 , 00:29   DoD Class 5/13/07 v0.9d
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (dodclass.sma - 1288 views - 8.2 KB)
File Type: zip dodclass.zip (715.8 KB, 627 views)

Last edited by allenwr; 02-01-2008 at 19:33. Reason: Uploaded version .9d
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-13-2007 , 00:50   Re: DoD Class 2/12/07 v0.5b
Reply With Quote #2

Was this idea from me?
Phantom Warrior is offline
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-13-2007 , 00:52   Re: DoD Class 2/12/07 v0.5b
Reply With Quote #3

Nope.

I started this Plugin a long time ago...
__________________
Don't ever place an order with Vee Servers. This is why.

Last edited by allenwr; 02-13-2007 at 01:08.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-13-2007 , 08:11   Re: DoD Class 2/12/07 v0.5b
Reply With Quote #4

Bad coding, use "else if" if you have to do it like that.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-13-2007 , 11:05   Re: DoD Class 2/12/07 v0.5b
Reply With Quote #5

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
__________________
Don't ever place an order with Vee Servers. This is why.

Last edited by allenwr; 02-13-2007 at 11:07.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-13-2007 , 16:15   Re: DoD Class 2/12/07 v0.5b
Reply With Quote #6

... it's else if(equali....
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-13-2007 , 16:41   Re: DoD Class 2/12/07 v0.5b
Reply With Quote #7

thabks, when i get home, i will make that change and anything else you see / recommend
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-13-2007 , 23:28   Re: DoD Class 2/13/07 v0.6
Reply With Quote #8

Hey, there was a problem in 0.5 where your server would freeze while trying to precache. Fixed and tested.
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 02-14-2007 , 13:53   Re: DoD Class 2/13/07 v0.6a
Reply With Quote #9

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
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 02-14-2007 , 18:54   Re: DoD Class 2/13/07 v0.6a
Reply With Quote #10

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?
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
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 04:18.


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