Witam. Wgrałem na swój serwer codmod plugin na szybszy bieg, ale szybciej biega się tylko z bronią a chciał bym z bronią i nożem.
Mógł by mi ktoś edytować? (tzn dodać ten kod na szybkość z bronią i nożem)
#include <amxmodx>
#include <cstrike>
#include <fun>
#define PLUGIN "BieguBiegu"
#define VERSION "1.2"
#define AUTHOR "n0ns0p3dyK & Nakupenda."
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("RoundStart", 2, "0=World triggered", "1=Round_Start")
register_event("CurWeapon","CurWeapon","be")
}
public RoundStart()
{
for(new id=1;id<32;id++)
{
set_speedchange(id)
}
}
public CurWeapon(id)
set_speedchange(id)
public set_speedchange(id)
{
if (is_user_connected(id) && is_user_alive(id))
{
if((cs_get_user_team(id) == CS_TEAM_CT) && (get_user_flags(id) & ADMIN_LEVEL_D))
set_user_maxspeed(id, get_user_maxspeed(id)+150.0)
}
}
Użytkownik Ishnu edytował ten post 30.11.2015 13:25


Dodatki SourceMod












