|
Author
|
Message
|
|
Member
|

07-21-2007
, 22:34
pev_fuser1
|
#1
|
just needing to know what it is and how to implement it into a plugin, as far as what needs to come after it?
and if anyone is familiar with ecx(RC2) its an esf addon. trying to make a plugin to increase the swooping speed for characters after they have transformed. this is what i have so far. am i even close?
#include <amxmodx>
#include <esf>
#include <fakemeta>
new PLUGIN[]="SwoopChanger"
new AUTHOR[]="ChaosPriest"
new VERSION[]="1.0"
public plugin_init()
{
register_plugin(PLUGIN, AUTHOR, VERSION )
register_concmd("amx_swoop", "swoop", ADMIN_KICK, "<target> <speed>")
register_cvar( "amx_swoop", "3000" );
register_forward(FM_PlayerPreThink, "Forward_PlayerPreThink" )
return PLUGIN_CONTINUE
}
public swoop(id)
{
if (!(get_user_flags(id)&ADMIN_KICK))
console_print(id,"[AMXX] No access")
return PLUGIN_HANDLED
}
public amx_swoop()
{
set_pev( pev_fuser1, 3000 );
return PLUGIN_HANDLED
}
__________________
Last edited by ChaosPriest; 07-21-2007 at 22:36.
|
|
|
|