Quote:
Originally Posted by Potato Uno
PHP Code:
#include <sourcemod>
#include <tf2_stocks>
#include <tf2attributes>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo =
{
name = "Green something",
author = "Potato Uno (Hydrogen)",
description = "Does something",
version = "1.0.0",
url = "http://www.sourcemod.net"
}
public void OnPluginStart()
{
SetConVarInt(FindConVar("tf_forced_holiday"), 2);
HookEvent("player_spawn", PlayerSpawn);
}
public Action PlayerSpawn(Handle EventHandle, const char[] EventName, bool DontBroadcast)
{
int iClient = GetClientOfUserId(GetEventInt(EventHandle, "userid"));
if (TF2_GetPlayerClass(iClient) != TFClass_Pyro)
return;
int Primary = GetPlayerWeaponSlot(iClient, 0);
TF2Attrib_SetByDefIndex(Primary, 1008, 1.0);
}
|
Just in case your wife doesn't tell you enough.
In all the faithless moments of hopelessness,
you do know, that Hefal loves, you.
Thank you so much!