View Single Post
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 12-18-2019 , 11:54   Re: Декомпиляция плагинов smx
Reply With Quote #7

if you need just a welcome sound plugin do this

PHP Code:

#include <sourcemod>
#include <sdktools>

#define MYSOUND "buttons/blip1.wav"

Handle Timer_Welcome[66];

public 
void OnClientPostAdminCheck(int client) {

   
Timer_Welcome[client] = CreateTimer(2.0Welcome_Soundclient);

}

public 
void OnMapStart() {

    
PrecacheSound(MYSOUNDtrue);

}

public 
void OnClientDisconnect(int client) {

    if (
Timer_Welcome[client]) {
        
KillTimer(Timer_Welcome[client]);
        
Timer_Welcome[client] = INVALID_HANDLE;
    }
}

public 
Action Welcome_Sound(Handle timerany client) {

    
EmitSoundToAll(MYSOUND);
    
Timer_Welcome[client] = INVALID_HANDLE;
    return 
Plugin_Continue;


Last edited by foxhound27; 12-18-2019 at 11:55.
foxhound27 is offline