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

US Military Mod


Post New Thread Reply   
 
Thread Tools Display Modes
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-29-2008 , 15:38   Re: US Military Mod
Reply With Quote #11

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 :'(
__________________
#Team !иکдиІтy

Last edited by >)SL(< | Wicked; 01-29-2008 at 16:31.
>)SL(< | Wicked is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-30-2008 , 03:26   Re: US Military Mod
Reply With Quote #12

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.
__________________
bmann_420 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-30-2008 , 03:51   Re: US Military Mod
Reply With Quote #13

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
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 01-30-2008 , 06:12   Re: US Military Mod
Reply With Quote #14

Quote:
Originally Posted by >)SL(< | Wicked View Post
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 ;)
hasta is offline
Send a message via ICQ to hasta
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 07:35   Re: US Military Mod
Reply With Quote #15

Quote:
Originally Posted by bmann_420 View Post
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.
Well, I knew that i wouldnt get published, I just posted it so i could get some help.

Quote:
Originally Posted by fxfighter View Post
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
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 View Post
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. ;)
__________________
#Team !иکдиІтy
>)SL(< | Wicked is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-30-2008 , 07:46   Re: US Military Mod
Reply With Quote #16

Quote:
Originally Posted by >)SL(< | Wicked View Post

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
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 01-30-2008 at 07:51.
fxfighter is offline
Send a message via MSN to fxfighter
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 09:18   Re: US Military Mod
Reply With Quote #17

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.
__________________
#Team !иکдиІтy
>)SL(< | Wicked is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-30-2008 , 10:18   Re: US Military Mod
Reply With Quote #18

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-.-
Attached Files
File Type: sma Get Plugin or Get Source (US.sma - 562 views - 3.4 KB)
__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 01-30-2008 at 10:21.
fxfighter is offline
Send a message via MSN to fxfighter
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 10:29   Re: US Military Mod
Reply With Quote #19

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!! I thought of it my self lol .


O and could a moderator move this to scripting help, since im basically getting help with this. Thanks
__________________
#Team !иکдиІтy

Last edited by >)SL(< | Wicked; 01-30-2008 at 10:38.
>)SL(< | Wicked is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-30-2008 , 10:46   Re: US Military Mod
Reply With Quote #20

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.
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
Reply



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


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