|
Senior Member
Join Date: Dec 2014
Location: Iraq
|

12-09-2015
, 10:16
[Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness.
|
#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_madness, random_num(0, ArraySize(zombie_madness) - 1), sound, charsmax(sound)) emit_sound(id, CHAN_VOICE, sound, 1.0, ATTN_NORM, 0, PITCH_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(id, name5, 31) client_print_color(0, Grey, "^x04[ZP]^x03 %s^x01 bougth^x04 Zomeib Madness", name5) set_hudmessage(255, 145, 0, -1.0, 0.7, 1, 0.0, 5.0, 1.0, 1.0, -1) ShowSyncHudMsg(0, g_MsgSync, "%s bought Zombie Madness!", name5) fm_set_rendering(id, kRenderFxGlowShell, 100, 0, 0, kRenderNormal, 200) set_task(get_pcvar_float(cvar_madnessduration), "madness_over", id+TASK_BLOOD) static sound[64] ArrayGetString(zombie_madness, random_num(0, ArraySize(zombie_madness) - 1), sound, charsmax(sound)) emit_sound(id, CHAN_VOICE, sound, 1.0, ATTN_NORM, 0, PITCH_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.
|
|