I'm using this to show a sprite on a player's origin but nothing is showing
PHP Code:
InfectionSprite( iPlayer )
{
new iSprite = create_entity( "env_sprite" );
new Float:fOrigin[ 3 ];
pev( iPlayer, pev_origin, fOrigin );
engfunc( EngFunc_SetOrigin, iSprite, fOrigin );
set_pev( iSprite, pev_renderamt, 16 );
set_pev( iSprite, pev_renderfx, kRenderFxNone );
set_pev( iSprite, pev_rendercolor, 255, 0, 0 );
set_pev( iSprite, pev_framerate, 0.0 );
set_pev( iSprite, pev_model, g_iConfig[ INFECTION_SPRITE ] );
}
And I'm using this to emit a sound but I don't hear anything.
PHP Code:
emit_sound( id, CHAN_VOICE, g_iConfig[ INFECTION_SOUND ], 1.0, ATTN_NORM, 0, PITCH_NORM );
The file paths are correct too:
Code:
SvM/Infection_Sound.wav
sprites/SvM/infection_sprite.spr
Sound is 8 bit, 22050 HZ and mono channel.
__________________