Sorry for revive the thread , but i have a problem with this.
I have made a this simple plugin.
Code:
#include <sourcemod>
public Plugin:myinfo =
{
name = "New Plugin",
author = "Unknown",
description = "<- Description ->",
version = "1.0",
url = "<- URL ->"
}
public OnPluginStart()
RegConsoleCmd("say", Get_Sayed)
public Action:Get_Sayed( index, args )
{
decl String:Say[50]
GetCmdArgString(Say, sizeof(Say))
if( StrContains( Say , "/barril" , false ) != -1 )
{
new ent = CreateEntityByName("prop_fuel_barrel"); //Special prop type for the barrel
DispatchKeyValue(ent, "model", "models/props_industrial/barrel_fuel.mdl");
DispatchKeyValue(ent, "BasePiece", "models/props_industrial/barrel_fuel_partb.mdl");
DispatchKeyValue(ent, "FlyingPiece01", "models/props_industrial/barrel_fuel_parta.mdl"); //FlyingPiece01 - FlyingPiece04 are supported
DispatchKeyValue(ent, "DetonateParticles", "weapon_pipebomb"); //Particles to use, weapon_vomitjar might work haven't tested
DispatchKeyValue(ent, "FlyingParticles", "barrel_fly"); //Particles to use, I have never successfully gotten a list of L4D2 particle names yet
DispatchKeyValue(ent, "DetonateSound", "BaseGrenade.Explode"); //Scene File name that will be used as sound when barrel explodes
DispatchSpawn(ent);
PrintToChat( index , "[SM] Barril Creado")
}
}
But , doens't make the barrel , what is the problem ?
__________________