Raised This Month: $ Target: $400
 0% 

How to change the team of all players.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 04-21-2013 , 12:00   How to change the team of all players.
Reply With Quote #1

I try to use this code, but server was crashed.
PHP Code:
ChangeTeam()
{

    new 
iTeam;
    
    for( new 
id 1id <= 32id++ )
    {
        if(!
is_user_connected(id)) continue;
        
iTeam get_user_team(id);
        
        
cs_set_user_team(idiTeam == CS_TEAM_CT iTeam == CS_TEAM_T CS_TEAM_SPECTATOR)
    }
    
    
server_cmd("sv_restartround 3");
    
set_task(4.5"Announce")


FromTheFuture 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 10:54.


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