AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trash It (https://forums.alliedmods.net/showthread.php?t=129155)

edgaras85 06-09-2010 14:23

Trash It
 
Trash

Brreaker 06-09-2010 14:25

Re: Menu Problem
 
PHP Code:

case 1: {
  new 
iCTcount;
  if( 
cs_get_user_teamid ) == CS_TEAM_CT && g_Lifesid ] > ) {
  for( new 
1<= g_iMaxplayersi++ ) {
   if( 
is_user_alive) && cs_get_user_team) == CS_TEAM_CT )
    
iCTcount++;
  }
  }  
   if( 
iCTcount ) {
    
set_task(1.0"fnRevivePlayer"id);
   
    
ColorChatidRED"%s^1 %L"g_szPrefixid"DR_LIFE_RESPAWN" );
  }
   return 
PLUGIN_CONTINUE;
        }
 case 
2:
        {
   return 
PLUGIN_HANDLED;
        }
    }
 
menu_destroy(menu); 
 return 
PLUGIN_CONTINUE;


Try this one :)

edgaras85 06-09-2010 14:43

Re: Menu Problem
 
Quote:

Originally Posted by Brreaker (Post 1204317)
PHP Code:

case 1: {
  new 
iCTcount;
  if( 
cs_get_user_teamid ) == CS_TEAM_CT && g_Lifesid ] > ) {
  for( new 
1<= g_iMaxplayersi++ ) {
   if( 
is_user_alive) && cs_get_user_team) == CS_TEAM_CT )
    
iCTcount++;
  }
  }  
   if( 
iCTcount ) {
    
set_task(1.0"fnRevivePlayer"id);
 
    
ColorChatidRED"%s^1 %L"g_szPrefixid"DR_LIFE_RESPAWN" );
  }
   return 
PLUGIN_CONTINUE;
        }
 case 
2:
        {
   return 
PLUGIN_HANDLED;
        }
    }
 
menu_destroy(menu); 
 return 
PLUGIN_CONTINUE;


Try this one :)

I published iCTcount
in start of menu...

RedRobster 06-09-2010 15:59

Re: Trash It
 
It is hard to tell if you did or not if you only post the cases and not even the switch or the actual menu itself.

fysiks 06-09-2010 16:10

Re: Trash It
 
Quote:

Originally Posted by edgaras85 (Post 1204313)
Trash

Jesus christ! What is up with all the post deleting today?

edgaras85 06-10-2010 16:06

Re: Trash It
 
Quote:

Originally Posted by fysiks (Post 1204405)
Jesus christ! What is up with all the post deleting today?

I made myself :P

YamiKaitou 06-10-2010 18:05

Re: Trash It
 
Quote:

Originally Posted by edgaras85 (Post 1204313)
Trash

Stop blanking posts, it is only hurting others (and yourself) when they go to search for an issue that is similar


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

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