Raised This Month: $ Target: $400
 0% 

Help setting maxspeed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
winds
Member
Join Date: Aug 2010
Old 10-26-2011 , 10:24   Help setting maxspeed
Reply With Quote #1

Hey guys,
I am trying to make a menu for special rounds and I have this code:

PHP Code:
public logevent_round_start()
{
    static 
iMaxPlayers;
    if ( !
iMaxPlayers )
        
iMaxPlayers get_maxplayers();

    for(new 
id 1id <= get_maxplayers(); id++) 
    {
        if ( 
SpecialDay == )
        {
            
server_cmd("sv_maxspeed 1000");
            
set_user_maxspeed(11000.0);
            
set_hudmessage();
            
show_hudmessage(0"This is a speed round");
            
b_Speed false
            b_SpeedWeapon 
true
            SpecialDay 
0
        

and also

PHP Code:
public CurWeapon(id)
{
    if(
b_SpeedWeapon == true);
    {
        
set_user_maxspeed(id1000.0);
    }

Everything works except actually changing the players speed. It doesn't matter if I don't change weapons or I do, I stay the same speed. What am I doing wrong?
Also, how do I change it so it gives everyone maxspeed? I tried setting that to set_user_maxspeed(0, 1000.0) with a 0 instead of 1 but that didn't work at all.
Thanks!
winds is offline
 



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


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