Raised This Month: $ Target: $400
 0% 

Script help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-25-2004 , 20:10   Script help
Reply With Quote #1

Im making a better plugin but some of it is not working.

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() { register_plugin("Say Event","1.0","NicK") register_clcmd("say","say_event") } public plugin_precache() { precache_sound("misc/doh4.wav") precache_sound("misc/fucku.wav") precache_sound("misc/ahh.wav") } new phrase[1][] = { "doh" } new phrasetwo[1][] = { "fu" } new phrasethree[1][] = { "ahh" } new phrasefour[8][] = { "bs", "bullshit", "hacker", "hack", "hax", "speedhack", "wallhack", "aimbot"} new phrasefive[8][] = { "noobed", "newbie", "suxor", "owned", "newb", "whore", "awp", "gay"} new phrasesix[8][] = { "gay", "fag", "homo", "ghey", "queer", "noob", "loser", "bitch"}     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,"DOH!!!")        set_task(1.0,"client",0,sid,10)        break     }           else if(containi(said,phrasetwo[i]) != -1) {              set_hudmessage(225, 25, 25, -1.0, 0.32, 0, 2.0, 9.0, 0.8, 0.8, 2)            show_hudmessage(0,"You son of a bitch!!!")        set_task(1.0,"client2",0,sid,10)        break     }           else if(containi(said,phrasethree[i]) != -1) {              set_task(1.0,"client3",0,sid,10)        break     }           else if(containi(said,phrasefour[i]) != -1) {              set_task(1.0,"client4",0,sid,10)        break     }           else if(containi(said,phrasefive[i]) != -1) {              set_task(1.0,"client5",0,sid,10)        break     }           else if(containi(said,phrasesix[i]) != -1) {              set_task(1.0,"client6",0,sid,10)        break     }    }       public client(sid[])     client_cmd(0,"spk misc/doh4")             public client2(sid[])       client_cmd(0,"spk misc/fucku")     public client3(sid[])       client_cmd(0,"spk misc/ahh")       public client4(sid[])         engclient_cmd(sid[0],"say", "But Im just balming my noobness on you")         public client5(sid[])         engclient_cmd(sid[0],"say", "I really am just a noob though")         public client6(sid[])         engclient_cmd(sid[0],"say", "Admin I disrespect everyone on this server, including you!!!")


Any of the words that are replaced with But Im just balming my noobness on you, I really am just a noob though, Admin I disrespect everyone on this server, including you!!!, do not work, in console it says stop flooding the server. The play of the wav sounds work though. Anyone know what the problem is?
__________________
Nick is offline
Send a message via MSN to Nick
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 19:27  
Reply With Quote #2

anyone know?
__________________
Nick is offline
Send a message via MSN to Nick
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 04-26-2004 , 19:54  
Reply With Quote #3

Hmm have you tried compiling it?
Peli is offline
Send a message via MSN to Peli
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 04-26-2004 , 20:13  
Reply With Quote #4

One tip is that you don't put breaks in if statements
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 21:36  
Reply With Quote #5

Quote:
Originally Posted by Peli
Hmm have you tried compiling it?
Yea I compiled with no errors or warnings
__________________
Nick is offline
Send a message via MSN to Nick
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-26-2004 , 21:47  
Reply With Quote #6

Blah NM *Delete
__________________
QwertyAccess is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-26-2004 , 21:50  
Reply With Quote #7

I know!
I did the same thing
set_task the include file is wrong, *I think*
its set_task(time,sub,ARGS,ID) or, that works at least
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 22:28  
Reply With Quote #8

Thanks Ill test it out or at least untill I get gay steam to work...
__________________
Nick is offline
Send a message via MSN to Nick
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 22:39  
Reply With Quote #9

Tryed to compile but got tons of errors
__________________
Nick is offline
Send a message via MSN to Nick
Nick
Senior Member
Join Date: Apr 2004
Location: Canada, Alberta, Cal
Old 04-26-2004 , 23:16  
Reply With Quote #10

Can someone test it out? ^^
__________________
Nick is offline
Send a message via MSN to Nick
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 15:16.


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