Thanks, another question. How can I make the array for every zombie class from a native:
PHP Code:
public native_register_zombie_sounds( plugin_id, paramaters_num ) {
new class_idas = get_param( 1 );
new class_sound[ 64 ]; new class_sound_type[ 32 ];
get_string( 2, class_sound, charsmax( class_sound ) );
get_string( 3, class_sound_type, charsmax( class_sound_type ) );
precache_sound( class_sound );
new class_names[ 32 ];
ArrayGetString( name, class_idas, class_names, charsmax( class_names ) );
log_amx( "Class: %s. Sound - %s / Type - %d", class_names, class_sound, class_sound_type );
sounds[ class_id ][ class_sound_type ] = class_sound;
}
Code above sure is not to work because I don't know how to do it.
class file:
PHP Code:
Const:
new const sounds_miss[ ][ ] = { "umbrella_swarm/miss.wav", "umbrella_swarm/miss2.wav" }
Precache:
new index;
for( index = 0; index < sizeof sounds_pain; index++ )
register_zombie_sounds( zombieClass_id, sounds_pain[ index ], "z_b_pain" );