Raised This Month: $12 Target: $400
 3% 

[REQ] Can anyone make delay of using this sound?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snake.
Senior Member
Join Date: Jul 2017
Old 04-14-2020 , 06:59   [REQ] Can anyone make delay of using this sound?
Reply With Quote #1

PHP Code:
/*
*
* AMX Mod X Script
* cheer v 0.3a
* (c) Copyrgight 2008, Radiance
* This file is provided as is (no warranties)
*
*/

#include <amxmodx>
#include <amxmisc>

new spriteaccessCvar

public plugin_init()
{
    
register_plugin("cheer""0.a""Radiance")
    
register_clcmd("+cheer""cmdCheer1")
    
register_clcmd("-cheer""cmdCheer0")
    
accessCvar register_cvar("cheer_access""0")
}

public 
plugin_precache()
{
    
sprite precache_model("sprites/smile.spr")
    
precache_sound("misc/woohoo2.wav")
}

public 
cmdCheer1(id)
{
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
switch(get_pcvar_num(accessCvar))
    {
        case 
set_cheer(id)
        case 
:
        {
            if(!
access(idADMIN_CHAT))
                return 
PLUGIN_HANDLED
            set_cheer
(id)
        }
    }
    return 
PLUGIN_HANDLED
}

public 
cmdCheer0(id)
{
    
rem_cheer(id)
    return 
PLUGIN_HANDLED
}

stock rem_cheer(id)
{
    
message_begin(MSG_ALLSVC_TEMPENTITY)
         
write_byte(125)
         
write_byte(id)
         
message_end()
}

stock set_cheer(id)
{
    
message_begin(MSG_ALLSVC_TEMPENTITY)
    
write_byte(124)
    
write_byte(id)
    
write_coord(35)
    
write_short(sprite)
    
write_short(100)
    
message_end()
    
emit_sound(idCHAN_VOICE"misc/woohoo2.wav"1.0ATTN_NORM0PITCH_NORM)

Snake. is offline
Send a message via Skype™ to Snake.
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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