Raised This Month: $ Target: $400
 0% 

set_user_maxspeed() not work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
uqw04826
New Member
Join Date: Dec 2015
Old 12-31-2015 , 09:14   set_user_maxspeed() not work
Reply With Quote #1

I'm editing my deathrun server and I want to set speed of terrorists to the 550. But with no help. Here is parth of the code from deathrun.sma:

PHP Code:
// NEW ROUND
///////////////////////////////////////////
public EventRoundStart( ) {
    if( !
g_bEnabled )
        return 
PLUGIN_CONTINUE;
    
    
g_bRandromized    false;
    
g_bStarting    false;
    
    new 
iiPlayers32 ], iNumiRealPlayersCsTeams:iTeam;
    
get_playersiPlayersiNum"c" );
    
    if( 
iNum <= )
        return 
PLUGIN_CONTINUE;
    
    for( 
0iNumi++ ) {
        new 
pid iPlayers];
        
iTeam cs_get_user_team(pid);
        
        if( 
iTeam == CS_TEAM_T || iTeam == CS_TEAM_CT )
            
iRealPlayers++;

        if( 
iTeam == CS_TEAM_T ) {
            
// Terrorists should run faster
            
set_user_maxspeed(pid550.0);
        } else {
            
// Other players have default speed
            
set_user_maxspeed(pid0.0);
        }
    }
    ... 
other stuffeverything works well...

My whole server works good, except that speed boost. I try to connect as a T, but my speed is still default as CT.

Note:
server cvar sv_maxspeed is 900
client cvars cl_forwardspeed, cl_backspeed, cl_sidespeed are all set to 4000

Compilation proceed without any error or even warning. I also have a SuperHero server, where I use set_user_maxspeed and it works well. Where is the problem?

Last edited by uqw04826; 12-31-2015 at 09:14.
uqw04826 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 09:28.


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