Raised This Month: $32 Target: $400
 8% 

[Any]Talk with the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Plugin ID:
5134
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 04-13-2016 , 12:32   [Any]Talk with the server
    Reply With Quote #1

    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*
    __________________
    Contact Me:
    Steam: NoyB
    Discord: Noy#9999
    Taking Private Requests

    Last edited by asherkin; 10-25-2018 at 17:18. Reason: Restore to previous version.
    BraveFox is offline
    BraveFox
    AlliedModders Donor
    Join Date: May 2015
    Location: Israel
    Old 04-13-2016 , 13:40   Re: [Any]Talk with the server
    Reply With Quote #2

    Updated
    __________________
    Contact Me:
    Steam: NoyB
    Discord: Noy#9999
    Taking Private Requests
    BraveFox is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 04-13-2016 , 13:42   Re: [Any]Talk with the server
    Reply With Quote #3

    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
    __________________
    retired

    Last edited by shavit; 04-13-2016 at 13:42.
    shavit is offline
    ClassicGuzzi
    Veteran Member
    Join Date: Oct 2013
    Location: Argentina
    Old 04-13-2016 , 15:39   Re: [Any]Talk with the server
    Reply With Quote #4

    You should try to add the responses in a config file or something.
    __________________
    ClassicGuzzi is offline
    BraveFox
    AlliedModders Donor
    Join Date: May 2015
    Location: Israel
    Old 04-13-2016 , 15:55   Re: [Any]Talk with the server
    Reply With Quote #5

    Updated!
    __________________
    Contact Me:
    Steam: NoyB
    Discord: Noy#9999
    Taking Private Requests
    BraveFox is offline
    BraveFox
    AlliedModders Donor
    Join Date: May 2015
    Location: Israel
    Old 04-14-2016 , 03:05   Re: [Any]Talk with the server
    Reply With Quote #6

    Quote:
    Originally Posted by ClassicGuzzi View Post
    You should try to add the responses in a config file or something.
    I will try do it later
    __________________
    Contact Me:
    Steam: NoyB
    Discord: Noy#9999
    Taking Private Requests
    BraveFox is offline
    BraveFox
    AlliedModders Donor
    Join Date: May 2015
    Location: Israel
    Old 04-14-2016 , 05:35   Re: [Any]Talk with the server
    Reply With Quote #7

    Updated!
    HTML Code:
    1.3 - Added translation to RU
    __________________
    Contact Me:
    Steam: NoyB
    Discord: Noy#9999
    Taking Private Requests
    BraveFox is offline
    TheRealToxic
    Senior Member
    Join Date: Jul 2015
    Old 04-14-2016 , 09:07   Re: [Any]Talk with the server
    Reply With Quote #8

    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

    Last edited by TheRealToxic; 04-14-2016 at 09:52.
    TheRealToxic is offline
    andrept4
    Senior Member
    Join Date: Dec 2012
    Location: Portugal
    Old 08-17-2016 , 09:01   Re: [Any]Talk with the server
    Reply With Quote #9

    how can this be usefull?
    __________________
    andrept4 is offline
    TheRealToxic
    Senior Member
    Join Date: Jul 2015
    Old 08-17-2016 , 12:37   Re: [Any]Talk with the server
    Reply With Quote #10

    in many ways for example:

    !teamspeak
    !homepage
    !donate

    etc etc
    TheRealToxic is offline
    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 20:21.


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