Thread: US Military Mod
View Single Post
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