AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Late Spawn Manager ( 22/12/2013 ) (https://forums.alliedmods.net/showthread.php?t=216655)

Blizzard_87 05-23-2013 21:01

Late Spawn Manager ( 22/12/2013 )
 
5 Attachment(s)
Late Spawn Manager
v1.0.7
by Blizzard_87


ThreadStart
http://i.blzd.tk/desc.png
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.
http://i.blzd.tk/cvars.png
lsm_mode "1" - Enables Plugin | "0" - Disables Plugin ( Setting Changes On Map Change Or Server Restart )
http://i.blzd.tk/credits.png
meTaLiCroSS - some code
ConnorMcLeod - code snippet
Change Log

_____________________________________________

Servers Using This Plugin:
File Download Count
170+ Current

ThreadEnd
.

tonykaram1993 05-23-2013 23:03

Re: Simple Late Spawn Blocker
 
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;


:arrow:

PHP Code:

public Event_RoundStart() {
    
g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    
g_bBlockLateSpawn false;



Blizzard_87 05-23-2013 23:44

Re: Simple Late Spawn Blocker
 
Quote:

Originally Posted by tonykaram1993 (Post 1957296)
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;


:arrow:

PHP Code:

public Event_RoundStart() {
    
g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    
g_bBlockLateSpawn false;



thanks. updated.

Kia 05-24-2013 11:43

Re: Simple Late Spawn Blocker
 
Nice plugin, thanks. :D

hLiaS 05-24-2013 12:54

Re: Simple Late Spawn Blocker
 
This plugin is already exist https://forums.alliedmods.net/showthread.php?t=103733

Kia 05-24-2013 13:28

Re: Simple Late Spawn Blocker
 
But it's unapproved. :fox:

Jhob94 05-24-2013 13:46

Re: Simple Late Spawn Blocker
 
Quote:

Originally Posted by tonykaram1993 (Post 1957296)
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;


:arrow:

PHP Code:

public Event_RoundStart() {
    
g_bBlockLateSpawn true;
}

public 
Event_RoundEnd() {
    
g_bBlockLateSpawn false;



Or not

DruGzOG 05-24-2013 13:49

Re: Simple Late Spawn Blocker
 
Didn't check the code yet, but does this add to their death on the scoreboard? Or would it not?

President 05-24-2013 16:04

Re: Simple Late Spawn Blocker
 
Yes. When the death event is called, it always add a Death to the victim. However, you can always reduce the Deaths by 1.

Blizzard_87 05-24-2013 16:16

Re: Simple Late Spawn Blocker
 
Quote:

Originally Posted by Kia (Post 1957614)
Nice plugin, thanks. :D

Thanks :)

Quote:

Originally Posted by DruGzOG (Post 1957672)
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 (Post 1957752)
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.


All times are GMT -4. The time now is 02:59.

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