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

Round End If One Player Left


Post New Thread Reply   
 
Thread Tools Display Modes
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-15-2018 , 06:25   Re: Round End If One Player Left
Reply With Quote #11

did you just tested the code what i gived?
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
renegade924
Junior Member
Join Date: Mar 2018
Old 03-15-2018 , 08:46   Re: Round End If One Player Left
Reply With Quote #12

yes, but man, i want to merge three plugins, first one is the Terrorists Only, to have only one team on server, Free For All from Connor, and this, last one.
This plugin need to be like this

when in the terrorist team remains a single player, after killing the others, the round will end immediately, or you can put the time of the round to 0 and after the round restarts, I need this for a pubg mode
renegade924 is online now
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-15-2018 , 10:55   Re: Round End If One Player Left
Reply With Quote #13

Brother 1st thing : You should explain what you want .. Correctly ( English you used in description ; Makes different sense, which me and DJSoftero got wrong )

Now you are explaining it correctly and i will make it as soon as i get time

Last edited by instinctpt1; 03-15-2018 at 10:55.
instinctpt1 is offline
renegade924
Junior Member
Join Date: Mar 2018
Old 03-15-2018 , 14:14   Re: Round End If One Player Left
Reply With Quote #14

So, guys, I, on my server, use the "Terrorists only" plugin, that means there's only one team, the terrorist team, the terrorists can kill each other, until the last one, when it's only one alive, normal must be winner, right?
Well, the round is not over and the last terrorist is not a winner, so what I want from you:
I want a plug-in to check every second if there is only one terrorist alive and if is just a terrorist alive, then the round ends and he is a winner, like in PUBG, it's something like "Battle royale".
Well, I hope you understand what I meant, thank you in advance.

Last edited by renegade924; 03-15-2018 at 14:22.
renegade924 is online now
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 03-15-2018 , 14:22   Re: Round End If One Player Left
Reply With Quote #15

Are you using rehlds or regular hlds?
__________________
retired chump
DjSoftero is offline
Old 03-15-2018, 20:12
P4NDA_DG
This message has been deleted by P4NDA_DG. Reason: Wrong section :3
renegade924
Junior Member
Join Date: Mar 2018
Old 03-16-2018 , 04:37   Re: Round End If One Player Left
Reply With Quote #16

[STARTUP] Applying cs_rehlds-startup.tar.gz to working directory
From the server console.
renegade924 is online now
InteX01
Senior Member
Join Date: Jan 2017
Old 03-16-2018 , 07:06   Re: Round End If One Player Left
Reply With Quote #17

I think u want something like on jailbreak last request thing ??? 1 alive tt left can choose duel, but in your case... survive, Terrorist win, and new round.
InteX01 is offline
renegade924
Junior Member
Join Date: Mar 2018
Old 03-16-2018 , 08:45   Re: Round End If One Player Left
Reply With Quote #18

Yes, this is what I want.
renegade924 is online now
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 03-27-2018 , 17:29   Re: Round End If One Player Left
Reply With Quote #19

Install this plugin from arkshine => https://forums.alliedmods.net/showthread.php?p=1122356

and try the following

Code:
#include < amxmodx >
#include < round_terminator >

public plugin_init( )
{
    register_plugin( "Finish Round", "0.0.1", "Requested" );

    register_event( "DeathMsg", "OnClientDeath", "a" );
}

public OnClientDeath( )
{
    new iPlayers[ 32 ], iNum;
    get_players( iPlayers, iNum, "ae", "TERRORIST" );

    if( iNum == 1 ) // Only one player left
        TerminateRound( RoundEndType_TeamExtermination, TeamWinning_Terrorist );
}
__________________

Last edited by marcelowzd; 03-27-2018 at 17:31.
marcelowzd is offline
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 03-29-2018 , 11:05   Re: Round End If One Player Left
Reply With Quote #20

marcelowzd you can also force a round to end with ReAPI native (only if ReGameDLL_CS and ReAPI module are installed)

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

public plugin_init( )
{
    
register_plugin"Finish Round""0.0.1""Requested" );

    
register_event"DeathMsg""OnClientDeath""a" );
}

public 
OnClientDeath( )
{
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiNum"ae""TERRORIST" );

    if( 
iNum == // Only one player left
        
rg_round_end(5.0WINSTATUS_TERRORISTSROUND_TERRORISTS_WIN);

__________________
WaLkMaN 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 13:51.


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