AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [Any]Talk with the server (https://forums.alliedmods.net/showthread.php?t=281518)

BraveFox 04-13-2016 12:32

[Any]Talk with the server
 
2 Attachment(s)
This is a simple plugin that you can talk with the server.
Example:
Player: hey
Server: Hello! and welcome to our server
Player: bye
Server:We hope to see you soon!
Player: gtg
Server:We hope to see you soon!
Player:Fuck
Server:Don't not curse! + gives gag
and more.

Cvars:
sm_talkwiththeserver_version
sm_talkwiththeserver_tsip 0 ip to show players while doing !teamspeak or typeing teamspeak(0 to disable)

Commands:
!teamspeak - Shows teamspeak ip if the teamspeak convar is not set to 0
Installation:
put the "TalkWithTheServer.smx" in the sourcemod/plugins folder
The GetRekt2.wav in the tf/sound folder
and the talkwiththeserver.phrases in the translations folder.
and then restart your server
Optionally
SourceComms - for gag with time&reason
ChangeLog:
1.0 - Release
1.1 - Added auto gag for cursing words&added some words
1.2 - Added sound to the words "GET REKT" "get rekt" "Get Rekt"&Added some words
1.3 - Added translation to RU
1.4 - Added translation to TR - Thank you chalr for the translation!
1.5 - Added translation to HE,Added more words to the curse words and added
!teamspeak,teamspeak.
1.6 - Added translation to LT,Added curse words with big letters,added gag for sentence like "go fuck yourself",Added more words to the curse words
Soon:
I don't know.. post here ideas :)
*Version 1.6 has not tested pls report me for bugs*

BraveFox 04-13-2016 13:40

Re: [Any]Talk with the server
 
Updated

shavit 04-13-2016 13:42

Re: [Any]Talk with the server
 
You're missing the source code.

Here's a decompiled snippet of whatever you've done there.

Code:

public Action OnSay(int client, char command[], int args)
{
        char text[4096];
        GetCmdArgString(text, 4096);
        StripQuotes(text);
        if (StrEqual(text, "hello", true))
        {
                PrintToChat(client, "Server:Hello! and welcome to our server!");
        }
        if (StrEqual(text, "hey", true))
        {
                PrintToChat(client, "Server:Hello! and welcome to our server!");
        }
        else
        {
                if (StrEqual(text, "Bye", true))
                {
                        PrintToChat(client, "Server:We hope to see you here later!");
                }
                if (StrEqual(text, "noob", true))
                {
                        PrintToChat(client, "Server:Stop talking about your self");
                }
                if (StrEqual(text, "gtg", true))
                {
                        PrintToChat(client, "Server:We hope to see you here later!");
                }
                if (StrEqual(text, "fuck", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                        ServerCommand("sm_gag #%i 10m Cursing", GetClientUserId(client));
                }
                if (StrEqual(text, "fucker", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                        ServerCommand("sm_gag #%i 10m Cursing", GetClientUserId(client));
                }
                if (StrEqual(text, "fack", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                        ServerCommand("sm_gag #%i 10m Cursing", GetClientUserId(client));
                }
                if (StrEqual(text, "bitch", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                        ServerCommand("sm_gag #%i 10m Cursing", GetClientUserId(client));
                }
                if (StrEqual(text, "fucking", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                        ServerCommand("sm_gag #%i 10m Cursing", GetClientUserId(client));
                }
                if (StrEqual(text, "facking", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                        ServerCommand("sm_gag #%i 10m Cursing", GetClientUserId(client));
                }
                if (StrEqual(text, "shit", true))
                {
                        PrintToChat(client, "Server:Do not curse!");
                }
                if (StrEqual(text, "/vipinfo", true))
                {
                        PrintToChat(client, "Server:Showing vip info");
                }
                if (StrEqual(text, "!vipinfo", true))
                {
                        PrintToChat(client, "Server:Showing vip info");
                }
                if (StrEqual(text, "/apply", true))
                {
                        PrintToChat(client, "Server:Good luck!");
                }
                if (StrEqual(text, "!apply", true))
                {
                        PrintToChat(client, "Server:Good luck!");
                }
                if (StrEqual(text, "admin", true))
                {
                        PrintToChat(client, "Server:if the admin doesn't answer don't spam him");
                }
                if (StrEqual(text, "I love this server", true))
                {
                        PrintToChat(client, "Server:I love you too");
                }
        }
        return Action 0;
}

edit: oh you added it lol

ClassicGuzzi 04-13-2016 15:39

Re: [Any]Talk with the server
 
You should try to add the responses in a config file or something.

BraveFox 04-13-2016 15:55

Re: [Any]Talk with the server
 
Updated!

BraveFox 04-14-2016 03:05

Re: [Any]Talk with the server
 
Quote:

Originally Posted by ClassicGuzzi (Post 2410793)
You should try to add the responses in a config file or something.

I will try do it later

BraveFox 04-14-2016 05:35

Re: [Any]Talk with the server
 
Updated!
HTML Code:

1.3 - Added translation to RU

TheRealToxic 04-14-2016 09:07

Re: [Any]Talk with the server
 
doesnt work correctly

the stuff in the translations file is just not correct or some else is not working.

only hello & gtg works for me.

EDIT: found out how it works by editing the sp file to my own likings :)

andrept4 08-17-2016 09:01

Re: [Any]Talk with the server
 
how can this be usefull?

TheRealToxic 08-17-2016 12:37

Re: [Any]Talk with the server
 
in many ways for example:

!teamspeak
!homepage
!donate

etc etc :)


All times are GMT -4. The time now is 02:01.

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