Change:
PHP Code:
emit_sound(id, CHAN_ITEM, gSoundPush, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
to
PHP Code:
emit_sound(id, CHAN_VOICE, gSoundPush, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
To add a blind use sh_screen_fade:
PHP Code:
/**
* Creates a screen fade on the client.
*
* @param id The index of the client.
* @param fadeTime The time in seconds the fade lasts.
* @param holdTime The time in seconds the fade is held.
* @param red The red rgb color value of the fade. (0-255)
* @param green The green rgb color value of the fade. (0-255)
* @param blue The blue rgb color value of the fade. (0-255)
* @param alpha The alpha transparency value of the fade. (0-255)
* @param type The type of fade. (see superheroconst.inc)
* @noreturn
*/
stock sh_screen_fade(id, Float:fadeTime, Float:holdTime, red, green, blue, alpha, type = SH_FFADE_IN)
Example:
PHP Code:
sh_screen_fade(id, 1.0, 1.0, 255, 255, 255, 255, SH_FFADE_IN)
Makes the screen white in a second. Add it just after the line with the emit_sound and the screen will fade to white for a second.
__________________