Quote:
Originally Posted by MrLalatg
Sorry for my stupidity, but i don't really understand how can i find it.
For example i have the compiled map with the buttons, what should i do to find hammerid or anything of a specific button on a map?
|
You can create some tools to help yourself:
Code:
public void OnPluginStart() {
RegConsoleCmd( "sm_info", CMD_Info );
}
public Action CMD_Info(int client, int args) {
int iTarget = GetClientAimTarget( client, false );
if ( iTarget != -1 ) {
char sName[64], sClass[64];
GetEntPropString( iTarget, Prop_Data, "m_iName", sName, sizeof( sName ) );
if ( sName[0] == '\0' )
strcopy( sName, sizeof( sName ), "(EMPTY)" );
GetEntityClassname( iTarget, sClass, sizeof( sClass ) );
if ( HasEntProp( iTarget, Prop_Data, "m_iHammerID" ) )
PrintToChat( client, "[Entity %i] ClassName: %s | TargetName: %s | HammerID: %i", iTarget, sClass, sName, GetEntProp( iTarget, Prop_Data, "m_iHammerID" ) );
else
PrintToChat( client, "[Entity %i] ClassName: %s | TargetName: %s", iTarget, sClass, sName );
}
return Plugin_Handled;
}
In game look at the entity and type command
/info into chat (or
sm_info into console)
__________________