Raised This Month: $51 Target: $400
 12% 

Hook Grab Rope 15S Disabled Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author
mRZeonai
Junior Member
Join Date: May 2017
Plugin ID:
5644
Plugin Version:
Plugin Category:
All
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 05-29-2017 , 03:36   Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #1

    Hello,My First Plugin No More Thing.I am waiting for your suggestions and requests.


    Related Plugins

    HTML Code:
    https://forums.alliedmods.net/showthread.php?p=1839628


    Attached Files
    File Type: sp Get Plugin or Get Source (mRZeonaiH15SKE.sp - 578 views - 981 Bytes)
    File Type: smx mRZeonaiH15SKE.smx (13.4 KB, 479 views)
    mRZeonai is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 05-30-2017 , 14:47   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #2

    Why 3 times command?
    __________________
    vortex. is offline
    MithatGuner
    Member
    Join Date: Sep 2016
    Location: Turkey
    Old 05-30-2017 , 17:42   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #3

    PHP Code:
    ServerCommand("sm_hgr_hook_enable 1");
        
    ServerCommand("sm_hgr_hook_enable 1");
        
    ServerCommand("sm_hgr_rope_enable 1"); 
    i think he forget grab
    MithatGuner is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 05-30-2017 , 19:24   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #4

    Use it mate :]

    PHP Code:
    #include <sourcemod>
    #include <multicolors>


    public Plugin:myinfo =
    {
        
    name "Ilk 15 Saniye Hook Engeli",
        
    author ".#Vortéx!",
        
    version "1.0.0",
        
    url "sourceturk.net"
    }

    public 
    OnPluginStart()
    {
        
    HookEvent("round_start"engelle);
    }

    public 
    engelle(Handle:event, const String:name[], bool:dontBroadcast)
    {
        
    ServerCommand("sm_hgr_hook_enable 0");
        
    CreateTimer(15.0engelac);
        
        for(new 
    <= GetMaxClients();i++)
        {
            if(
    IsClientInGame(i) && IsPlayerAlive(i))
            {
                if (
    CheckCommandAccess(i"+hook"ADMFLAG_BAN))
                {
                    
    CPrintToChat(i"{darkred}[vortex] \x01\x0B\x10Hook {orchid}ilk 15 saniye {lightred}kullanıma kapalıdır.");
                }
            }
        }
    }

    public 
    Action engelac(Handle timer)
    {
        
    ServerCommand("sm_hgr_hook_enable 1");

        for(new 
    <= GetMaxClients();i++)
        {
            if(
    IsClientInGame(i) && IsPlayerAlive(i))
            {
                if (
    CheckCommandAccess(i"+hook"ADMFLAG_BAN))
                {
                    
    CPrintToChat(i"{darkred}[vortex] \x01\x0B\x10Hook {orchid}kullanıma {lime}açılmıştır.");
                }
            }
        }

    __________________

    Last edited by vortex.; 05-30-2017 at 19:24.
    vortex. is offline
    stephen473
    Senior Member
    Join Date: Jan 2017
    Location: somewhere on earth
    Old 05-30-2017 , 19:27   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #5

    thanks for sharing!

    added cvars & updated to new syntax

    HTML Code:
    sm_hgr_plugin_enable
    sm_hgr_standby_time
    sm_hgr_standby_time_tag
    sm_hgr_chat_messages
    Attached Files
    File Type: sp Get Plugin or Get Source (mRZeonaiH15SKE.sp - 405 views - 2.5 KB)
    File Type: smx mRZeonaiH15SKE.smx (14.1 KB, 430 views)
    __________________
    Also known as Hardy`.

    Feel free to contact me if you have a private plugin request!

    My Steam Profile | Discord: Hardy`#3792

    Last edited by stephen473; 05-30-2017 at 19:36.
    stephen473 is offline
    KnoXviLLe
    Senior Member
    Join Date: Nov 2011
    Old 05-30-2017 , 20:21   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #6

    Quote:
    Originally Posted by stephen473 View Post
    thanks for sharing!

    added cvars & updated to new syntax

    HTML Code:
    sm_hgr_plugin_enable
    sm_hgr_standby_time
    sm_hgr_standby_time_tag
    sm_hgr_chat_messages
    Oh Thanks.Good Job.
    And so funny topic
    __________________
    Success is the ability to go from one failure to another with no loss of enthusiasm.


    Last edited by KnoXviLLe; 05-30-2017 at 20:29.
    KnoXviLLe is offline
    vortex.
    AlliedModders Donor
    Join Date: Jan 2017
    Location: OnGameFrame()
    Old 05-30-2017 , 20:45   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #7

    Quote:
    Originally Posted by KnoXviLLe View Post
    And so funny topic
    Exactly! The plugin has been fixed. Correct codes. Thanks everyone.
    __________________

    Last edited by vortex.; 05-30-2017 at 20:46.
    vortex. is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 05-30-2017 , 20:55   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #8

    You should use the natives instead of change cvars.
    PHP Code:
    /**
     * Gives or removes client access to hook, grab, or rope.
     * The client will receive a notification in chat.
     *
     * @param client     Player index (integer)
     * @param access     0 - Give, 1 - Take (integer)
     * @param action     0 - Hook, 1 - Grab, 2 - Rope (integer)
     * @return           True if successful, false if client is a bot.
     * @error            Player index is out of bounds.
     */
    native bool:HGR_ClientAccess(clientaccessaction); 
    Also you should kill timer every round start.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 05-30-2017 at 20:55.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    stephen473
    Senior Member
    Join Date: Jan 2017
    Location: somewhere on earth
    Old 06-01-2017 , 18:27   Re: Hook Grab Rope 15S Disabled Plugin
    Reply With Quote #9

    Quote:
    Originally Posted by Franc1sco View Post
    You should use the natives instead of change cvars.
    PHP Code:
    /**
     * Gives or removes client access to hook, grab, or rope.
     * The client will receive a notification in chat.
     *
     * @param client     Player index (integer)
     * @param access     0 - Give, 1 - Take (integer)
     * @param action     0 - Hook, 1 - Grab, 2 - Rope (integer)
     * @return           True if successful, false if client is a bot.
     * @error            Player index is out of bounds.
     */
    native bool:HGR_ClientAccess(clientaccessaction); 
    Also you should kill timer every round start.
    i forgot it to killtimer on roundstart.
    Here new version!
    Attached Files
    File Type: smx hgrblocker.smx (14.2 KB, 427 views)
    File Type: sp Get Plugin or Get Source (hgrblocker.sp - 477 views - 2.7 KB)
    __________________
    Also known as Hardy`.

    Feel free to contact me if you have a private plugin request!

    My Steam Profile | Discord: Hardy`#3792
    stephen473 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 04:41.


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