Try this
PHP Code:
/*================================================================================
----------------------------------
-*- [ZP] Class: Human: FastShoot -*-
----------------------------------
This plugin is part of Zombie Plague Mod and is distributed under the
terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
================================================================================*/
#include <amxmodx>
#include <zp50_class_human>
#include <zp50_core>
#include <fakemeta_util>
// Raptor Human Attributes
new const humanclass2_name[] = "Specjalista"
new const humanclass2_info[] = "Szybciej strzela z broni"
new const humanclass2_models[][] = { "leet" }
const humanclass2_health = 75
const Float:humanclass2_speed = 1.0
const Float:humanclass2_gravity = 1.2
new g_HumanClassID
public plugin_init()
{
register_event("CurWeapon","eventCurWeapon", "b")
return PLUGIN_CONTINUE
}
public eventCurWeapon(id)
{
if(!is_user_connected(id) && !is_user_alive(id) && zp_class_human_get_current(id) != g_HumanClassID)
return PLUGIN_CONTINUE
static Float:fSpeedMultiplier = 0.8;
new szWeaponName[64];
get_weaponname(read_data(2), szWeaponName, 63)
new iEnt = fm_find_ent_by_owner(-1, szWeaponName, id)
set_pdata_float( iEnt, 46, ( get_pdata_float(iEnt, 46, 4) * fSpeedMultiplier), 4 );
set_pdata_float( iEnt, 47, ( get_pdata_float(iEnt, 47, 4) * fSpeedMultiplier), 4 );
return PLUGIN_CONTINUE
}
public plugin_precache()
{
register_plugin("[ZP] Klasa Ludzi: Specjalista", ZP_VERSION_STRING, "ZP Dev Team")
g_HumanClassID = zp_class_human_register(humanclass2_name, humanclass2_info, humanclass2_health, humanclass2_speed, humanclass2_gravity)
new index
for (index = 0; index < sizeof humanclass2_models; index++)
zp_class_human_register_model(g_HumanClassID, humanclass2_models[index])
}
EDIT:
Can you upload these 2 includes
#include <zp50_class_human>
#include <zp50_core>
you can find them and YourCSFolder/cstrike/addons/amxmodx/scripting/include