Raised This Month: $ Target: $400
 0% 

Can't increase player speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 05-26-2018 , 01:47   Re: Can't increase player speed
Reply With Quote #1

I found this code in another post.

It requires the fun module, I do not know if it helps you, and I do not even know if it works kk.

PHP Code:
set_player_maxspeed(id)
{
    
// If frozen, prevent from moving
    
if (g_frozen[id])
    {
        
set_user_maxspeed(id0.0)
    }
    
// Otherwise, set maxspeed directly
    
else
    {
        if (
g_zombie[id])
        {
            if (
g_nemesis[id]) {
            
set_user_maxspeed(idget_pcvar_float(cvar_nemspd))
            }
            else {
            
set_user_maxspeed(idg_zombie_spd[id])
            }
            
            if (
g_predator[id]) {
            
set_user_maxspeed(idget_pcvar_float(cvar_predspd))
            }
            else {
            
set_user_maxspeed(idg_zombie_spd[id])
            }            
        }
        else
        {
            if (
g_survivor[id])
            
set_user_maxspeed(idget_pcvar_float(cvar_survspd))
            else if (
get_pcvar_float(cvar_humanspd) > 0.0)
            
set_user_maxspeed(idget_pcvar_float(cvar_humanspd))
        }
    }

iceeedr is offline
Send a message via Skype™ to iceeedr
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 04:32.


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