AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   REALLY NEED HELP!!!! (https://forums.alliedmods.net/showthread.php?t=3450)

|-Goku-| 07-06-2004 22:36

REALLY NEED HELP!!!!
 
Hi thanks for looking at my thread...I have never done any scripting whatso ever so I need some help on what to do...
I currently Use Psychosounds on my Counter-strike 1.6 server running AMXX. And I want people to be able to see what the trigger words are. IE..When they type /sound it brings up a list of the trigger words. I really have no idea how to do this so if anyone could help me out that would be great.. Thank you


|-Goku-|

jtp10181 07-06-2004 23:59

I have done this in a my own personal version of psychosounds for AMX

Heres what I did..

in plugin_init

Code:
    register_clcmd("say /sounds", "motd_sounds",0," - Shows Loaded Sound Triggers");

anywhere else

Code:
public motd_sounds(id) {     new message[1024], len;     new line[256]; #if !defined NO_STEAM     len += copy( message[len] , 1023 - len, "<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000000;margin-left:8px;margin-top:0px;}</style></head><body><pre>") #endif     for (new i = 0; i < word_count; i++) {         format(line, 255, "%-30s ", words[i]);         if ( i + 1 < word_count ) {             i++;             add(line, 255, words[i]);             add(line, 255, " ");         }         len += copy( message[len], 1023 - len,line);     len += copy( message[len], 1023 - len,"^n");     }     #if !defined NO_STEAM     len += copy( message[len] , 1023 - len, "</pre></body></html>") #endif     show_motd(id, message, "Sound Triggers") }

|-Goku-| 07-07-2004 00:42

so where am I putting this??
One says Plugin_init
and the other says anywhere else so is this going in the psychsounds.sma?

|2ob 07-07-2004 00:56

you add them both, they are the same thing only /sound code is the trigger for the bottom code.


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

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