Raised This Month: $51 Target: $400
 12% 

Military Rank Mod


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-07-2007 , 09:27   Military Rank Mod
#1

Counter-Strike Productions present: Military Rank!
PHP Code:
This mod for Counter-Strike is Military Rank ModIt's like a XP game, based on levels and kills for leveling up. 
Information: This has 17 levels, more levels will be added later in the future, LEVELS:
I have premission to use this.


"Just Joined",
"Private",
"Private First Class",
"Corporal",
"Sergeant",
"Staff Sergeant",
"Gunnery Sergeant",
"Master Sergeant",
"Command Sergeant",
"Second Lieutenant",
"First Lieutenant",
"Colonel",
"Brigadier General",
"Major General",
"Lietenant General",
"General",
"General of the Army"
________________________________

You will gain Levels for a certain (x) amount of kills you have. A HUD MESSAGE will display this information.


Modules: You will need cstrike and csstats.



CVARS:
sv_mranks 1 <1=off | 0=off>



CREDITS: Raa, Kensia

I will add more levels later on.

UPDATED.
Attached Files
File Type: sma Get Plugin or Get Source (MilitaryRank.sma - 2954 views - 3.2 KB)

Last edited by Phantom Warrior; 02-07-2007 at 17:53.
Phantom Warrior is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 02-07-2007 , 10:18   Re: Military Rank Mod
#2

You don't need to return 0 in all of your methods (you don't need a return at all in your client_putinserver(id).

Change all of your if statements after
Code:
if(stats[0] < 100)
{
	PlayerRank[id] = RANK_NOTHING
}
to "else if"'s.

Also, you may want to compare their deaths with their kills (100 kills isn't impressive if you have 1,000 deaths).

Suggestions:
1. Add a cvar to turn the plugin off/on.
2. Add a command for people to turn their personal HUD off/on.
3. Add a cvar for the location of the HUD.

Lastly, has anyone ever had 100,000 kills without map change/restart without using a kills/deaths editing plugin (perhaps divide all of your kill requirements by 10?).

EDIT: Btw, your if statements (starting at your third) should always return true since you used || statements (A user has greater than 100 kills OR less than 200 kills = always true). Switch them to &&.
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.

Last edited by Lord_Destros; 02-07-2007 at 10:27.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
TiMbErLaNd
Senior Member
Join Date: Jan 2005
Location: Detroit, Michigan
Old 02-07-2007 , 10:44   Re: Military Rank Mod
#3

Quote:
Originally Posted by Lord_Destros View Post
Lastly, has anyone ever had 100,000 kills without map change/restart without using a kills/deaths editing plugin (perhaps divide all of your kill requirements by 10?)
Can anyone add SQL support to this. I would love to use this as a long term method. The kill numbers should be fine then.
TiMbErLaNd is offline
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 02-07-2007 , 11:55   Re: Military Rank Mod
#4

Great Job, looks awesome. I have some suggestions though:

1) Make a Command where you can see other people's ranks.
2) Move your Rank Area to the bottom left corner of the screen and dont use a "HUD font", use more like a chat font that just overlaps any chat that might get in its way (like Shero and WC3)
3) Add in a ratio to tell you how many more kills you need.

So, overall, the new Rank Area on your screen would look like this-

Current Rank: General - Next Rank: General of Army - Kills To Go: 1212/2000

Instead of looking like this in the left side of the screen and in HUD font-

[Username - General] Kills: 1212

Overall though, good job, looking forward already for next version.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!

Last edited by sytremelaker; 02-07-2007 at 12:14.
sytremelaker is offline
Send a message via AIM to sytremelaker
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 02-07-2007 , 14:38   Re: Military Rank Mod
#5

WTH.

Did you write this yourself...or did you jack code from somewhere else and forgot about it?

Quote:
Originally Posted by Military Rank Mod.sma
Code:
public plugin_init() {     register_plugin("Rank Display", "1.0", "Kensai") }
Oh and BTW...your ranks are so out of whack its ridiculous.

Gunnery Sgt. is Marines, and you have General of the army as the last rank??

Last edited by organizedKaoS; 02-07-2007 at 14:41.
organizedKaoS is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-07-2007 , 16:29   Re: Military Rank Mod
#6

General is the final rank in every service., and I didn't 'jack' this, i'll be doing some more stuff.

Last edited by Phantom Warrior; 02-07-2007 at 16:57.
Phantom Warrior is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-07-2007 , 16:31   Re: Military Rank Mod
#7

*UPDATE* I will not release a version untill this is approved/unapproved.

EDIT: Go ahead, and approve/unapprove it, If it gets approved I have a MAJOR amount of changes I allready done, so if someone does approve it I will release this RIGHT AWAY.

Last edited by Phantom Warrior; 02-07-2007 at 17:03.
Phantom Warrior is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-07-2007 , 16:58   Re: Military Rank Mod
#8

Did you ask Kensai if you could use this?

EDIT:
As a future rank add Secretary of war!! as the highest rank
__________________
i stop around here and there.
Da_sk8rboy is offline
Phantom Warrior
BANNED
Join Date: Feb 2007
Location: hello, gaben
Old 02-07-2007 , 16:59   Re: Military Rank Mod
#9

Yes I PM'd him.
Phantom Warrior is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 02-07-2007 , 17:00   Re: Military Rank Mod
#10

Alright just wondering. I edited my post read more.
Also, I would suggest putting in the first post that Kensai gave you permission.
__________________
i stop around here and there.
Da_sk8rboy is offline
Closed Thread



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 16:38.


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