Active Member
✔️ HL Verified
💻 Oldtimer
- Joined
- Mar 13, 2005
- Messages
- 3,877
- Best answers
- 0
Code:
public client_PostThink(id)
{
new entity;
new maxentities = get_global_int(GL_maxEntities);
for( entity = 1; entity < maxentities; entity++) {
if ( !is_valid_ent( entity ) )
continue;
new owner = entity_get_edict( entity, EV_ENT_owner );
if( owner == id ) {
new szModel[32];
entity_get_string( entity, EV_SZ_model, szModel, 31 );
if( containi( szModel, "aura" ) != -1 ) {
entity_set_int( entity, EV_INT_skin, 1 );
}
}
}
return PLUGIN_CONTINUE
Is this right to change the Turbo Color?
And this should change the sprites out right?
Code:
public client_PostThink(id)
{
new ent = find_ent_in_sphere( -1, vOrigin, 64.0 );
while( ent > 0 )
{
new szModel[32];
entity_get_string( ent, EV_SZ_model, szModel, 31 );
if( containi( szModel, "sprites/sprite.spr" ) != -1 )
{
entity_set_model( ent, "sprites/sprite2.spr" );
}
}
return PLUGIN_CONTINUE
}