PHP Code:
#include <amxmodx>
#include <fun>
new isonapill[33]
public plugin_init()
{
register_plugin("Adrenaline pills","0.0.0.0","Dean Booker AKA Ecko Mantle");
register_srvcmd("item_apill","item_apill");
}
public item_apill()
{
new arg[32], id
read_argv(1,arg,32)
id = str_to_num(arg)
if(isonapill[id] = 1)
{
return PLUGIN_HANDLED
}
else
{
set_user_maxspeed(id, 450.0)
client_cmd(id, "cl_forwardspeed 450.0")
client_cmd(id, "cl_sidespeed 450.0")
client_cmd(id, "cl_backspeed 450.0")
client_cmd(id, "say /me takes an Adrenaline Pill.")
client_print(id, print_chat, "[Umbrella] You take an Adrenaline Pill.")
set_task(30.0, "apill_end", id)
isonapill[id] = 1
}
return PLUGIN_HANDLED;
}
public apill_end(id)
{
set_user_maxspeed(id, 320.0)
client_cmd(id, "cl_forwardspeed 320.0")
client_cmd(id, "cl_sidespeed 320.0")
client_cmd(id, "cl_backspeed 320.0")
isonapill[id] = 0
return PLUGIN_HANDLED
}
I'm guessing it's for TSRP.