Raised This Month: $ Target: $400
 0% 

Event TeamInfo Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 01-15-2011 , 10:30   Event TeamInfo Problem
Reply With Quote #1

My Code looks like this

Plugin Init :

PHP Code:
//Get Team
    
register_event"TeamInfo" "fw_EvTeamInfo" "a" ); 
PHP Code:
public fw_EvTeamInfo( )
{
    static 
idid read_data);
    static 
szTeam]; read_dataszTeam );
    
    switch( 
szTeam] )
    {
        case 
'T'
        {
            
//terrorist
            
PlayerInfo[id][p_team] = 1
        
}
        case 
'C'
        {
            
//CT
            
PlayerInfo[id][p_team] = 2
        
}
        case 
'S':
        {
           
//Spectator
           
PlayerInfo[id][p_team] = 3
        
}
        case 
'U':
        {
           
//UNassigned
           
PlayerInfo[id][p_team] = 4
        
}
    }

My Problem :

When im using this Code Players get showed as Spectator Sometimes and sometimes not
i hope anyone knows what i did wrong
__________________

Some People brings Happynes by Coming
Some by Going
Stylaa is offline
Send a message via ICQ to Stylaa
 



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 02:14.


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