Szukam pluginu dzięki ktoremu będę mogl ustawic predkosc gdy biegniemy z nozem .
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Bieganie z nozem
Temat rozp. MistrzFlesha, 18.03.2015 17:22
1 odpowiedź w tym temacie
#1
Napisano 18.03.2015 17:22
#2
Napisano 21.03.2015 11:02
/*
* Name: Various Weapon Speeds
* Version: 1.03
* Author: v3x (www.clanlock.com)
* Date: Feb. 18, 2005
*
* Description: Allows you to adjust the speed with these weapons/items: knife, c4, awp
*
* Cvars:
* knife_speed Default 410
* c4_speed Default 410
* awp_speed Default 375
* speed_glow Default 1
*
*
* Updates:
*
* v1.03
* - Added cvar: speed_glow <1:on|0:off>
* - Fixed a LOT of things
* - .0 is no longer needed in cvars
*
* V1.02
* - Added glow when knife is out (team color based)
* - Changed cvars
*
* V1.01
* - Updated with switch statements
*
*
*
* To do:
* - Fix freezetime bug
*
*/
#include <amxmodx>
#include <cstrike>
#include <fun>
#define PLUGIN "Various Weapon Speeds"
#define AUTHOR "v3x"
#define VERSION "1.03"
// R G B A
new bool:speed = false
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("CurWeapon","check_speed","be")
register_cvar("knife_speed","390")
register_cvar("c4_speed","230")
register_cvar("awp_speed","230")
register_logevent("new_round",2,"1=Round_Start")
set_cvar_num("mp_freezetime",0)
}
public new_round()
{
speed = false
new ft = get_cvar_num("mp_freezetime")
set_task(float(ft),"allow_speed",0)
return PLUGIN_CONTINUE
}
public allow_speed()
{
speed = true
return PLUGIN_HANDLED
}
public check_speed(id)
{
// If the speed var is false..
if(!speed) {
// Stop the function
return PLUGIN_HANDLED
}
// Get the users weapon
new clip, ammo
new weapon = get_user_weapon(id,clip,ammo)
switch(weapon)
{
case CSW_KNIFE:
{
// Set the speed for the knife
set_user_maxspeed(id,float(get_cvar_num("knife_speed")))
}
case CSW_C4: {
// Set the speed for the C4
set_user_maxspeed(id,float(get_cvar_num("c4_speed")))
}
case CSW_AWP: {
// Set the speed for the AWP
set_user_maxspeed(id,float(get_cvar_num("awp_speed")))
}
}
return PLUGIN_CONTINUE
}
register_cvar("knife_speed","390") <<<Tutaj ustawiasz prędkość biegania z nożemregister_cvar("c4_speed","230") <<<Prędkość biegania z paką C4
register_cvar("awp_speed","230") <<<Prędkość biegania z awp
Kompilacja wrzucasz i GO
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych


Dodatki SourceMod












