Raised This Month: $ Target: $400
 0% 

[REQ] After round starts join slay


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-19-2011 , 09:02   Re: [REQ] After round starts join slay
Reply With Quote #21

Quote:
Originally Posted by erader View Post
For me doesn't work, still the same problem.
But I don't have freezetime on the server, can be that the problem ?
I didn't have freezetime when I tested either.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
itsme
Junior Member
Join Date: Jul 2011
Old 07-01-2011 , 06:36   Re: [REQ] After round starts join slay
Reply With Quote #22

Quote:
Originally Posted by drekes View Post
Try this:

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

// how many seconds after round start are players allowed to spawn 
#define ALLOWED_SPAWN_SECONDS 1 

new Float:g_fRoundStart
new 
boolg_bFreezeTime;

public 
plugin_init( ) { 
    
register_plugin"Anti-LateSpawn""0.0.1""Exolent" ); 
    
    
register_event"HLTV""EventHLTV""a""1=0""2=0" );
    
register_logevent"EventRoundStart"2"1=Round_Start" ); 
     
    
RegisterHamHam_Spawn"player""FwdPlayerSpawnPost"); 


public 
EventHLTV( ) {
    
g_bFreezeTime true;
}

public 
EventRoundStart( ) { 
    
g_bFreezeTime false;
    
    
g_fRoundStart get_gametime( ); 


public 
FwdPlayerSpawnPostiPlayer ) { 
    if( !
g_bFreezeTime
    
&& is_user_aliveiPlayer 
    && 
get_gametime( ) > ( g_fRoundStart ALLOWED_SPAWN_SECONDS ) ) { 
        
user_silentkilliPlayer ); 
         
        
client_printiPlayerprint_chat"You spawned too late into the round." ); 
    } 


i try to compile this but:
Your plugin failed to compile! Read the errors below:
SourcePawn Compiler 1.3.7
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

/home/groups/sourcemod/upload_tmp/php1KcJWE.sp(1) : fatal error 120: cannot read from file: "amxmodx"

Compilation aborted.
1 Error.

please help. realy need this plugin
itsme is offline
erader
Senior Member
Join Date: Dec 2010
Old 07-01-2011 , 06:41   Re: [REQ] After round starts join slay
Reply With Quote #23

use this compiler: http://www.amxmodx.org/webcompiler.cgi

BTW: It has a big BUG.
When you join after the time when players are allowed to spawn, you will be spawned and killed and spawned and killed and spawned and killed and so on while the round is end.
__________________
If you live for something, you're not alone my friend...
erader is offline
Old 07-01-2011, 06:41
Dolph_Ziggler
This message has been deleted by Dolph_Ziggler.
itsme
Junior Member
Join Date: Jul 2011
Old 07-01-2011 , 07:15   Re: [REQ] After round starts join slay
Reply With Quote #24

sry my fault. i was in the wrong section^^
but now i got it
itsme 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 13:21.


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