AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   US Military Mod (https://forums.alliedmods.net/showthread.php?t=66346)

>)SL(< | Wicked 01-29-2008 15:38

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 :'(

bmann_420 01-30-2008 03:26

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

fxfighter 01-30-2008 03:51

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:

client_print(idprint_chat"[Rank Mod] XP Loaded!"); 

Noticed that i made the same mistake at the script i posted in xp tutorial thread:oops:

hasta 01-30-2008 06:12

Re: US Military Mod
 
Quote:

Originally Posted by >)SL(< | Wicked (Post 579486)
Trust me, you want to go by id, not nick, because if someone wants to change their name, they will have to start all over again.

Will u do this plugin by name? Not all admins use Steam servers ;)

>)SL(< | Wicked 01-30-2008 07:35

Re: US Military Mod
 
Quote:

Originally Posted by bmann_420 (Post 579809)
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

Well, I knew that i wouldnt get published, I just posted it so i could get some help.

Quote:

Originally Posted by fxfighter (Post 579817)
Remove on connect becase we cant show him the message if he hasnt got in yet.
That's pretty much it^^
PHP Code:

client_print(idprint_chat"[Rank Mod] XP Loaded!"); 

Noticed that i made the same mistake at the script i posted in xp tutorial thread:oops:

Ok, I'll take that out, but i still don't see the HUD message showing my my rank and xp...

Quote:

Originally Posted by hasta (Post 579833)
Will u do this plugin by name? Not all admins use Steam servers ;)

Umm... I'm not really sure how to do that, also, i think i would have to go through and change A LOT of stuff. Once i get more familiar with scripting, i will look into how to do that. ;)

fxfighter 01-30-2008 07:46

Re: US Military Mod
 
Quote:

Originally Posted by >)SL(< | Wicked (Post 579851)

Ok, I'll take that out, but i still don't see the HUD message showing my my rank and xp...

PHP Code:

set_hudmessage(255000.750.0106.015.0); 


you show the hud message at the top right-.- if you run cz whit tutori it shuldnt be visible

use
Quote:

set_hudmessage(255, 0, 0, 0.01, 0.2, 0, 6.0, 12.0)
top left under radar

>)SL(< | Wicked 01-30-2008 09:18

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.

fxfighter 01-30-2008 10:18

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-.-

>)SL(< | Wicked 01-30-2008 10:29

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:

public client_connect(id)
{
 if(
get_pcvar_num(SaveXP) == 1)
 {
  
LoadData(id);
 }
 
 if(
PlayerXP[id] == && PlayerClass[id] == && PlayerLevel[id] == 0)
 {
  
ChooseClass(id);
 }
 


Would this open up my ChooseClass menu if a new player comes in the server who hasnt been in before?

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

fxfighter 01-30-2008 10:46

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.


All times are GMT -4. The time now is 20:22.

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