AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Ts Team Movement Speed (https://forums.alliedmods.net/showthread.php?t=263450)

FireJinTW 05-25-2015 15:02

Ts Team Movement Speed
 
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.

Shiina.Mashiro 05-25-2015 21:27

Re: Ts Team Movement Speed
 
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



All times are GMT -4. The time now is 20:12.

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