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

Simple Loosing Team Slayer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sEbbo
Member
Join Date: May 2010
Plugin ID:
1864
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin will slay the surviving players in the loosing team.
    Unapprover:
    Reason for Unapproving:
    https://forums.alliedmods.net/showthread.php?p=1608925#post1608925
    Old 08-06-2010 , 20:09   Simple Loosing Team Slayer
    Reply With Quote #1

    Admin may remove this plugin now.
    Attached Files
    File Type: sp Get Plugin or Get Source (SimpleLoosingTeamSlayer.sp - 653 views - 2.8 KB)

    Last edited by sEbbo; 09-07-2012 at 07:23. Reason: Admin may remove this plugin now.
    sEbbo is offline
    Mister_Magotchi
    SourceMod Donor
    Join Date: Dec 2006
    Location: Nampa, Idaho
    Old 01-10-2011 , 01:04   Re: Simple Loosing Team Slayer
    Reply With Quote #2

    Quote:
    Originally Posted by sEbbo View Post
    My version doesn't have any cvar's...
    Not true.

    Code:
    public OnMapStart()
    {
    	target_bombed = CreateConVar("target_bombed", "CT slayed for failing their objective.", "When the bomb detonate.");
    	target_saved = CreateConVar("target_saved", "T slayed for failing their objective.", "When the bomb dont get planted");
    	bomb_defused = CreateConVar("bomb_defused", "T slayed for failing their objective.!", "When the bomb is defused");
    	all_hostages_rescued = CreateConVar("all_hostages_rescued", "T slayed for failing their objective.", "When all hostages are rescued");
    	hostages_not_rescued = CreateConVar("hostages_not_rescued", "CT slayed for failing their objective.", "When hostages are NOT rescued");
    }
    Mister_Magotchi is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 01-10-2011 , 05:10   Re: Simple Loosing Team Slayer
    Reply With Quote #3

    lol
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 01-12-2011 , 11:26   Re: Simple Loosing Team Slayer
    Reply With Quote #4

    Quote:
    Originally Posted by sEbbo View Post
    ...
    Credits
    • sEbbo - For the idea and some coding.
    • Lindgren - Coding almost everything.
    Funny
    Bacardi is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 12-06-2011 , 23:30   Re: Simple Loosing Team Slayer
    Reply With Quote #5

    This won't be approved because:
    • CreateConVar should be used in OnPluginStart, not OnMapStart.
    • Lines 35-40 serve no purpose whatsoever.
    • GetMaxClients shouldn't be called inside a loop, you'd only need to check the value once. In fact you should just use MaxClients instead of calling GetMaxClients at all.
    • The stack of ifs in Delayed_Slay should be else ifs or ideally a switch since "param" can't equal more then one value at a time.
    • GetMaxClients again on line 84.
    • Health check should be replaced with IsPlayerAlive.
    • FakeClientCommand should be replaced with ForcePlayerSuicide.
    __________________

    Last edited by DarthNinja; 12-06-2011 at 23:33.
    DarthNinja 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 03:20.


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