AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Zombie Plague 4.3 Fix5a Latest Version[UPDATE 16-June-2016] (https://forums.alliedmods.net/showthread.php?t=279404)

GlobalPlague 02-26-2016 17:56

Re: Zombie Plague 4.3 Fix5a Latest Version
 
Yes

tfk94 02-26-2016 18:16

Re: Zombie Plague 4.3 Fix5a Latest Version
 
i get
warning 204 : symbol is assigned a value that is never used "blue"
warning 204 : symbol is assigned a value that is never used "green"
warning 204 : symbol is assigned a value that is never used "red"

PHP Code:

        // Show name, health, class, and ammo packs
        
set_hudmessage(02550, -1.00.9010.013.00.010.01, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L: %d - %L %s - %L %d - %L %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue))
    }



GlobalPlague 02-26-2016 18:18

Re: Zombie Plague 4.3 Fix5a Latest Version
 
Upload your .sma file here/PM, i will do it

tfk94 02-26-2016 18:27

Re: Zombie Plague 4.3 Fix5a Latest Version
 
1 Attachment(s)
..

GlobalPlague 02-26-2016 18:39

Re: Zombie Plague 4.3 Fix5a Latest Version
 
PHP Code:

// Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        
// Show name, class, health, armor and ammo packs
        
set_hudmessage(02550HUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L: %s^n%L: %s - %L: %d - %L: %d - %L: %d"ID_SHOWHUD"SPECTATING"g_playername[id], ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"HEALTH"pev(idpev_health), ID_SHOWHUD"ARMOR"pev(idpev_armorvalue), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id])
    }
    else
    {
        
// Show class, health, armor and ammo packs
        
set_hudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L: %s - %L: %d - %L: %d - %L: %d"id"CLASS_CLASS", class, ID_SHOWHUD"HEALTH"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD])
    }



tfk94 02-26-2016 18:42

Re: Zombie Plague 4.3 Fix5a Latest Version
 
брато виж си скайпа ако може да не спамим тука

Kakarot47 02-27-2016 10:03

Re: Zombie Plague 4.3 Fix5a Latest Version
 
For colors you need to edit in this line

see this

PHP Code:

// Show HUD Task
public ShowHUD(taskid)
{
    static 
id
    id 
ID_SHOWHUD;
    
    
// Player died?
    
if (!g_isalive[id])
    {
        
// Get spectating target
        
id pev(idPEV_SPEC_TARGET)
        
        
// Target not alive
        
if (!g_isalive[id]) return;
    }
    
    
// Format classname
    
static class[32], redgreenblue
    
    
if (g_zombie[id]) // zombies
    
{
        
red 180
        green 
4
        blue 
255
        
        
if (g_nemesis[id])
            
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_NEMESIS")
        else if (
g_assassin[id])
            
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_ASSASSIN")
        else
            
copy(class, charsmax(class), g_zombie_classname[id])
    }
    else 
// humans
    
{
        
red 218
        green 
255
        blue 
4
        
        
if (g_survivor[id])
            
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_SURVIVOR")
        else if (
g_sniper[id])
            
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_SNIPER")
        else
            
formatex(class, charsmax(class), "%L"ID_SHOWHUD"CLASS_HUMAN")
    }
    
    
// Spectating someone else?
    
if (id != ID_SHOWHUD)
    {
        
// Show name, health, class, and ammo packs
        
set_hudmessage(4182255HUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %s^nHP: %d - %L %s - %L %d - Armor: %d"ID_SHOWHUD"SPECTATING"g_playername[id], pev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], pev(idpev_armorvalue))
    }
    else
    {
        
// Show health, class and ammo packs
        
set_hudmessage(redgreenblue, -1.00.9010.013.00.010.01, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"-=(%L:%d)-(%L %s)=- ^n-=(%L %d)-(%L %d)=-"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue))
    }


Edit these line
for Zombie , Assasin and Nemises
PHP Code:

    if (g_zombie[id]) // zombies
    
{
        
red 180 //Your color
        
green //Your color
        
blue 255 //Your color 

For Human , Survivor and Sniper
PHP Code:

else // humans
    
{
        
red 218 //Your color
        
green 255 //Your color
        
blue //Your color 


tfk94 02-28-2016 17:52

Re: Zombie Plague 4.3 Fix5a Latest Version
 
now it is green but it keeps flashing
can you tell me how to fix that ?

Carbona 02-29-2016 10:03

Re: Zombie Plague 4.3 Fix5a Latest Version
 
Greetings from me! Nice job you done with that mod , today i am gonna test it on my new server and hopefully it will work properly. :)

But i want to ask how to change the survivor clip to be Unlimited like in the original version(somewhere in your code i've seen that it was 31689 or something... :shock:

Kakarot47 02-29-2016 11:45

Re: Zombie Plague 4.3 Fix5a Latest Version
 
Quote:

Originally Posted by tfk94 (Post 2397923)
now it is green but it keeps flashing
can you tell me how to fix that ?

What you mean by keep flashing can you send me picture plz.

Quote:

Originally Posted by Carbona (Post 2398062)
Greetings from me! Nice job you done with that mod , today i am gonna test it on my new server and hopefully it will work properly. :)

But i want to ask how to change the survivor clip to be Unlimited like in the original version(somewhere in your code i've seen that it was 31689 or something... :shock:

Suvivor clip can done by zombieplague.cfg

on this line.

Code:

// Survivor
// -------
zp_surv_enabled 1 // Enable survivor mode
zp_surv_chance 20 // Chance (1 in X)
zp_surv_min_players 0 // Minimum players required
zp_surv_health 0 // Health  [0 - zombie count*base health]
zp_surv_base_health 0 // Base health [0 - use human's health]
zp_surv_speed 230 // Speed
zp_surv_gravity 1.25 // Gravity (0.5 = half)
zp_surv_glow 1 // Glow effect
zp_surv_aura 1 // Halo effect
zp_surv_painfree 1 // Pain shock free
zp_surv_ignore_frags 1 // Whether to earn frags
zp_surv_ignore_rewards 1 // Whether to earn ammo packs
zp_surv_weapon "weapon_m249" // Survivor's weapon (given by default)
zp_surv_unlimited_ammo 2 // Unlimited ammo for Survivor [0-disabled // 1-BP ammo // 2-clip ammo]



All times are GMT -4. The time now is 02:47.

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