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

[CSS].CS Online kill message,For CS Source,overlays


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Martin
BANNED
Join Date: Mar 2009
Location: China
Plugin ID:
2175
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    When a client kill other players,is will show killed count and killed ways several second by screenoverlays,and play voice message.like CSOL.
    Unapprover:
    Reason for Unapproving:
    Attachments corrupt, author banned
    Old 01-16-2011 , 10:14   [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #1

    When a client kill other players,is will show killed count and killed ways several second by screenoverlays,and play voice message,like CSOL.

    I am second post plugin in this forum.
    I am familiar with AMXX Plugins of CS1.6 ,and I'd love to make the weapon plugins.But later I felt boring.I found the Image Quality is much better in Source Engine,so I begin to study making SourceMOD Plugins.I hava much problem in making Source Plugins.I hope some master-hands could teach me,and help me solve the problem.Otherwise,my English is not good,is soso, everybody don't be strange with me.Hoho.

    Kill_1 to Kill_4,and kill_headshot,kill_knife,Kill_grenade.

    Please watch this video and look at pictures:

    http://www.youtube.com/watch?v=jzv9zVfXwrE


    Click image for larger version

Name:	kill_1.jpg
Views:	4208
Size:	57.4 KB
ID:	80803

    Click image for larger version

Name:	kill_2-3.jpg
Views:	3892
Size:	20.9 KB
ID:	90401

    Click image for larger version

Name:	kill_4.jpg
Views:	5489
Size:	58.5 KB
ID:	80804

    Click image for larger version

Name:	kill_headshot.jpg
Views:	5103
Size:	62.4 KB
ID:	80806

    Click image for larger version

Name:	kill_knife.jpg
Views:	5051
Size:	61.1 KB
ID:	80807

    Click image for larger version

Name:	kill_gre.jpg
Views:	5484
Size:	56.7 KB
ID:	80805


    I hope everybody could support me~!!
    Attached Files
    File Type: zip CSOL_killmessage For CSS.zip (323.9 KB, 4429 views)
    File Type: inc entity_prop_stocks.inc (20.9 KB, 1706 views)
    File Type: sp Get Plugin or Get Source (killmessage_overlays.sp - 6 views - 4.6 KB)

    Last edited by Martin; 08-11-2011 at 09:44.
    Martin is offline
    Send a message via ICQ to Martin
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-16-2011 , 12:10   Re: CS Online kill message,For CS Source,overlays
    Reply With Quote #2

    Hi, I like the pics a lot! Nice work.

    You should mention this plugin enables sv_cheats 1... I assume because you use ClientCommand("r_screenoverlay \%s", blah), (not sure if it is a cheat command) but if so you can probably strip the cheat flags and execute, something like this?

    Also you should probably prefix the title with [CSS].

    PHP Code:
    new String:overlays_file[64]; 
    You should use decl instead of new on strings if you are filling the string with contents and not expecting them to be empty.

    PHP Code:
    public ShowKillMessage(client,type
    No need for this to be public.
    __________________
    Silvers is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 01-17-2011 , 16:07   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #3

    Mate this is bloody brilliant!

    But I agree, get rid of the sv_cheats, it's just waiting for abuse ;)
    Black Haze is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 01-18-2011 , 00:16   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #4

    Quote:
    Originally Posted by Black Haze View Post
    Mate this is bloody brilliant!

    But I agree, get rid of the sv_cheats, it's just waiting for abuse ;)
    Agreed as much as I think this is awesome theres no way in the world I'd allow sv_cheats on any server of mine. GJ though.
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 01-18-2011 , 00:18   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #5

    You can use r_screenoverlay without sv_cheats afaik.
    __________________
    thetwistedpanda is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 01-18-2011 , 00:35   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #6

    Quote:
    Originally Posted by thetwistedpanda View Post
    You can use r_screenoverlay without sv_cheats afaik.

    YAY!
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Black Haze
    BANNED
    Join Date: Sep 2008
    Location: Hamsterdam
    Old 01-18-2011 , 08:39   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #7

    Quote:
    Originally Posted by thetwistedpanda View Post
    You can use r_screenoverlay without sv_cheats afaik.
    Thanks Panda!

    Also, this'll make an excellent replacement for those chatbox cluttering HLStatsX messages.
    Black Haze is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 01-18-2011 , 10:10   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #8

    Awesome! I can't wait to try this out once it's fixed up.

    Also, just as an example:
    PHP Code:
        if(g_killCount[attacker] == 1)
        {
            if(
    StrEqual(weapon,"hegrenade"))
                
    ShowKillMessage(attacker,kill_grenade);
            else if(
    StrEqual(weapon,"knife"))
                
    ShowKillMessage(attacker,kill_knife);
            else if(
    headshot)
                
    ShowKillMessage(attacker,kill_headshot);
            else
                
    ShowKillMessage(attacker,kill_1);
        }
        else if(
    g_killCount[attacker] == 2)
        {
            
    ShowKillMessage(attacker,kill_2);
        }
        else if(
    g_killCount[attacker] == 3)
        {
            
    ShowKillMessage(attacker,kill_3);
        }
        else if(
    g_killCount[attacker] == 4)
        {
            
    ShowKillMessage(attacker,kill_4);
        } 
    Could be:
    PHP Code:
        new AttackerKillCount g_killCount[attacker];
        switch(
    AttackerKillCount)
        {
            case 
    1:
            {
                if(
    StrEqual(weapon"hegrenade"))
                {
                    
    ShowKillMessage(attackerkill_grenade);
                }
                
                else if(
    StrEqual(weapon,"knife"))
                {
                    
    ShowKillMessage(attackerkill_knife);
                }
                
                else if(
    headshot)
                {
                    
    ShowKillMessage(attackerkill_headshot);
                }
                
                else
                {
                    
    ShowKillMessage(attackerkill_1);
                }
            }
            
            case 
    2:
            {
                
    ShowKillMessage(attackerkill_2);
            }
            
            case 
    3:
            {
                
    ShowKillMessage(attackerkill_3);
            }
            
            case 
    4:
            {
                
    ShowKillMessage(attackerkill_4);
            }
        } 
    Just so you're not reindexing the array (no idea if this is the proper term, sorry if it isn't) every time, caching is nice
    KyleS is offline
    siangc
    Senior Member
    Join Date: Mar 2010
    Old 01-18-2011 , 10:20   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #9

    I tried removing sv_cheats from it, but it didn't work and I got massive spam with this. Maybe I messed up somehow, I hope somebody can make it work without sv_cheats

    L 01/18/2011 - 15:10:13: [SM] Native "IsPlayerAlive" reported: Invalid client index 0
    L 01/18/2011 - 15:10:13: [SM] Displaying call stack trace for plugin "killmessage_overlays.smx":
    L 01/18/2011 - 15:10:13: [SM] [0] Line 138, killmessage_overlays.sp::task_Countdown()
    __________________
    siangc is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 01-18-2011 , 12:08   Re: [CSS].CS Online kill message,For CS Source,overlays
    Reply With Quote #10

    Woo, errors! , but it should run fine without sv_cheats, I'm using the same for my RTD without issues.
    __________________
    thetwistedpanda 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 07:10.


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