Raised This Month: $32 Target: $400
 8% 

Solved Sound is doesn't played when player infected


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LiZou Mapper
Member
Join Date: Oct 2018
Location: Morocco
Old 12-03-2018 , 15:39   Sound is doesn't played when player infected
Reply With Quote #1

When a human being hit, I don't hear anything!!
PHP Code:

#include <amxmodx>
#include <zp50_core>

#define PLUGIN "Infect Warning"
#define VERSION "1.0"
#define AUTHOR "LiZou Mapper" 

// Variable 
new coming_cso[][] = 
{

    
"zombie_plague/cso/zombie_coming1.wav",
    
"zombie_plague/cso/zombie_coming2.wav",
    
"zombie_plague/cso/zombie_coming3.wav"
    
}

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
zp_fw_core_infect_post(idattacker)
{    
    
// Attacker is valid?
    
if (attacker 0)
    {
        
client_cmd(0,"speak ^"%s^""coming_cso[random_num(0charsmax(coming_cso)])
    }

__________________

-------------
My Maps !
Zombie Escape Mod !
-------------


Last edited by LiZou Mapper; 06-21-2022 at 21:16. Reason: Title!
LiZou Mapper is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-07-2018 , 02:56   Re: Problem in Plugin [No Work Variable] ????
Reply With Quote #2

Quote:
Originally Posted by LiZou Mapper View Post
please guys
i need fix bug
When I do infect human i dont listen any thing
It looks like we are given a fraction of the code. From what I can see, there isn't a line to precache.
Code:
precache_sound("zombie_plague/cso/zombie_coming1.wav")
__________________
DJEarthQuake is offline
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:09.


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