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

[CSGO] Chicken Colors 1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TonyBaretta
Senior Member
Join Date: Mar 2014
Location: nope.avi
Plugin ID:
5441
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Chickens Colors are Black , Gold , Rainbow (change color)
    Old 12-08-2016 , 05:33   [CSGO] Chicken Colors 1.0
    Reply With Quote #1

    [CSGO] Chicken Colors



    Description :

    This plugin give random color(s) to chickens, there are 3 type of chicken Black , Gold , Rainbow ( change colors). Work fine with others chickens plugins and zombie chicken.

    Installation :
    Copy chicken_colors.smx into addons/sourcemod/plugins and restart the server or map

    Changelogs :
    1.0 initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (chicken_colors.sp - 1042 views - 1.7 KB)
    __________________

    Last edited by TonyBaretta; 12-08-2016 at 12:34.
    TonyBaretta is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-08-2016 , 10:04   Re: [CSGO] Chicken Colors 1.0
    Reply With Quote #2

    Ah, let's hope the map doesn't create too many chickens or there would be a timer/handle mess.
    You should pass the entities by reference through the timer and validate them before using the entity. A chicken can be killed and a new entity spawned (reusing the chicken index) within the 0.1 time frame, causing unforeseen errors.
    Also you are saving the timers within the same Handle, so really most of the timers are not being deleted, leaving open running handles. You could prevent this by just returning Plugin_Stop if the entity no longer exists.
    My suggestion is to not use Timers, but to use Entity outputs instead.
    Edit: added example of HookSingleEntityOutput
    Attached Files
    File Type: sp Get Plugin or Get Source (chicken_colors.sp - 737 views - 1.8 KB)

    Last edited by Mitchell; 12-08-2016 at 10:11.
    Mitchell is offline
    TonyBaretta
    Senior Member
    Join Date: Mar 2014
    Location: nope.avi
    Old 12-08-2016 , 11:59   Re: [CSGO] Chicken Colors 1.1
    Reply With Quote #3

    tnx for the tip mitchell , i never tried that way so ty
    edit : but your way change the color 1 time only. better use the old version
    __________________

    Last edited by TonyBaretta; 12-08-2016 at 12:38.
    TonyBaretta 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 14:04.


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