/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new gcvarKnifeSpeed;
new bool:freezetime;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("Poczatek_Rundy", 2, "1=Round_Start")
register_logevent("Koniec_Rundy", 2, "1=Round_End")
register_event("CurWeapon", "fwKnifeDeploy", "be", "1=1", "2=29");
gcvarKnifeSpeed = register_cvar("amx_knife_speed", "350");
}
public fwKnifeDeploy(id)
{
if(!freezetime)
return PLUGIN_CONTINUE;
engfunc(EngFunc_SetClientMaxspeed, id, get_pcvar_float(gcvarKnifeSpeed));
return PLUGIN_CONTINUE;
}
public Poczatek_Rundy()
freezetime = true;
public Koniec_Rundy()
freezetime = false;
Sprawdz moze to


Dodatki SourceMod




Moja zawartość
Mężczyzna