This function is just for people wanting to make an ESP for all mods. All you do is just call the function then return the value
in your ESP function for the players.
Code:
int ModelStructures()
{
cl_entity_t *local = gEngfuncs.GetLocalPlayer();
hud_player_info_t pinfo;
for(int i = 0; i < 33; i++)
{
cl_entity_s *ent = gEngfuncs.GetEntityByIndex(i);
gEngfuncs.pfnGetPlayerInfo(i, &pinfo);
if(i == local->index)
{
if( strstr( pinfo.model, "axis-inf" ) || strstr( pinfo.model, "axis-para" ) || strstr( pinfo.model, "axis-infT" ) || strstr( pinfo.model, "axis-paraT" ) ||strstr( pinfo.model, "arctic" ) || strstr( pinfo.model, "guerilla" ) || strstr( pinfo.model, "leet" ) || strstr( pinfo.model, "terror" ) || strstr( pinfo.model, "alien1" ) || strstr( pinfo.model, "alien2" ) || strstr( pinfo.model, "alien3" ) || strstr( pinfo.model, "alien4" ) || strstr( pinfo.model, "alien5" ) || strstr( pinfo.model, "militia" ) )
{
return 1;
}
else if( strstr( pinfo.model, "us-inf" ) || strstr( pinfo.model, "us-para" ) || strstr( pinfo.model, "us-infT" ) || strstr( pinfo.model, "us-paraT" ) || strstr( pinfo.model, "gign" ) || strstr( pinfo.model, "gsg9" ) || strstr( pinfo.model, "sas" ) || strstr( pinfo.model, "urban" ) || strstr( pinfo.model, "vip" ) || strstr( pinfo.model, "commander" ) || strstr( pinfo.model, "gestate" ) || strstr( pinfo.model, "heavy" ) || strstr( pinfo.model, "soldier" ) || strstr( pinfo.model, "spetsnaz" )else if( strstr( pinfo.model, "brit-inf" ) || strstr( pinfo.model, "brit-infT" ) )
{
return 2;
}
return 0;
}
}
}
You all should know how to use this...