i tried this
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#define PLUGIN "Press R to run fast"
#define VERSION "0.1"
#define AUTHOR "pelita haya f.c"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_CmdStart, "FM_R")
RegisterHam(Ham_Spawn, "player", "Haha")
}
public Haha(id)
{
if ( is_user_admin(id) )
{
FM_R(id)
}
}
public FM_R(id, uc handle, seed)
{
if(!is_user_alive(id))
return;
static iButton; iButton = pev(id, pev_button)
static iOldButton; iOldButton = pev(id, pev_oldbuttons)
if ( is_user_alive(id) )
{
if( ( iButton & IN_USE ) && !( iOldButton & IN_USE ) )
{
CmdRun(id)
}
}
}
public CmdRun(id)
{
if ( is_user_alive(id) )
{
set_user_maxspeed(id, 300)
}
}
and it give me error in
__________________