Raised This Month: $51 Target: $400
 12% 

Solved [CS GO] client for start_round event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 12-14-2018 , 14:08   [CS GO] client for start_round event
Reply With Quote #1

hi guys!!
i need timer for every players

for example this cod is true ??

PHP Code:
/*********************************
 *  Event RoundStart
 *********************************/
public Action Event_RoundStart(Event event, const char[] namebool dontBroadcast)
{
    for(
int i 1<= MaxClientsi++)
    {
        
CreateTimer(3.0UpdateDelayGetClientSerial(i));
    }
    return 
Plugin_Continue;
}

/*********************************
 *  Public Timers
 *********************************/
public Action UpdateDelay(Handle timerany serial)
{
    
int client GetClientFromSerial(serial);
    
    if(!
IsValidClient(client))
    {
        return 
Plugin_Stop;
    }
    
    
// cod here
    
    
return Plugin_Continue;
}

/*********************************
 *  IsValidClient
 *********************************/
stock bool IsValidClient(int client)
{
    if(
client <= 0)
        return 
false;
    if(
client MaxClients)
        return 
false;
    if(!
IsClientInGame(client))
        return 
false;
    if(!
IsClientSourceTV(client))
        return 
false;
    if(
IsFakeClient(client))
        return 
false;
    return 
true;

thank you

Last edited by Dr.Mohammad; 12-15-2018 at 09:00.
Dr.Mohammad 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 22:11.


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