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

Remaining CT = slay


Post New Thread Reply   
 
Thread Tools Display Modes
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2020 , 18:00   Re: Remaining CT = slay
Reply With Quote #31

Quote:
Originally Posted by DJEarthQuake View Post
This should take care of those with immunity if user_kill won't do it.
Code:
///user_kill( id ); fakedamage(id,"Last man standing. Oblivious to objective.",100.0,DMG_TIMEBASED);
user_kill() will handle it, I previously had it using the amx_slay command.
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-23-2020 , 21:16   Re: Remaining CT = slay
Reply With Quote #32

can you do this "Slay time wont start if round didnt last at least 91 seconds"
so after new round it needs to take 91 seconds to start plugin, i hope u understand
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2020 , 21:22   Re: Remaining CT = slay
Reply With Quote #33

Code updated, new cvar sct_rounddelayseconds
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-23-2020 , 21:37   Re: Remaining CT = slay
Reply With Quote #34

dont want to open another thread to spam.. can you do this(different plugin)

When TR get GUN(no grenades), only pistols,rifles,sniper,etc... they automaticly get removed from them.
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2020 , 21:43   Re: Remaining CT = slay
Reply With Quote #35

PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>

new const Version[] = "0.2";

#define MAX_PLAYERS 32

new const ALLOW_WEAPONS = ( << CSW_KNIFE ) | ( << CSW_DEAGLE ) | ( << CSW_FLASHBANG ) | ( << CSW_SMOKEGRENADE ) | ( << CSW_HEGRENADE );

public 
plugin_init() 
{
    
register_plugin"Block Weapons" Version "bugsy" );
    
    
RegisterHamHam_AddPlayerItem "player" "AddPlayerItem" );
}

public 
AddPlayerItemid iItemEntity )
{
    if ( ( 
cs_get_user_teamid ) == CS_TEAM_T ) && !( ALLOW_WEAPONS & ( << cs_get_weapon_idiItemEntity ) ) ) )    
    {
        
set_peviItemEntity pev_flags FL_KILLME );
        
SetHamReturnIntegerfalse );
        return 
HAM_SUPERCEDE
    }
    
    return 
HAM_IGNORED

__________________

Last edited by Bugsy; 05-24-2020 at 10:59.
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-23-2020 , 21:43   Re: Remaining CT = slay
Reply With Quote #36

Quote:
Originally Posted by Bugsy View Post
Code updated, new cvar sct_rounddelayseconds
now there is no hud or slay.. i was only alive and 90+ seconds passed. nothing happens
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2020 , 21:44   Re: Remaining CT = slay
Reply With Quote #37

A death has to happen after 90 seconds has passed, this triggers it.
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-23-2020 , 21:50   Re: Remaining CT = slay
Reply With Quote #38

Slay countdown should only be available if 90 seconds passes, but after 90+ seconds i was only left alive, and there was no countdown
Stefanos is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2020 , 21:52   Re: Remaining CT = slay
Reply With Quote #39

I just told you, the HUD and slay is triggered when a player dies. So it has to be 90 seconds into a round AND a death has to happen. I've already made a bunch of updates for you and you keep changing what you want.
__________________
Bugsy is offline
Stefanos
Senior Member
Join Date: May 2020
Old 05-23-2020 , 21:53   Re: Remaining CT = slay
Reply With Quote #40

Quote:
Originally Posted by Bugsy View Post
PHP Code:

#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>

new const Version[] = "0.1";

#define MAX_PLAYERS 32

new const ALLOW_WEAPONS = ( << CSW_FLASHBANG ) | ( << CSW_SMOKEGRENADE ) | ( << CSW_HEGRENADE );

public 
plugin_init() 
{
    
register_plugin"Block Weapons" Version "bugsy" );
    
    
RegisterHamHam_AddPlayerItem "player" "AddPlayerItem" );
}

public 
AddPlayerItemid iItemEntity )
{
    if ( !( 
ALLOW_WEAPONS & ( << cs_get_weapon_idiItemEntity ) ) ) )    
    {
        
set_peviItemEntity pev_flags FL_KILLME );
        
SetHamReturnIntegerfalse );
        return 
HAM_SUPERCEDE
    }
    
    return 
HAM_IGNORED

Add knife to allowed wepaons, and CT's now dont have anything xd.. should be only for TR
Stefanos 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 20:53.


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