Raised This Month: $ Target: $400
 0% 

[ Help ] command at the beginning of the round


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 06-27-2018 , 13:13   Re: [ Help ] command at the beginning of the round
Reply With Quote #6

Quote:
Originally Posted by edon1337 View Post
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" );
    }


You don't have parameters, so this event will be called too many times and this will be OnHLTV and not OnNewRound.

[Parameters:
Code:
"1=0", "2=0"
I Meant NewRound when i was talking about HLTV event]
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 06-27-2018 at 13:14.
Ghosted 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