Raised This Month: $ Target: $400
 0% 

[Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-09-2015 , 10:16   [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness.
Reply With Quote #1

Second Lesson Add (Glow Madness)
- all rights reserved to arvEL.-, in : 9/12/2015
In these lesson i will explain how to develop [Zombie Plague Advance v1.6.1]
add glow to zombie madness.

first go to this topic [ # ] and download
[ZPA 1.6.1]
after that open the file [zombie_plague_advance_v1-6-1.sma] in [notepad++]

first add this library

PHP Code:
#include <colorchat> 

after that. press [Ctrl + F] and write.

PHP Code:
case EXTRA_MADNESS// Zombie Madness 
it's have this codes:

PHP Code:
        case EXTRA_MADNESS// Zombie Madness
        
{
            
// Increase madness purchase count for this round
            
g_madnesscounter++
            
            
g_nodamage[id] = true
            set_task
(0.1"zombie_aura"id+TASK_AURA__"b")
            
set_task(get_pcvar_float(cvar_madnessduration), "madness_over"id+TASK_BLOOD)
            
            static 
sound[64]
            
ArrayGetString(zombie_madnessrandom_num(0ArraySize(zombie_madness) - 1), soundcharsmax(sound))
            
emit_sound(idCHAN_VOICEsound1.0ATTN_NORM0PITCH_NORM)
        } 
replace all codes to:

PHP Code:
        case EXTRA_MADNESS// Zombie Madness
        
{
            
// Increase madness purchase count for this round
            
g_madnesscounter++
            
            
g_nodamage[id] = true
            
            
new name5[32]
            
get_user_name(idname531)                          
            
client_print_color(0Grey"^x04[ZP]^x03 %s^x01 bougth^x04 Zomeib Madness"name5)
            
            
set_hudmessage(2551450, -1.00.710.05.01.01.0, -1)
            
ShowSyncHudMsg(0g_MsgSync"%s bought Zombie Madness!"name5)
            
            
fm_set_rendering(idkRenderFxGlowShell10000kRenderNormal200)
            
set_task(get_pcvar_float(cvar_madnessduration), "madness_over"id+TASK_BLOOD)
            
            static 
sound[64]
            
ArrayGetString(zombie_madnessrandom_num(0ArraySize(zombie_madness) - 1), soundcharsmax(sound))
            
emit_sound(idCHAN_VOICEsound1.0ATTN_NORM0PITCH_NORM)
        } 

after that. press [Ctrl + F] and write.

PHP Code:
// Madness Over Task 
it's have this codes:

PHP Code:
// Madness Over Task
public madness_over(taskid)
{
    
g_nodamage[ID_BLOOD] = false

replace all codes to:

PHP Code:
// Madness Over Task
public madness_over(taskid)
{
    
g_nodamage[ID_BLOOD] = false
    fm_set_rendering
(ID_BLOOD)

now make compile and ejnoy
all rights reserved to arvEL.-
__________________

Last edited by arvEL.; 12-09-2015 at 10:19.
arvEL. is offline
Send a message via Skype™ to arvEL.
 



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 23:15.


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