Raised This Month: $ Target: $400
 0% 

[ALL] Command & CVAR shortcut


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ahmadf5388
Junior Member
Join Date: Dec 2018
Plugin ID:
4011
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Type some words into the chat and activate the specific command !
    Old 01-13-2019 , 07:43   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #1

    i tryed this but why won't work ?

    "22"
    {
    "chat" "awp 1"
    "command" "sm_restrict awp 1"
    "flag" "o"
    }
    "23"
    {
    "chat" "awp"
    "command" "sm_unrestrict awp"
    "flag" "o"
    }
    Ahmadf5388 is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 01-13-2019 , 15:14   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #2

    Any errors in the console ?
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Ahmadf5388
    Junior Member
    Join Date: Dec 2018
    Old 01-14-2019 , 13:03   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #3

    Quote:
    Originally Posted by Arkarr View Post
    Any errors in the console ?
    It was my mistake i didn't trow " ! "
    Ahmadf5388 is offline
    mralireza12
    BANNED
    Join Date: Apr 2019
    Location: Usa
    Old 04-17-2019 , 13:41   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #4

    hello how can i use this plugin for sv_password? i mean how to get strings from users to use them on sv_password?
    Sorry for my bad english please help me
    mralireza12 is offline
    Send a message via ICQ to mralireza12 Send a message via AIM to mralireza12 Send a message via Yahoo to mralireza12 Send a message via Skype™ to mralireza12
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 04-18-2019 , 11:20   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #5

    Quote:
    Originally Posted by mralireza12 View Post
    hello how can i use this plugin for sv_password? i mean how to get strings from users to use them on sv_password?
    Sorry for my bad english please help me
    I am sorry, I did not understand your question.
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 04-18-2019 at 11:20.
    Arkarr is offline
    Sarin
    Senior Member
    Join Date: Nov 2014
    Location: Sydney, Australia
    Old 03-02-2019 , 04:28   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #6

    CS:S

    "ChatCommand"
    {
    "1"
    {
    "chat" "!lr"
    "command" "exec cfg/sourcemod/sm_warmode_on.cfg"
    "flag" "b"
    }
    "2"
    {
    "chat" "!lro"
    "command" "exec cfg/sourcemod/sm_warmode_off.cfg"
    "flag" "b"
    }
    }

    L 03/02/2019 - 09:25:50: "Sariи<3><[U:*******]><CT>" say "!lr"

    'cfg/sourcemod/sm_warmode_on.cfg' not present; not executing.

    Last edited by Sarin; 03-02-2019 at 04:29.
    Sarin is offline
    Sarin
    Senior Member
    Join Date: Nov 2014
    Location: Sydney, Australia
    Old 03-02-2019 , 05:55   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #7

    Quote:
    Originally Posted by Sarin View Post
    CS:S

    "ChatCommand"
    {
    "1"
    {
    "chat" "!lr"
    "command" "exec cfg/sourcemod/sm_warmode_on.cfg"
    "flag" "b"
    }
    "2"
    {
    "chat" "!lro"
    "command" "exec cfg/sourcemod/sm_warmode_off.cfg"
    "flag" "b"
    }
    }

    L 03/02/2019 - 09:25:50: "Sariи<3><[U:*******]><CT>" say "!lr"

    'cfg/sourcemod/sm_warmode_on.cfg' not present; not executing.
    worked it out soz
    "ChatCommand"
    {
    "1"
    {
    "chat" "!lr"
    "command" "exec sourcemod/sm_warmode_on.cfg"
    "flag" "b"
    }
    "2"
    {
    "chat" "!lro"
    "command" "exec sourcemod/sm_warmode_off.cfg"
    "flag" "b"
    }
    }
    Sarin is offline
    dyxL
    Senior Member
    Join Date: Jul 2010
    Old 11-02-2019 , 18:44   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #8

    cant use clientcommands command, i want to use both them ServerCommand and ClientCommand can you help ?
    dyxL is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 11-03-2019 , 07:01   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #9

    Quote:
    Originally Posted by dyxL View Post
    cant use clientcommands command, i want to use both them ServerCommand and ClientCommand can you help ?
    ?
    __________________
    Want to check my plugins ?
    Arkarr is offline
    TiTz
    Member
    Join Date: Jan 2020
    Old 04-20-2020 , 20:39   Re: [ALL] Command & CVAR shortcut
    Reply With Quote #10

    Hi,
    I'm having a problem with this plugin using sm commands - sm_cvar works fine.

    I'm using this on my L4D1 server sourcemod 1.10

    Here's an example of my cfg:

    Code:
    "ChatCommand"
    {
    	"1"
    	{
    		"chat" "!xplus"
    		"command" "sm_cvar infected_bots_control_limit_max 14"
    		"flag"	"z"
    	}
    	"2"
    	{
    		"chat" "!sw"
    		"command" "sm_spawn_wep [PLAYER_NAME]"
    		"flag"	"z"
    	}
    	"3"
    	{
    		"chat" "!fl"
    		"command" "sm_flare blue"
    		"flag"	"z"
    	}
    }
    Is the code above correct? as all combinations i've tried for sm commands will not work.
    Am i doing something wrong? or is the plugin only functioning for sm_cvar ?

    On a separate note:
    I have a request for a feature - would it be possible to have an option that stops the output of the cvar or command being printed to screen?

    Perhaps this plugins code could be integrated ? instead of having to use it seperatly.
    [ANY] ConVar Suppression
    https://forums.alliedmods.net/showthread.php?t=190902
    TiTz 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 11:46.


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