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-30-2008 10:52

Re: US Military Mod
 
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);
 }
 



YamiKaitou 01-30-2008 11:34

Re: US Military Mod
 
Quote:

Originally Posted by hasta (Post 579833)
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.

>)SL(< | Wicked 01-30-2008 12:23

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

fxfighter 01-30-2008 14:01

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:

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?

>)SL(< | Wicked 01-30-2008 14:26

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?

fxfighter 01-30-2008 14:29

Re: US Military Mod
 
steam = links_return
msn = fxfighter9

>)SL(< | Wicked 01-30-2008 14:36

Re: US Military Mod
 
Are u not on?

Im almost on all the time so yeah....

>)SL(< | Wicked 01-30-2008 19:56

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:

/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


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

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