Raised This Month: $ Target: $400
 0% 

Slay CTs at end of round.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2007 , 06:00   Re: Slay CTs at end of round.
Reply With Quote #1

In fact you asked only for "round draw", but i guess you want for every round ends, so try this one.
Code:
#include <amxmodx> public plugin_init() {     register_plugin( "Slay CT", "1.0", "Amxx Community" );     register_logevent("eRoundEnd", 2, "1=round_end"); } public eRoundEnd() {     new     tPlayers[32],     tNum; //  - - - - - - - - - - -     get_players( tPlayers, tNum, "ae", "TERRORIST" );     if( !tNum )         return; //  - - - - - - - - - - -     new     ctPlayers[32],     ctNum; //  - - - - - - - - - - -     get_players( ctPlayers, ctNum, "ae", "CT" );         for( new i; i < ctNum; i++ )         user_silentkill( ctPlayers[i] ); }

Last edited by ConnorMcLeod; 09-27-2007 at 11:46.
ConnorMcLeod is offline
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-27-2007 , 10:14   Re: Slay CTs at end of round.
Reply With Quote #2

/home/groups/amxmodx/tmp3/textnny03M.sma(2 : error 017: undefined symbol "usersilent_kill"

That's the error I get when I try to compile urs connorr. =/
kewkies602 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2007 , 10:33   Re: Slay CTs at end of round.
Reply With Quote #3

Ops.

Replace usersilent_kill with user_silentkill
ConnorMcLeod is offline
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-27-2007 , 11:35   Re: Slay CTs at end of round.
Reply With Quote #4

For some reason it didn't work...
kewkies602 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2007 , 11:47   Re: Slay CTs at end of round.
Reply With Quote #5

I'm not sure i understand, "didn't" is not the same as "don't".
ConnorMcLeod is offline
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-27-2007 , 12:04   Re: Slay CTs at end of round.
Reply With Quote #6

It doesn't work... I was using didn't for past tense because I tried it...
kewkies602 is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-27-2007 , 12:33   Re: Slay CTs at end of round.
Reply With Quote #7

But saying it didn't work implies it does now.
purple_pixie is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-27-2007 , 12:43   Re: Slay CTs at end of round.
Reply With Quote #8

Sorry i have no clue why it's not working.

What it should do :

At every round ends :

- if there are alive terrorists left, kill all CT's (i guess it's a round draw in hide & seek)
- else if all terrorists are dead, do nothing.
ConnorMcLeod is offline
kewkies602
Junior Member
Join Date: Aug 2007
Old 09-27-2007 , 13:08   Re: Slay CTs at end of round.
Reply With Quote #9

Ya, that's exactly what I would like it to do. But for some reason it didn't do anything...
kewkies602 is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 09-27-2007 , 14:09   Re: Slay CTs at end of round.
Reply With Quote #10

okay 1) Try mine too. 2) make sure your actually adding the plugin.
Edit Plugins.ini
Upload it to the Plugins Folder
AND
Change map!
Styles is offline
Send a message via AIM to Styles
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