Raised This Month: $ Target: $400
 0% 

[Any] KicknMessage


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Cep}|{
Member
Join Date: Nov 2009
Plugin ID:
2428
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Kick player after connected or join team with a custom message.
    Old 07-06-2011 , 00:16   [Any] KicknMessage
    Reply With Quote #1

    KicknMessage

    Description:

    Kick player after connected or join team with a custom message.
    (For server maintenance etc...)

    Cvars:

    sm_kicknmessage_version - Plugin version
    sm_kicknmessage_mode - Kick after: 0 - Connected, 1 - Join team. Default: "0"
    sm_kicknmessage_im - Admins immune. 1 - On, 0 - Off. Default: "1" (req. ADMFLAG_RESERVATION)
    sm_kicknmessage_text - Message for player. Default: "Message to kick"

    Installation:

    Upload the plugin in the 'addons/sourcemod/plugins/' folder and run command in console "sm plugins load kicknmessage" or change map or restart server.
    Attached Files
    File Type: sp Get Plugin or Get Source (kicknmessage.sp - 1274 views - 1.9 KB)
    __________________

    Last edited by Cep}|{; 07-07-2011 at 06:04. Reason: Update
    Cep}|{ is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 07-06-2011 , 11:12   Re: [Any] KicknMessage
    Reply With Quote #2

    Can you explain this better? I don't get the point of it, nor what kind of "server maintenance" this applies to.

    Thraka is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 07-06-2011 , 11:13   Re: [Any] KicknMessage
    Reply With Quote #3

    Quote:
    Originally Posted by Thraka View Post
    Can you explain this better? I don't get the point of it, nor what kind of "server maintenance" this applies to.

    i guess this kicks the players with a message like "This server is under maintenance" or "This server is dying" etc etc...
    i'm not sure tho
    napalm00 is offline
    Cep}|{
    Member
    Join Date: Nov 2009
    Old 07-06-2011 , 11:16   Re: [Any] KicknMessage
    Reply With Quote #4

    e.g. adjustment plugins settings, testing new plugins-maps, etc...
    __________________

    Last edited by Cep}|{; 07-06-2011 at 12:54.
    Cep}|{ is offline
    Thraka
    AlliedModders Donor
    Join Date: Aug 2005
    Old 07-06-2011 , 11:52   Re: [Any] KicknMessage
    Reply With Quote #5

    AHHHHH got it.
    Thraka is offline
    bobthebuilder
    SourceMod Donor
    Join Date: Dec 2010
    Location: Randers/Denmark/Earth
    Old 07-06-2011 , 21:44   Re: [Any] KicknMessage
    Reply With Quote #6

    you write that admins can be immune and i understand that, i have a question tho, what flag do the admin need to have for the imunnity? could you maby add a cvar to set the flag? sorry for my bad english, hope you understood me
    bobthebuilder is offline
    Send a message via Skype™ to bobthebuilder
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 07-07-2011 , 02:29   Re: [Any] KicknMessage
    Reply With Quote #7

    About your code...

    Code:
    bool:IsAdmin(client)
    {
        [...]
    
        if(admin == INVALID_ADMIN_ID)
            return true;
    
        return true;
    }
    Watch 5 last lines Cep}|{... Your code is incorrect. Any player will be detected as admin.

    Also :

    Code:
    if(!IsClientConnected(client) || !IsClientInGame(client) [...]
    will do the exact same thing as the following :
    Code:
    if(!IsClientInGame(client) [...]
    Your code is redundant. The thing is : if your client needs to be connected and to be in game, only being ingame will do the job, since someone ingame must be connected; and you don't need to validate that the player is connected; as said in http://docs.sourcemod.net/api/ under "usage" :
    Quote:
    client Player index (index does not have to be connected)
    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Cep}|{
    Member
    Join Date: Nov 2009
    Old 07-07-2011 , 06:04   Re: [Any] KicknMessage
    Reply With Quote #8

    Ohh...
    Fixed & update first post.
    __________________
    Cep}|{ is offline
    94mtn94
    New Member
    Join Date: Apr 2017
    Old 04-09-2017 , 01:51   Need help w/ .sp plugin
    Reply With Quote #9

    hey, this plugin can't compilation: https://forums.alliedmods.net/showthread.php?p=1504663
    error:
    Code:
    groups/sourcemod/upload_tmp/text0R6VAy.sp(37) : warning 213: tag mismatch
    /groups/sourcemod/upload_tmp/text0R6VAy.sp(39) : warning 213: tag mismatch
    /groups/sourcemod/upload_tmp/text0R6VAy.sp(41) : warning 213: tag mismatch
    /groups/sourcemod/upload_tmp/text0R6VAy.sp(34) : error 180: function return type differs from prototype. expected 'void', but got 'int'
    Or give link on autokick e.t.c
    94mtn94 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 08:19.


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