View Single Post
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 02-24-2013 , 11:09   Re: Sound for a hero
Reply With Quote #4

Change:

PHP Code:
emit_sound(idCHAN_ITEMgSoundPushVOL_NORMATTN_NORM0PITCH_NORM
to

PHP Code:
emit_sound(idCHAN_VOICEgSoundPushVOL_NORMATTN_NORM0PITCH_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(idFloat:fadeTimeFloat:holdTimeredgreenbluealphatype SH_FFADE_IN
Example:
PHP Code:
sh_screen_fade(id1.01.0255255255255SH_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.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle