View Single Post
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 07-21-2016 , 22:25   Re: [CS:GO] Problem with assists manipulation
Reply With Quote #6

Try doing it at post:
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <cstrike>

#pragma semicolon 1

public OnPluginStart()
{
    
HookEvent("round_end"OnRoundEndEventHookMode_Post);
}

public 
OnRoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
    for(new 
1<= MaxClients; ++i)
    {
        if (
IsClientInGame(i))
        {
            
PrintToChat(i"[DEBUG] ASSIST+");
            
CS_SetClientAssists(i10);   
        }
    }

What about doing this at the start of the round as well or instead?
Maxximou5 is offline