View Single Post
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-23-2013 , 19:38   Re: Set Cvars everytime player joins
Reply With Quote #2

This should work for all crits:

PHP Code:
#pragma semicolon 1

#include <sourcemod>
#include <tf2>

public Plugin:myinfo = {
    
name        "[TF2] All Crits",
    
author        "Dr. McKay",
    
description    "Gives all players crit boost",
    
version        "1.0.0",
    
url            "Dr. McKay"
};

public 
OnPluginStart() {
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) {
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
TF2_AddCondition(clientTFCond_Kritzkrieged9999999.9);

But I'd think that the crit boost sound would get annoying.
__________________
Dr. McKay is offline