Raised This Month: $ Target: $400
 0% 

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 - 1732 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
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-24-2013 , 13:46   Re: Simple Late Spawn Blocker
Reply With Quote #4

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
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 05-24-2013 , 21:47   Re: Simple Late Spawn Blocker
Reply With Quote #5

Quote:
Originally Posted by Jhob94 View Post
Or not
what the hell does that mean?
__________________
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
President
Member
Join Date: May 2013
Old 05-25-2013 , 16:33   Re: Simple Late Spawn Blocker
Reply With Quote #6

Quote:
Originally Posted by tonykaram1993 View Post
what the hell does that mean?
He means that "overwriting memory" is bad. You have to always check the value before setting new.
President is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-25-2013 , 20:45   Re: Simple Late Spawn Blocker
Reply With Quote #7

Quote:
Originally Posted by President View Post
He means that "overwriting memory" is bad. You have to always check the value before setting new.
fixed roundstart/end forwards again.

added check for is_user_alive before autokill so it doesnt send runtime error in console

Updated v1.0.3
__________________
Blizzard_87 is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 05-29-2013 , 07:22   Re: Simple Late Spawn Blocker
Reply With Quote #8

Quote:
Originally Posted by President View Post
He means that "overwriting memory" is bad. You have to always check the value before setting new.
Check the code, why do u need to check if you know its the opposet value everytime? He is changing those values only in two situtaions, how can its value change if at roundstart he set it to true? Does he really need to check for its value at round end, knowing he did not change its value anywhere else in the code? Use your common logic dude.
__________________
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
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 #9

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 #10

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
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 17:38.


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