Raised This Month: $ Target: $400
 0% 

Ts Team Movement Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FireJinTW
Senior Member
Join Date: Jan 2012
Old 05-25-2015 , 15:02   Ts Team Movement Speed
Reply With Quote #1

Hello,

I am running some mod, so there is any ways or any plugin that make me to be able to edit maxspeed of Ts team only?

If can, please help me out. Would be appreciate

Thank you.
FireJinTW is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 05-25-2015 , 21:27   Re: Ts Team Movement Speed
Reply With Quote #2

not tested
PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>

#define Ham_CS_Player_ResetMaxSpeed Ham_Item_PreFrame
#define MAXSPEED 300.0

public plugin_init()
    
RegisterHam(Ham_CS_Player_ResetMaxSpeed"player""fwd_setspeed"1)

public 
fwd_setspeed(id)
    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T && get_user_maxspeed != 1.0)
        
set_user_maxspeed(idMAXSPEED
__________________
Shiina.Mashiro is offline
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 00:05.


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