Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #define PLUGIN "New Plugin"
- #define VERSION "1.0"
- #define AUTHOR "anakin_cstrike"
- new g_Sounds[][] =
- {
- "misc/parap2.wav"
- };
- public plugin_init ( )
- {
- register_plugin ( PLUGIN, VERSION, AUTHOR )
- register_logevent ( "roundstart", 2, "1=Round_Start" );
- }
- public plugin_precache()
- {
- for(new i = 0; i < sizeof g_Sounds; i++ )
- precache_sound( g_Sounds[ i ] );
- }
- public roundstart ( )
- {
- set_task ( 15.0, "roundstart2", _, _, _, "b", _ );
- }
- public roundstart2 ( )
- {
- new x = random_num( 0, sizeof g_Sounds - 1 );
- client_cmd( 0, "spk ^"%s^"", g_Sounds[ x ] );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement