View Single Post
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