Raised This Month: $ Target: $400
 0% 

[ Help ] command at the beginning of the round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-27-2018 , 13:05   Re: [ Help ] command at the beginning of the round
Reply With Quote #5

Quote:
Originally Posted by Ghosted View Post
HLTV is called before players spawn.
It's called after they spawn.

PHP Code:
#include < amxmodx >

public plugin_init( )
{
    
register_event("HLTV""OnNewRound""a" )  ;
}

public 
OnNewRound( )
{
    new 
szPlayers32 ], iNumiTempIDszName32 ];
    
get_playersszPlayersiNum );

    for( new 
iiNumi++ )
    {
        
iTempID szPlayers];
        
get_user_nameiTempIDszNamecharsmaxszName ) );
        
log_to_file"Test.txt""Player: %s %s"szNameis_user_aliveiTempID ) ? "ALIVE" "DEAD" );
    }

Quote:
L 06/27/2018 - 19:02:44: Player: DoNii ALIVE
L 06/27/2018 - 19:02:49: Player: DoNii ALIVE
L 06/27/2018 - 19:02:49: Player: [P*D]U're Dead (100) ALIVE
__________________

Last edited by edon1337; 06-27-2018 at 13:06.
edon1337 is offline
 



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 12:25.


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