Raised This Month: $ Target: $400
 0% 

Commands for Ts are executed on CTs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-07-2011 , 10:45   Commands for Ts are executed on CTs
Reply With Quote #1

Hello everybody,
I've got a problem with my menu, everything which should happen on the Ts happens on the CTs, I hope you can search the mistake and tell me whats wrong. :

PHP Code:
public submenuverstecken_handler(idmenuitem)
{
    
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
    }
    
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    
    new 
key str_to_num(data)
    
    switch(
key)
    {
        case 
1:
        {
            for (new 
user 1user <= gMaxPlayersuser++)
            {
                new 
CsTeams:Team;
                
Team cs_get_user_team(user);
                
                if (
Team == CS_TEAM_T)
                {
                    
set_user_maxspeed(id0)
                }
            }
        }
        case 
2:
        {
            for (new 
user 1user <= gMaxPlayersuser++)
            {
                new 
CsTeams:Team;
                
Team cs_get_user_team(user);
                
                if (
Team == CS_TEAM_T)
                {
                    
set_user_maxspeed(id,320)
                }
            }
        }
    }
    return 
PLUGIN_HANDLED;

Kia is offline
 


Thread Tools
Display Modes

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 19:48.


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