Raised This Month: $52 Target: $400
 13% 

Baited Rebellers


Post New Thread Reply   
 
Thread Tools Display Modes
Author
hamstring
New Member
Join Date: Sep 2017
Plugin ID:
5988
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows admin to remove a rebels status and gun in the event that the gun they picked up was baited.
    Old 01-13-2018 , 00:12   Baited Rebellers
    Reply With Quote #1

    Hi everyone, this is my first public release of a plugin

    This plugin allows admins to use the command sm_baited (or /baited in chat) to remove a players gun and rebel status in the event that the gun they picked up was baited.

    Requirements:
    Needs sm_hosties

    Usage:
    sm_baited <name of player>


    Thanks to a few people on the SourceMod Discord for babysitting me thru making this
    Attached Files
    File Type: smx baited.smx (5.3 KB, 144 views)
    File Type: sp Get Plugin or Get Source (baited.sp - 164 views - 1.4 KB)

    Last edited by hamstring; 01-13-2018 at 00:13.
    hamstring is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 01-13-2018 , 00:25   Re: Baited Rebellers
    Reply With Quote #2

    Congratulations on your first plugin post, here's some pointers to keep your plugin away from the unapproved section.

    PHP Code:
    if (true
    is an expression that should never be used. You can remove that if statement entirely without having any effect on your code. In fact, the compiler even tells you it's redundant.
    Code:
    warning 206: redundant test: constant expression is non-zero
    Also, instead of looping trying to find matching player names use our helpful FindTarget function which should handle targeting for you.

    Last thing, fill out your descriptions!

    Best of luck, if you have any questions I'll be on the SourceMod discord.

    Last edited by headline; 01-13-2018 at 00:30.
    headline is offline
    Reply


    Thread Tools
    Display Modes

    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 07:08.


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