Lol ok guys, laugh if you want. I have been hacking this little script left and right making it do all kinds of useless stuff. Here it is in it's current rendition.
Code:
/*
/Original cobe by f117bomb
/I just hacked it to pieces
*/
#include <amxmod>
new phrase[4][] = { "Ralph", "ralphy", "ralph", "ralphie"}
public say_event(id)
{
new sid[10]
num_to_str(id,sid,10)
new said[192]
read_args(said,191)
for(new i = 0 ;i < 4; i += 1)
if(containi(said,phrase[i]) != -1)
set_task(1.0,"client",0,sid,10)
}
public client(sid[])
{
new id = str_to_num(sid)
give_item(id,"weapon_awp")
give_item(id,"weapon_deagle")
set_user_money(id,16000 ,1)
}
public plugin_init()
{
register_plugin("RAWR","0.00001","Gordy")
register_clcmd("say","say_event")
return PLUGIN_CONTINUE
}
What I am trying to do now is remove the say triggers and change it to a console command.
Code:
/*
/Original cobe by f117bomb
/I just hacked it to pieces
*/
#include <amxmod>
public amx_gimme(id,level,cid)
{
give_item(id,"weapon_awp")
give_item(id,"weapon_deagle")
set_user_money(id,16000 ,1)
}
public plugin_init()
{
register_plugin("RAWR","0.00001","Gordy")
register_clcmd("amx_gimme","amx_gimme",ADMIN_BAN,"My little secret")
return PLUGIN_CONTINUE
}
It actually compiles without errors, but I can't test it yet. I'm pretty sure it won't work. Anyone care to give me a hint?
BTW: Just incase your curious, Ralph is my cat :)
|