Raised This Month: $ Target: $400
 0% 

Couple of questions to get me started.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gor.d
Junior Member
Join Date: Mar 2004
Location: South Carolina
Old 03-31-2004 , 17:06  
Reply With Quote #1

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
Gor.d is offline
Send a message via AIM to Gor.d Send a message via MSN to Gor.d Send a message via Yahoo to Gor.d
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:58.


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