AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness. (https://forums.alliedmods.net/showthread.php?t=275816)

arvEL. 12-09-2015 10:16

[Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness.
 
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.-

amir saiaoud 12-10-2015 04:36

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

arvEL. 12-10-2015 09:12

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

Originally Posted by amir saiaoud (Post 2370773)
Goodjob arvEL.-

thank you.

iLlegalzp 12-10-2015 09:51

Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
 
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


Chihuahuax 12-10-2015 10:48

Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
 
#include <colorchat>

iLlegalzp 12-10-2015 11:13

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

Originally Posted by Chihuahuax (Post 2370892)
#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

Chihuahuax 12-10-2015 11:37

Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
 
zp_colored_print(0, "^x04[ZP]^x03 %s^x01 bougth^x04 Zombie Madness", name5)

iLlegalzp 12-10-2015 11:50

Re: [Tutorial] Second lesson in a series develop [ZPA 1.61] - Add Glow Zombie Madness
 
// 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

arvEL. 12-10-2015 13:33

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

Originally Posted by iLlegalzp (Post 2370916)
// 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


iLlegalzp 12-10-2015 14:11

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

Originally Posted by arvEL. (Post 2370953)
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


All times are GMT -4. The time now is 14:13.

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