Good afternoon, I have a question.
I have a track_train entity and I want to show its position on the radar with a custom icon.
Is it feasible to do it with sourcemod?
I have already managed to identify it with the following.
Code:
public Event_RoundStart(Handle:hEvent, const String:sName[], bool:bBroadcast)
{
decl iEnt;
LogMessage("ROUND START BITCH");
while ((iEnt = FindEntityByClassname(-1, "func_tanktrain")) != -1)
{
if (!IsValidEntity(iEnt)) continue;
decl String:entityName[32];
GetEntPropString(iEnt, Prop_Data, "m_iName", entityName, sizeof(entityName));
if (StrEqual(entityName, "fucking_tanktrain", false))
{
tankEntityId = iEnt
LogMessage("Fucking tank found!!!");
break;
}
}
}
Cheers!