Raised This Month: $95 Target: $400
 23% 

Jarate On Death


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mentlegen
Junior Member
Join Date: Oct 2011
Plugin ID:
2643
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Aplies Jarate effect on death!
    Old 11-08-2011 , 11:22   Jarate On Death
    Reply With Quote #1

    Aplies Jarate effect to players in small range when somebody dies.
    sm_jarateondeath <part of target's name> - apply / switch off jarate death!
    Attached Files
    File Type: sp Get Plugin or Get Source (JarateOnDeath.sp - 515 views - 1.6 KB)
    Mentlegen is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-09-2011 , 01:44   Re: Jarate On Death
    Reply With Quote #2

    A few issues with your plugin if you want it approved:
    1. in your "has" global, use the MAXPLAYERS define, don't hardcode the value at 33.
    2. You don't need to use GetClientName. Please review This Page.
    3. You should use ProcessTargetString, not FindTarget. Please review This Page.
    4. Don't use GetMaxClients(), just use the MaxClients define.

    Some extra nitpicks:
    1. You might want to add a version cvar so you can see what servers run your plugin.
    2. You can leave the plugin description and url blank rather then putting filler there.
    3. Your if statement on lines 34/35 is kind of odd.
    4. You should emit the sound from a location otherwise it will play to every player in the server even if they're nowhere around. See EmitSoundToAll for info.
    __________________
    DarthNinja is offline
    Mentlegen
    Junior Member
    Join Date: Oct 2011
    Old 11-10-2011 , 13:22   Re: Jarate On Death
    Reply With Quote #3

    I know i have some errors but use PRIVATE MESSAGES IDIOT!
    sorry
    __________________
    sorry for my bad english
    lololo
    Mentlegen is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 11-10-2011 , 13:55   Re: Jarate On Death
    Reply With Quote #4

    There's no reason to use private messages; at least someone was kind enough to tell you the faults with the plugin...
    __________________
    thetwistedpanda is offline
    Mentlegen
    Junior Member
    Join Date: Oct 2011
    Old 11-10-2011 , 15:04   Re: Jarate On Death
    Reply With Quote #5

    Quote:
    Originally Posted by thetwistedpanda View Post
    There's no reason to use private messages; at least someone was kind enough to tell you the faults with the plugin...
    Ogh sorry, forgot, thank you, but can you tell me about #pragma semicolon 1.
    What is it.
    __________________
    sorry for my bad english
    lololo
    Mentlegen is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 11-10-2011 , 15:23   Re: Jarate On Death
    Reply With Quote #6

    Quote:
    Originally Posted by Mentlegen View Post
    I know i have some errors but use PRIVATE MESSAGES IDIOT!
    sorry

    LMFAO. You call the guy that decides if your plugin is accepted an IDIOT?. How ironic.
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    McFlurry
    Veteran Member
    Join Date: Mar 2010
    Location: RemoveEdict(0);
    Old 11-10-2011 , 16:01   Re: Jarate On Death
    Reply With Quote #7

    Code:
    #pragma semicolon value
    If value is zero, no semicolon is required to end a statement
    if that statement is last on a line. Semicolons are still needed
    to separate multiple statements on the same line.
    When semicolons are optional (the default), a postfix operator
    (one of ++ and --) may not be the first token on a
    line, as they will be interpreted as prefix operators.
    Straight from The Pawn Language Guide
    __________________
    McFlurry is offline
    Send a message via Skype™ to McFlurry
    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 20:03.


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