Raised This Month: $ Target: $400
 0% 

Why wont this work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-19-2004 , 21:57   Why wont this work?
Reply With Quote #1

Code:
#include <amxmodx>

new phrase[1][] = { "/hello" } 

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 < 1; i += 1)
		if(containi(said,phrase[i]) != -1) {
			set_hudmessage(225, 25, 25, -1.0, 0.32, 0, 2.0, 9.0, 0.8, 0.8, 2)    
            show_hudmessage(0,"Hello and welcome to this server")
            set_task(1.0,"client",0,sid,10)
            break
    }
}

public client(sid[])
{
	new id = str_to_num(sid)
	engclient_cmd(id,"say", "Hello and welcome to server") 
    client_cmd(0, "spk ^"you are a ass hole^"")
	
}

public plugin_init()
{
	register_plugin("Say Hello","0.4","SneakerBoots")
	register_clcmd("say","say_event")
    return PLUGIN_CONTINUE
}
When you type /hello nothing happens Whats wrong with it?
__________________
Nick is offline
Send a message via MSN to Nick
 



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 16:49.


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