AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pev_fuser1 (https://forums.alliedmods.net/showthread.php?t=58245)

ChaosPriest 07-21-2007 22:34

pev_fuser1
 
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
}


All times are GMT -4. The time now is 21:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.