Raised This Month: $ Target: $400
 0% 

Force Round End


Post New Thread Reply   
 
Thread Tools Display Modes
`666
AlliedModders Donor
Join Date: Jan 2006
Old 07-07-2007 , 06:07   Re: Force Round End
Reply With Quote #31

Quote:
Originally Posted by Alka View Post
*Small Update*
@Lee & `666 - I've added cvar's !
Thanks, add this plugin as soon as i able to play cs (pc broken)
`666 is offline
dishbemarkxp
Member
Join Date: May 2007
Location: by reading this, your ba
Old 07-07-2007 , 11:00   Re: Force Round End
Reply With Quote #32

i like the use of

Quote:
public check_map()
{
for (new a = 0; a < sizeof ents_list; a++)
{
if (engfunc(EngFunc_FindEntityByString, -1, "classname", ents_list[a]))
{
pause("a");
__________________
+ KARMA IF I HELPED d:)
iLLiCENT EViNE PROZACS ARE BENEFICIAL FOR YOU
dishbemarkxp is offline
Send a message via AIM to dishbemarkxp
Cheef
Junior Member
Join Date: Jul 2007
Old 07-08-2007 , 02:27   Re: Force Round End
Reply With Quote #33

Sorry for posting stupid questions, figured it out myself. Gr8 plugin Alka tnx
Cheef is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 07-30-2007 , 16:51   Re: Force Round End
Reply With Quote #34

Hey Alka, can you make that when the round ends, instead of killing everyone, the Terrorists will win?
__________________

Last edited by hugz`; 07-30-2007 at 17:36.
hugz` is offline
Send a message via AIM to hugz`
Dark Killer
Senior Member
Join Date: May 2005
Location: Kowloon, Hong Kong
Old 08-02-2007 , 08:23   Re: Force Round End
Reply With Quote #35

Hello Alka,

Thank you for your great plugin. Thank you very much!

Please help me

I want to make some explode effects (also sound using EMIT_SOUND) when players are killed.

Please help me, because I don't know how to do.

Thank you

Karma +
__________________
Dark Killer is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-02-2007 , 08:35   Re: Force Round End
Reply With Quote #36

Post in 'Scripting Help' section! ;) i will help you.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
nr1lolz
Junior Member
Join Date: Sep 2007
Location: Sweden
Old 09-06-2007 , 07:11   Re: Force Round End
Reply With Quote #37

Hey nice plugin ^^

But can you make so it will only slay a team.
so the other team will win when the timer gets to 0.

a cvar like this maby
amx_fre_slay_team 1/3. 1 - slay's all. 2 - slay's ct only. 3 - slay's t only. ???
nr1lolz is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-07-2007 , 08:11   Re: Force Round End
Reply With Quote #38

Well I can't say what Alka would think, but I've added that change for you.

NOTE: The Slay T / Slay CT are INVERTED.
This was to make my code a bit more efficient.

(1 = slay all, 2 = slay T's, 3 = slay CT's )

Changes:
"Header" ( i.e. outside of a function)
Code:
new g_slay_players

"plugin_init"
Code:
    g_slay_players = register_cvar("amx_fre_sp","1");


"force_end"
Replace:
Code:
    for(new i = 0; i < num; i++)     {          x = g_players[i];         user_silentkill(x);         cs_set_user_deaths(x, get_user_deaths(x) - 1);     }
With:
Code:
    new slay_players = get_pcvar_num(g_slay_players)     for(new i = 0; i < num; i++)     {         x = g_players[i];         if ( slay_players == 1 )         {             user_silentkill(x);             cs_set_user_deaths(x, get_user_deaths(x) - 1);         }         else if ( get_user_team(x) == slay_players - 1 )         {             user_silentkill(x);             cs_set_user_deaths(x, get_user_deaths(x) - 1);         }     }


But I'm none too hot on the subject of editing other people's still-supported plugins ... if this is a massive faux-pas someone slap me.

EDIT: Oh, I make no claims to any of that edited code, Alka can freely include it and not cite me as a "credit" if he wants, or [get someone to] delete my post.
Attached Files
File Type: sma Get Plugin or Get Source (force_round_end.sma - 798 views - 4.3 KB)

Last edited by purple_pixie; 09-07-2007 at 08:23.
purple_pixie is offline
ajzk
Junior Member
Join Date: Apr 2007
Old 12-20-2007 , 09:06   Re: Force Round End
Reply With Quote #39

Is it not posible to get this plugin to not slay any team, just go to a new round? like amx_fre_sp 4 (don't slay anyone) or something?
ajzk is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 12-29-2007 , 15:56   Re: Force Round End
Reply With Quote #40

Is it possible to do something like this:
First detect, when round timer is 0.00 (or detect mp_roundtime).
Then force it to make #CTs_Win or #Target_Saved event (like creating an objective in a map, that doesn't have any)?
hleV 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 02:05.


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