Raised This Month: $ Target: $400
 0% 

[SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 01-13-2011 , 15:42   Re: [SNIPPET][L4D2] Laser Sight & Explosive Barrel Creation
Reply With Quote #1

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 ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode