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-30-2008 , 10:52   Re: US Military Mod
Reply With Quote #21

so... I would make a new fuction like so:
PHP Code:
public client_putinserver(id)
{
 if(
PlayerXP[id] == && PlayerClass[id] == && PlayerLevel[id] == 0)
 {
  
ChooseClass(id);
 }
 

__________________
#Team !иکдиІтy
>)SL(< | Wicked is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-30-2008 , 11:34   Re: US Military Mod
Reply With Quote #22

Quote:
Originally Posted by hasta View Post
Will u do this plugin by name? Not all admins use Steam servers ;)
Give me 10 USD and I will do it for you. Besides, he is not required to support Non-Steam servers.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 12:23   Re: US Military Mod
Reply With Quote #23

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
Attached Files
File Type: sma Get Plugin or Get Source (rankmod.sma - 97 views - 5.6 KB)
__________________
#Team !иکдиІтy

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

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:
public client_putintserver(id)
{
 if(
PlayerXP[id] == && PlayerClass[id] == && PlayerLevel[id] == 0)
 {
 
  
ChooseClass(id);
 }
 

this opens the menu on round start if he hasnt picked a class
PHP Code:
public plugin_init()
{
 
register_logevent("Round_start"2"1=Round_Start")
}
public 
Round_start() 
{
 new 
i
 
for (i=0i<33i++) 
 {
 
  if(
is_user_connected(i) && PlayerClass[i] == 0)
  {
   
ChooseClass(i);
  }
 }

shuld i clean up the code?
__________________
If one of my plugins become broken, contact me by mail. [email protected]

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

m... no not yet. Ill change that to.

Whats your steam account name, so i can add u as a friend?
__________________
#Team !иکдиІтy
>)SL(< | Wicked is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-30-2008 , 14:29   Re: US Military Mod
Reply With Quote #26

steam = links_return
msn = fxfighter9
__________________
If one of my plugins become broken, contact me by mail. [email protected]
fxfighter is offline
Send a message via MSN to fxfighter
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 14:36   Re: US Military Mod
Reply With Quote #27

Are u not on?

Im almost on all the time so yeah....
__________________
#Team !иکдиІтy
>)SL(< | Wicked is offline
Old 01-30-2008, 18:26
>)SL(< | Wicked
This message has been deleted by >)SL(< | Wicked.
>)SL(< | Wicked
Senior Member
Join Date: Jan 2008
Old 01-30-2008 , 19:56   Re: US Military Mod
Reply With Quote #28

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:
/home/groups/amxmodx/tmp3/phpVLaEB8.sma(14) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/tmp3/phpVLaEB8.sma(21) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp3/phpVLaEB8.sma(75) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp3/phpVLaEB8.sma(75) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpVLaEB8.sma(75) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpVLaEB8.sma(75) : fatal error 107: too many error messages on one line

Compilation aborted.
6 Errors.
Im uploading the new .sma
Attached Files
File Type: sma Get Plugin or Get Source (rankmod.sma - 1393 views - 6.0 KB)
__________________
#Team !иکдиІтy

Last edited by >)SL(< | Wicked; 01-30-2008 at 21:34.
>)SL(< | Wicked is offline
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 07:33.


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