Raised This Month: $ Target: $400
 0% 

Slay CTs at end of round.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-25-2007 , 14:40   Slay CTs at end of round.
Reply With Quote #1

I was hoping someone could make a plugin for my Hide N Seek server. I want it like force_end_round.amxx, but I want it to just slay the CTs after each round draw.

It would be greatly appreciated!
kewkies602 is offline
l33tnewb
BANNED
Join Date: Sep 2007
Old 09-25-2007 , 14:44   Re: Slay CTs at end of round.
Reply With Quote #2

http://forums.alliedmods.net/showthr...slay+end+round
l33tnewb is offline
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-25-2007 , 15:26   Re: Slay CTs at end of round.
Reply With Quote #3

Ya, I understand that. But I want one that slays JUST the CTs.
kewkies602 is offline
l33tnewb
BANNED
Join Date: Sep 2007
Old 09-25-2007 , 17:10   Re: Slay CTs at end of round.
Reply With Quote #4

ill think about doing it ok or if someone beats me to it
l33tnewb is offline
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-25-2007 , 18:07   Re: Slay CTs at end of round.
Reply With Quote #5

It would be greatly appreciated if u do make it for me!
kewkies602 is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-25-2007 , 23:37   Re: Slay CTs at end of round.
Reply With Quote #6

Lets get his plugin started. Heres what I have. I don't think it will work but you can give it a try. It was last min created.

PHP Code:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "Slay CT"
#define VERSION "1.0"
#define AUTHOR "Styles"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
/* 
    GHW Via aim for the event. 
    I haven't been around so im now restarting to code in pawn 
    */
    
register_event("SendAudio","round_end","a","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
}

public 
round_end()
{
    new 
player_num get_playersnum()
    new 
letsCount
    
    
while(letsCount player_num)
    {
        if(
is_user_alive(letsCount) && cs_get_user_team(letsCount) == CS_TEAM_CT)
        {
            
user_silentkill(letsCount)
            
letsCount++
        }
    }


Last edited by Styles; 09-27-2007 at 14:08.
Styles is offline
Send a message via AIM to Styles
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2007 , 04:31   Re: Slay CTs at end of round.
Reply With Quote #7

You register the event with the name "newround" and your function is "round_end", so it won't work.

You can also register round end like this :
register_logevent("eRoundEnd", 2, "1=round_end")

Have a look at this great tut :
http://forums.alliedmods.net/showthread.php?t=42159
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2007 , 05:26   Re: Slay CTs at end of round.
Reply With Quote #8

Code:
#include <amxmodx> public plugin_init() {     register_plugin( "Slay CT", "1.0", "Amxx Community" );     register_event( "SendAudio", "eRoundDraw", "a", "2=%!MRAD_rounddraw" ); } public eRoundDraw() {     new //  - - - - - - - - - - -         iPlayers[32],         iNum; //  - - - - - - - - - - -             get_players( iPlayers, iNum, "ae", "CT" );         for( new i; i < iNum; i++ )         user_silentkill( iPlayers[i] ); }
__________________
Arkshine is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-26-2007 , 13:20   Re: Slay CTs at end of round.
Reply With Quote #9

Yeah told you it was last min. I didn't even bother checking the funciton it was calling Mybad.

Thanks arkshine.
Styles is offline
Send a message via AIM to Styles
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-26-2007 , 23:25   Re: Slay CTs at end of round.
Reply With Quote #10

So do I copy arkshine's code or do I put it inside styles code?

*EDIT* I tested arkshine's contribute, but it didn't work... Please help.

Last edited by kewkies602; 09-26-2007 at 23:49.
kewkies602 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 09:27.


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