Raised This Month: $32 Target: $400
 8% 

Late Spawn Manager ( 22/12/2013 )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related        Approver:   ConnorMcLeod (74)
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-23-2013 , 21:01   Late Spawn Manager ( 22/12/2013 )
Reply With Quote #1

Late Spawn Manager
v1.0.7
by Blizzard_87


ThreadStart
This Plugin Simply Blocks Late Joining Player From Spawning After Freeze Time.
Possibly Good For Stopping Retrying Players Getting Back In Same Round.

You can either set this plugin enabled or disabled via cvar.
lsm_mode "1" - Enables Plugin | "0" - Disables Plugin ( Setting Changes On Map Change Or Server Restart )
meTaLiCroSS - some code
ConnorMcLeod - code snippet
Change Log

_____________________________________________

Servers Using This Plugin:
File Download Count
170+ Current

ThreadEnd
.
Attached Files
File Type: sma Get Plugin or Get Source (Late-Spawn-Manager.sma - 1713 views - 3.6 KB)
__________________

Last edited by Blizzard_87; 05-03-2015 at 09:32. Reason: Updated v1.0.7
Blizzard_87 is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 05-23-2013 , 23:03   Re: Simple Late Spawn Blocker
Reply With Quote #2

Since you are only setting g_bBlockLateSpawn on only two areas, better to do:
PHP Code:
public Event_RoundStart() {
    if( !
g_bBlockLateSpawn g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    if( 
g_bBlockLateSpawn g_bBlockLateSpawn false;



PHP Code:
public Event_RoundStart() {
    
g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    
g_bBlockLateSpawn false;

__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-23-2013 , 23:44   Re: Simple Late Spawn Blocker
Reply With Quote #3

Quote:
Originally Posted by tonykaram1993 View Post
Since you are only setting g_bBlockLateSpawn on only two areas, better to do:
PHP Code:
public Event_RoundStart() {
    if( !
g_bBlockLateSpawn g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    if( 
g_bBlockLateSpawn g_bBlockLateSpawn false;



PHP Code:
public Event_RoundStart() {
    
g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    
g_bBlockLateSpawn false;

thanks. updated.
__________________
Blizzard_87 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-24-2013 , 11:43   Re: Simple Late Spawn Blocker
Reply With Quote #4

Nice plugin, thanks.
__________________
Kia is offline
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 05-24-2013 , 12:54   Re: Simple Late Spawn Blocker
Reply With Quote #5

This plugin is already exist https://forums.alliedmods.net/showthread.php?t=103733
__________________
.:My Plugins:.
WordGame

If you want anything add me to skype: hlias.zaxos or on steam Larisaios
hLiaS is offline
Send a message via Skype™ to hLiaS
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-24-2013 , 13:28   Re: Simple Late Spawn Blocker
Reply With Quote #6

But it's unapproved.
__________________
Kia is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-24-2013 , 13:46   Re: Simple Late Spawn Blocker
Reply With Quote #7

Quote:
Originally Posted by tonykaram1993 View Post
Since you are only setting g_bBlockLateSpawn on only two areas, better to do:
PHP Code:
public Event_RoundStart() {
    if( !
g_bBlockLateSpawn g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    if( 
g_bBlockLateSpawn g_bBlockLateSpawn false;



PHP Code:
public Event_RoundStart() {
    
g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    
g_bBlockLateSpawn false;

Or not
__________________
Jhob94 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 05-24-2013 , 13:49   Re: Simple Late Spawn Blocker
Reply With Quote #8

Didn't check the code yet, but does this add to their death on the scoreboard? Or would it not?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
President
Member
Join Date: May 2013
Old 05-24-2013 , 16:04   Re: Simple Late Spawn Blocker
Reply With Quote #9

Yes. When the death event is called, it always add a Death to the victim. However, you can always reduce the Deaths by 1.

Last edited by President; 05-24-2013 at 16:11.
President is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-24-2013 , 16:16   Re: Simple Late Spawn Blocker
Reply With Quote #10

Quote:
Originally Posted by Kia View Post
Nice plugin, thanks.
Thanks

Quote:
Originally Posted by DruGzOG View Post
Didn't check the code yet, but does this add to their death on the scoreboard? Or would it not?
Quote:
Originally Posted by President View Post
Yes. When the death event is called, it always add a Death to the victim. However, you can always reduce the Deaths by 1.
Thanks for reminding me I'll fix with next update.
__________________

Last edited by Blizzard_87; 05-24-2013 at 17:45.
Blizzard_87 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 23:00.


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