Raised This Month: $ Target: $400
 0% 

Hostage Maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-09-2017 , 17:31   Re: Hostage Maps
Reply With Quote #1

make me right if im wroung i wait for ur answer mate,
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <reapi>


#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "DeXTeR"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("round_end"2"1=Round_End")
    
    new 
iMap_Name[32];
    
get_mapname(iMap_Namecharsmax(iMap_Name));

    if(
containi(iMap_Name"cs_") != -|| rg_find_ent_by_class(0"func_hostage_rescue"true))
        
pause("d");
}

public 
round_end()
{
    switch(
random_num(1,2))
    {
        case 
1rg_round_end(0.1WINSTATUS_CTSROUND_BOMB_DEFUSED);
        case 
2rg_round_end(0.1WINSTATUS_CTSROUND_BOMB_DEFUSED);
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
*/ 
__________________

Last edited by D3XT3R; 10-09-2017 at 17:33.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 10-09-2017 , 18:44   Re: Hostage Maps
Reply With Quote #2

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

public plugin_init()
{
    
RegisterHookChain(RG_RoundEnd"RoundEnd")
}

public 
RoundEnd(WinStatus:statusScenarioEventEndRound:eventFloat:tmDelay)
{
    if (
event == ROUND_HOSTAGE_NOT_RESCUED)
    {
        
rg_update_teamscores(.iCtsWins 1)
        
rg_round_end(tmDelayWINSTATUS_CTSROUND_CTS_WIN)
        
SetHookChainReturn(ATYPE_INTEGERfalse)
        return 
HC_SUPERCEDE
    
}
    
    return 
HC_CONTINUE

thanks to slLent
__________________

Last edited by WaLkMaN; 10-09-2017 at 18:48.
WaLkMaN is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-10-2017 , 02:18   Re: Hostage Maps
Reply With Quote #3

Quote:
Originally Posted by WaLkMaN View Post
PHP Code:
#include <amxmodx>
#include <reapi>

public plugin_init()
{
    
RegisterHookChain(RG_RoundEnd"RoundEnd")
}

public 
RoundEnd(WinStatus:statusScenarioEventEndRound:eventFloat:tmDelay)
{
    if (
event == ROUND_HOSTAGE_NOT_RESCUED)
    {
        
rg_update_teamscores(.iCtsWins 1)
        
rg_round_end(tmDelayWINSTATUS_CTSROUND_CTS_WIN)
        
SetHookChainReturn(ATYPE_INTEGERfalse)
        return 
HC_SUPERCEDE
    
}
    
    return 
HC_CONTINUE

thanks to slLent
ty
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
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 10:00.


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