Raised This Month: $ Target: $400
 0% 

Float speed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 02-04-2019 , 06:30   Float speed
Reply With Quote #1

PHP Code:
new Float:FastSpeed 400.0
new Float:NormalSpeed 250.0
new HasSpeed[33]; 
PHP Code:
public logevent_round_end()
{
    
HasSpeed[0] = 0
    set_user_maxspeed
(0NormalSpeed)
}

public 
client_disconnect(id)
{
    
HasSpeed[id] = 0
    set_user_maxspeed
(0NormalSpeed)

PHP Code:
case :
        {
            if ( 
Money ) {
                
CromChat id"---" );
                return 
PLUGIN_HANDLED;
            }
            if (!
HasSpeed[id])
            {
                
set_user_maxspeed(idFastSpeed);
                
HasSpeed[id] = 1
                cs_set_user_money 
(idMoney 7);
                
client_cmd (id"spk ^"%s^""MenuSound );
                
CromChat (id"---");
                
CromChat (0"---"name);
                
            }
            else {
                
CromChat id"----" );
                return 
PLUGIN_HANDLED;
            }
        } 
why the speed gone after changing the weapon, i mean, i buy speed while using weapon, then i switch to pistol and speed is gone, also when round ends speed is not taken, any idea why?
__________________
a simple act of caring creates an endless ripple.
Nutu_ 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 07:31.


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