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

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


Post New Thread Reply   
 
Thread Tools Display Modes
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.
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 12-10-2015 , 04:36   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #2

Goodjob arvEL.-
__________________

Last edited by amir saiaoud; 12-10-2015 at 04:36.
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-10-2015 , 09:12   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #3

Quote:
Originally Posted by amir saiaoud View Post
Goodjob arvEL.-
thank you.
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-10-2015 , 09:51   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #4

i Got these errors

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// ZombieWorld.sma
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(4786) : error 017: undefined symbol "client_print_color"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(4786) : warning 215: expression has no effect
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(4786) : warning 215: expression has no effect
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(4786) : error 001: expected token: ";", but found ")"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(4786) : error 029: invalid expression, assumed zero
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(4786) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\compiled\ZombieWorld.amx (compile failed).
//
// Compilation Time: 1,95 sec
// ----------------------------------------

Press enter to exit ...



On line 4708 is this
PHP Code:
client_print_color(0Grey"^x04[ZP]^x03 %s^x01 bougth^x04 Zomeib Madness"name5
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 12-10-2015 , 10:48   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #5

#include <colorchat>
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-10-2015 , 11:13   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #6

Quote:
Originally Posted by Chihuahuax View Post
#include <colorchat>
Yes, I know, I'm wrote #include <colorchat> plus this i have and the .inc file

You can see so i'm wrote #include <colorchat> http://snag.gy/lskr3.jpg
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 12-10-2015 , 11:37   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #7

zp_colored_print(0, "^x04[ZP]^x03 %s^x01 bougth^x04 Zombie Madness", name5)
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Old 12-10-2015, 11:50
iLlegalzp
This message has been deleted by iLlegalzp.
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-10-2015 , 11:50   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #8

// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "ColorChat"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "ColorSelection"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "FindPlayer"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "ShowColorMessage"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "Team_Info"

Now my code have 13550 lines not 13553
__________________

Last edited by iLlegalzp; 12-10-2015 at 12:18.
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
arvEL.
Senior Member
Join Date: Dec 2014
Location: Iraq
Old 12-10-2015 , 13:33   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #9

Quote:
Originally Posted by iLlegalzp View Post
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "ColorChat"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "ColorSelection"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "FindPlayer"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "ShowColorMessage"
// D:\OriginalZM\cstrike\addons\amxmodx\scriptin g\ZombieWorld.sma(13553) : warning 203: symbol is never used: "Team_Info"

Now my code have 13550 lines not 13553
first put:
PHP Code:
#include <colorchat> 
and replace this line:

PHP Code:
client_print_color(0Grey"^x04[ZP]^x03 %s^x01 bougth^x04 Zomeib Madness"name5
to:

PHP Code:
ColorChat(0GREY"^4[ZP]^3 %s^1 bougth^4 Zomeib Madness"name5
__________________
arvEL. is offline
Send a message via Skype™ to arvEL.
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-10-2015 , 14:11   Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
Reply With Quote #10

Quote:
Originally Posted by arvEL. View Post
first put:
PHP Code:
#include <colorchat> 
and replace this line:

PHP Code:
client_print_color(0Grey"^x04[ZP]^x03 %s^x01 bougth^x04 Zomeib Madness"name5
to:

PHP Code:
ColorChat(0GREY"^4[ZP]^3 %s^1 bougth^4 Zomeib Madness"name5
Thank you
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
Reply



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 07:06.


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