Raised This Month: $ Target: $400
 0% 

ADMIN_KICK


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 12-04-2009 , 17:26   Re: ADMIN_KICK
Reply With Quote #1

Quote:
Originally Posted by xPaw View Post
Loop trough players, check team, and send message (MSG_ONE_UNRELIABLE)

How do i loop trough players and send message (MSG_ONE_UNRELIABLE) ?

get_user_team like this ?

PHP Code:
public Beacon_Onid )
{
     if ( 
user_is_aliveid ) )
     {
             new 
CsTeams:team cs_get_user_teamid )
             if ( 
team == CS_TEAM_CT )
             {
                    static 
origin]
                    
emit_soundidCHAN_ITEMBeacon1.0ATTN_NORM0PITCH_NORM )
                    
get_user_originidorigin )
                    
message_beginMSG_BROADCASTSVC_TEMPENTITY )
                    
write_byteTE_BEAMCYLINDER )
                    
write_coordorigin] )
                    
write_coordorigin] )
                    
write_coordorigin]-20 )
                    
write_coordorigin] )    
                    
write_coordorigin] )    
                    
write_coordorigin]+200 )
                    
write_shortBeacon )
                    
write_byte)       
                    
write_byte)        
                    
write_byte)
                    
write_byte)        
                    
write_byte)        
                    
write_byte)      
                    
write_byte)      
                    
write_byte255 )
                    
write_byte255 )
                    
write_byte)
                    
message_end( )
                    
set_task1.0"Beacon_On"id )
              }

              else
              {
                    new 
CsTeams:team cs_get_user_teamid )
                    if ( 
team == CS_TEAM_CT )
                    {
                                 static 
origin]
                                 
emit_soundidCHAN_ITEMBeacon1.0ATTN_NORM0PITCH_NORM )
                                 
get_user_originidorigin )
                                 
message_beginMSG_BROADCASTSVC_TEMPENTITY )
                                 
write_byteTE_BEAMCYLINDER )
                                 
write_coordorigin] )
                                 
write_coordorigin] )
                                 
write_coordorigin]-20 )
                                 
write_coordorigin] )    
                                 
write_coordorigin] )    
                                 
write_coordorigin]+200 )
                                 
write_shortBeacon )
                                 
write_byte)       
                                 
write_byte)        
                                 
write_byte)
                                 
write_byte)        
                                 
write_byte)        
                                 
write_byte)      
                                 
write_byte)      
                                 
write_byte255 )
                                 
write_byte255 )
                                 
write_byte)
                                 
message_end( )
                                 
set_task1.0"Beacon_On"id )
                 }
              }
     }
 

__________________
ƒa†es™ is offline
Reply



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 00:30.


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