AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Annoncer Help (https://forums.alliedmods.net/showthread.php?t=4520)

Dizzy 08-03-2004 10:30

Annoncer Help
 
I need help and can't figuare out why it won't compile I want the plugin to say

"Visit www.blindshotc.cjb.net!" In csay by it's self every 5 mins or so

I bet it's completly wrong

Here it is

Code:
/*Website Announcer v1.0 By:Dizzy CopyRight, All Rights Reserved*/ #include <amxmodx> #include <cstrike> public plugin_init() {     register_plugin("Website Announcer","1.0","Dizzy")     register_cvar("sv_announcer","1")     register_clcmd("amx_webannouncer","announcer",ADMIN_VOTE," : prints     Visit <a href="http://www.blindshot.cjb.net" target="_blank" rel="nofollow noopener">www.blindshot.cjb.net</a> Today! to everyone") } public announcer(id) {     if(get_cvar_num("sv_webannouncer")==0)     return PLUGIN_HANDLED }

johnjg75 08-03-2004 10:32

well i can do it for the command, but if u want it every 5 min or whatever, why do u have a command instead of an event?

Dizzy 08-03-2004 10:34

Oh
 
:ouch:

lol my bad

*I feel stupid* :P

Dizzy 08-03-2004 10:36

Ok
 
Ok Fixed That but still not sure here's what I got

Code:
/*Website Announcer v1.0 By:Dizzy CopyRight, All Rights Reserved*/ #include <amxmodx> #include <cstrike> public plugin_init() {     register_plugin("Website Announcer","1.0","Dizzy")     register_cvar("sv_webannouncer","1")     register_event("hud Visit <a href="http://www.blindshot.cjb.net" target="_blank" rel="nofollow noopener">www.blindshot.cjb.net</a> Today!") } public announcer(id) {     if(get_cvar_num("sv_webannouncer")==0)     return PLUGIN_HANDLED }

Burnzy 08-03-2004 10:38

u have to no what regsiter_event... register_clcmd's do. Go to the functions page and search for them. They tell u how to use them.
Ur doing things all wrong.

johnjg75 08-03-2004 10:39

completely wrong with the event, howabout we make it to where it says it every new round?

Burnzy 08-03-2004 10:40

register_event("ResetHUD","anouner","b")

Dizzy 08-03-2004 10:42

Well everyround it goes Prepare to fight so I can't have it say both.

Ummm

You Have to register an event to work every 5 minutes to say a HUD Text

Dizzy 08-03-2004 10:44

Burnzy I always feel Like you pissed at me cause of ur signiture it get me uncomfortable :roll:

lol

But Yeah not every round every 5 mins could be during the round OR!

I could have it done 1 min into every round! How About that?

johnjg75 08-03-2004 10:45

heres the code for every new round, i dont know how to do time yet,maybe burnzy knows... you may want to ajust set_hudmessage to ur needs http://130.215.31.29/funcwiki.php?go=func&id=28
Code:
/*Website Announcer v1.0 By:Dizzy CopyRight, All Rights Reserved*/ #include <amxmodx>   #include <amxmisc> public plugin_init() {     register_plugin("Website Announcer","1.0","Dizzy")     register_cvar("sv_webannouncer","1")     register_event("ResetHUD","announcer","a") } public announcer() {     if(get_cvar_num("sv_webannouncer")==0)     return PLUGIN_HANDLED    set_hudmessage(0,255,0,1.0,1.0,0,1.0,10.0,1.0,1.0,1)    show_hudmessage(0,"Visit <a href="http://www.blindshot.cjb.net" target="_blank" rel="nofollow noopener">www.blindshot.cjb.net</a> Today!") }


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

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