US Military Mod
1 Attachment(s)
This is my very first mod. I hope that it doesn't get deleted :cry:.
Well, this is just a simple XP based mod that I made following XunTric's tutorial. I took some of that stuff out, added stuff, changed stuff... and I got this! There are 27 different ranks, you start at private and work your way up to General. By default, XP per kill is set to 1. If you want to change the XP per kill, you might want to go into the .sma file and change lines 184 and 248 to better suit the output. I hope to be able to add a menu so that you can choose if you want to be in the Marines or the US Army, and at any time you can change which one your in. But say for example, your a Sergeant in the US Army, with 130 kills, I would like that to stay only on the Army side if you switch to the Marines so you start at scratch in the Marines instead of skipping the first 4 ranks. There are 2 CVARS for this plugin: Code:
xp_per_kill 1 //by default is set to 1I haven't really been able to test it, so if someone could real quick, that would be awsome! PHP Code:
1.1 -
|
Re: US Military Mod
Nice I'll try this out. By any chance is this the same as the BF2 Rank mod?
|
Re: US Military Mod
it shuld krash the server i recommend you test your plugins before submiting them next time.
PHP Code:
You shuld replace vault whit nvault You dont need all the defines..... You Dont need fun and cstrike Use Pcvars Add more futures. Quote:
|
Re: US Military Mod
plugin work by steamid?
can u do this by name(nick) tnx |
Re: US Military Mod
Quote:
Quote:
ok, this is what i should do?: -Replace all instances of vault to nvault? Thats basically all that i can understand since im new, so u gotta explain it a little more. Also, i was gonna test this as soon as i got home from school today. Oh and i cant believe i didnt see that one part where it should crash the server, it basically common sense that plugin_continue should be there =\ Quote:
|
Re: US Military Mod
actuly you can remove the hole resethud event becase it actuly dont do enything.
i updated the xp tutorial script its at the last page have a look. XP TUTORIAL got pcvars,nvault and new menu system. |
Re: US Military Mod
Ohh, thank thank you :D
Would you like to help me with this mod? I got an idea of making a menu so that you can choose if your in the army or the marines. |
Re: US Military Mod
Quote:
OMG, if i follow that, i will need to rewrite everything! :| I'll just change the vault to nvault, and take out the defines and test that in a little bit, once i get home from school. Updated! |
Re: US Military Mod
Ok, i have tested it, and I need some help :(. Can someone please help me? I cant get anything to show up or work... It compiles fine though...
|
Re: US Military Mod
you have remove the ResetHUD function but you still register it.
remove it or it should cause problems Quote:
dont know if you removed it or not frome your main code but i can see it at the top post. |
Re: US Military Mod
Wow, thanks, again another noobish mistake.
I will fix this later when I get a chance. I have updated it, but i still cant get it to display at all ingame, someone plz help :'( |
Re: US Military Mod
Its a nice compilation, but this is also why you dont post your first plugins. Constant updates on nobbish mistakes = dont publish. Dont get me wrong, seems good and all, just get to know your shit and ..... then post it. :D
|
Re: US Military Mod
Remove on connect becase we cant show him the message if he hasnt got in yet.
That's pretty much it^^ PHP Code:
|
Re: US Military Mod
Quote:
|
Re: US Military Mod
Quote:
Quote:
Quote:
|
Re: US Military Mod
Quote:
PHP Code:
you show the hud message at the top right-.- if you run cz whit tutori it shuldnt be visible use Quote:
|
Re: US Military Mod
Oohhhh, ok thank you.
Also, once I add this, will the mod work? Because I also don't see anything when I kill someone, so I don't think its really working, but I will test it out again when I get home from school. |
Re: US Military Mod
1 Attachment(s)
Fixed your code all bugs shuld be removed.
i added resetxp function and small stuf if you didnt mind. hud is shown at the top right corner... Dont thank me or hate me i did it becase i was bored-.- |
Re: US Military Mod
Thank you, im looking at it right now, and Im learning alot from it. +Karma!
I got a question. Does this look right? PHP Code:
If so, YES!! :D I thought of it my self lol :D. O and could a moderator move this to scripting help, since im basically getting help with this. Thanks |
Re: US Military Mod
yes it opens the menu but!
it opens the menu when he press the connect button-.- so do the cheek when he spawns or when a new round starts and it all shuld be fine. |
Re: US Military Mod
so... I would make a new fuction like so:
PHP Code:
|
Re: US Military Mod
Quote:
|
Re: US Military Mod
2 Attachment(s)
Hey, fighter, i just put in a menu, but right now it doesnt do anything (meaning nothing happens if you choose sumthing in the menu). I am hoping to use this menu to let ppl choose if they want to be in the army, marines, or navy. Each will have similar but different ranking names. I will add the sma to this reply. Could you check it out to see if everything is good? You dont have to though, its completely up to you.
Thanks |
Re: US Military Mod
remove this becase he isnt in yet and if he is he cant pick becase motd and the team menu is in the way.
PHP Code:
PHP Code:
|
Re: US Military Mod
m... no not yet. Ill change that to.
Whats your steam account name, so i can add u as a friend? |
Re: US Military Mod
steam = links_return
msn = fxfighter9 |
Re: US Military Mod
Are u not on?
Im almost on all the time so yeah.... |
Re: US Military Mod
1 Attachment(s)
Hey, fighter, could you look over my code as it is rite now. I got 3 errors and idk what they are. also, i added a 2d array for the classes. soo yeah thank you so much.
Edit: nvm i got 8 errors DX Quote:
|
| All times are GMT -4. The time now is 20:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.