View Single Post
Halt
Senior Member
Join Date: Jan 2015
Location: Black Mesa
Old 08-22-2019 , 14:40   Re: [Question] Entity Index
Reply With Quote #4

Now I don't want any code, I just want to know if I'm on the right track & what I might do to better improve it.

PLEASE DONT GIVE ME FINISHED CODE

PHP Code:
#include <sourcemod>
#include <sdkhooks>

public void OnPluginStart()
{
  
HookEvent("OnEntityCreated"Event_EntityCreated);
}

public 
Action Event_EntityCreated(Handle eventint iEntity, const char[] EntityName)
{
  if (
iEntity == "grenade_projectile"
  {
    
int iGrenadeUser GetEntProp(iEntityProp_Data"m_hThrower"); //Gets user for killfeed
    
SetEntProp(iEntity"color""255 0 0"); //Sets Smoke Grenade to Red
  
}


Last edited by Halt; 08-22-2019 at 14:40.
Halt is offline