AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   tapping the loading (https://forums.alliedmods.net/showthread.php?t=188888)

klysman07 07-01-2012 11:29

tapping the loading
 
a plugin that plays music in loading

plus it just starts playing after that I'm playing.

someone can put in to play and then loading that enters the server stop the music.


PHP Code:

#include <amxmod>
#include <amxmisc>

new iArray[33]

public 
plugin_init() 
{
 
register_plugin("SoundManager","1.00","chaveiro")
 
register_event("ScreenFade","screenfade","b")
 new 
i
 
for (i=0;i<=32;i++)
 {
    
iArray[i]=0
 
}
}
public 
client_putinserver(id
{
 
iArray[id]=1
}
public 
screenfade(id)
{
 if (
iArray[id]==1)
 {
    
iArray[id]=0
    client_cmd
(id,"spk sound/pitbullevery.wav")
 }
}
public 
plugin_precache()
{
 
precache_sound("pitbullevery.wav")




All times are GMT -4. The time now is 15:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.