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

[ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)


Post New Thread Reply   
 
Thread Tools Display Modes
Fresh522
Member
Join Date: Mar 2015
Location: Bulgaria
Old 03-31-2015 , 18:11   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #111

Very nice
Fresh522 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 04-01-2015 , 07:06   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #112

Quote:
Originally Posted by New.ZM.Life
IMPORTANT: Its so hard to edit zp50_admin_menu to put make Plasma and make NightCrawler.
Then, just make a new menu instead edit the original menu. ;)

Last edited by zmd94; 04-01-2015 at 09:02.
zmd94 is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-01-2015 , 07:33   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #113

Quote:
Originally Posted by zmd94 View Post
Then, just make a new menu instead edit the original menu. ;)
yeah, maybe i have to make a new menu and put that in original menu
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
XeOn Cp
Senior Member
Join Date: Jan 2014
Old 04-01-2015 , 10:48   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #114

Quote:
Originally Posted by New.ZM.Life View Post
yeah, maybe i have to make a new menu and put that in original menu
here is admin menu with Plasma )
Credits to: zmd94

PHP Code:
/*================================================================================
    
    ----------------------------
    -*- [ZP] HUD Information -*-
    ----------------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <zp50_class_human>
#include <zp50_class_zombie>
#define LIBRARY_NEMESIS "zp50_class_nemesis"
#include <zp50_class_nemesis>
#define LIBRARY_DRAGON "zp50_class_dragon"
#include <zp50_class_dragon>
#define LIBRARY_ASSASSIN "zp50_class_assassin"
#include <zp50_class_assassin>
#define LIBRARY_SURVIVOR "zp50_class_survivor"
#include <zp50_class_survivor>
#define LIBRARY_SNIPER "zp50_class_sniper"
#include <zp50_class_sniper>
#define LIBRARY_PLASMA "zp50_class_plasma"
#include <zp50_class_plasma>
#define LIBRARY_KNIFER "zp50_class_knifer"
#include <zp50_class_knifer>
#define LIBRARY_AMMOPACKS "zp50_ammopacks"
#include <zp50_ammopacks>
#include <dhudmessage>

const Float:HUD_SPECT_X 0.6
const Float:HUD_SPECT_Y 0.8
const Float:HUD_STATS_X 0.02
const Float:HUD_STATS_Y 0.18

const HUD_STATS_ZOMBIE_R 255
const HUD_STATS_ZOMBIE_G 0
const HUD_STATS_ZOMBIE_B 0

const HUD_STATS_HUMAN_R 5
const HUD_STATS_HUMAN_G 150
const HUD_STATS_HUMAN_B 250

const HUD_STATS_SPEC_R 50
const HUD_STATS_SPEC_G 200
const HUD_STATS_SPEC_B 50

#define TASK_SHOWHUD 100
#define ID_SHOWHUD (taskid - TASK_SHOWHUD)

const PEV_SPEC_TARGET pev_iuser2

new g_MsgSync

public plugin_init()
{
    
register_plugin("[ZP] HUD Information"ZP_VERSION_STRING"ZP Dev Team")
    
    
g_MsgSync CreateHudSyncObj()
}

public 
plugin_natives()
{
    
set_module_filter("module_filter")
    
set_native_filter("native_filter")
}
public 
module_filter(const module[])
{
    if (
equal(moduleLIBRARY_NEMESIS) || equal(moduleLIBRARY_DRAGON) || equal(moduleLIBRARY_ASSASSIN) || equal(moduleLIBRARY_SURVIVOR) || equal(moduleLIBRARY_SNIPER) || equal(moduleLIBRARY_KNIFER) || equal(moduleLIBRARY_PLASMA) || equal(moduleLIBRARY_AMMOPACKS))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}
public 
native_filter(const name[], indextrap)
{
    if (!
trap)
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}

public 
client_putinserver(id)
{
    if (!
is_user_bot(id))
    {
        
// Set the custom HUD display task
        
set_task(1.0"ShowHUD"id+TASK_SHOWHUD__"b")
    }
}

public 
client_disconnect(id)
{
    
remove_task(id+TASK_SHOWHUD)
}

// Show HUD Task
public ShowHUD(taskid)
{
    new 
player ID_SHOWHUD
    
    
// Player dead?
    
if (!is_user_alive(player))
    {
        
// Get spectating target
        
player pev(playerPEV_SPEC_TARGET)
        
        
// Target not alive
        
if (!is_user_alive(player))
            return;
    }
    
    
// Format classname
    
static class_name[32], transkey[64]
    new 
redgreenblue
    
    
if (zp_core_is_zombie(player)) // zombies
    
{
        
red HUD_STATS_ZOMBIE_R
        green 
HUD_STATS_ZOMBIE_G
        blue 
HUD_STATS_ZOMBIE_B
        
        
// Nemesis Class loaded?
        
if (LibraryExists(LIBRARY_NEMESISLibType_Library) && zp_class_nemesis_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_NEMESIS")
        }
        
// Dragon Class loaded?
        
else if (LibraryExists(LIBRARY_DRAGONLibType_Library) && zp_class_dragon_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_DRAGON")
        }   
        
// Assassin Class loaded?
        
else if (LibraryExists(LIBRARY_ASSASSINLibType_Library) && zp_class_assassin_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_ASSASSIN")
        }
        else
        {
            
zp_class_zombie_get_name(zp_class_zombie_get_current(player), class_namecharsmax(class_name))
            
            
// ML support for class name
            
formatex(transkeycharsmax(transkey), "ZOMBIENAME %s"class_name)
            if (
GetLangTransKey(transkey) != TransKey_Badformatex(class_namecharsmax(class_name), "%L"ID_SHOWHUDtranskey)
        }
    }
    else 
// humans
    
{
        
red HUD_STATS_HUMAN_R
        green 
HUD_STATS_HUMAN_G
        blue 
HUD_STATS_HUMAN_B
        
        
// Survivor Class loaded?
        
if (LibraryExists(LIBRARY_SURVIVORLibType_Library) && zp_class_survivor_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_SURVIVOR")
        }
        
// Sniper Class loaded?
        
else if (LibraryExists(LIBRARY_SNIPERLibType_Library) && zp_class_sniper_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_SNIPER")
        }          
        
// Plasma Class loaded?
        
else if (LibraryExists(LIBRARY_PLASMALibType_Library) && zp_class_plasma_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_PLASMA")
        }
        
// Knifer Class loaded?
        
else if (LibraryExists(LIBRARY_KNIFERLibType_Library) && zp_class_knifer_get(player))
        {
            
formatex(class_namecharsmax(class_name), "%L"ID_SHOWHUD"CLASS_KNIFER")
        }
        else
        {
            
zp_class_human_get_name(zp_class_human_get_current(player), class_namecharsmax(class_name))
            
            
// ML support for class name
            
formatex(transkeycharsmax(transkey), "HUMANNAME %s"class_name)
            if (
GetLangTransKey(transkey) != TransKey_Badformatex(class_namecharsmax(class_name), "%L"ID_SHOWHUDtranskey)
        }
    }
    
    
// Spectating someone else?
    
if (player != ID_SHOWHUD)
    {
        new 
player_name[32]
        
get_user_name(playerplayer_namecharsmax(player_name))
        
        
// Show name, health, class, and money
        
set_hudmessage(HUD_STATS_SPEC_RHUD_STATS_SPEC_GHUD_STATS_SPEC_BHUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
        if (
LibraryExists(LIBRARY_AMMOPACKSLibType_Library))
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"%L: %s ^nHealth: %d ^nArmor: %d ^n%L %s ^n%L %d"ID_SHOWHUD"SPECTATING"player_nameget_user_health(player), get_user_armor(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"AMMO_PACKS1"zp_ammopacks_get(player))
        else
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"%L: %s ^nHealth: %d ^n%L %s ^n%L $ %d"ID_SHOWHUD"SPECTATING"player_nameget_user_health(player), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"MONEY1"cs_get_user_money(player))
        }
        else
        {
        
// Show health, class
        
set_dhudmessage(redgreenblue0.020.1806.01.10.00.0, -1)
        
        if (
LibraryExists(LIBRARY_AMMOPACKSLibType_Library))
            
show_dhudmessage(ID_SHOWHUD"Health: %d ^nArmor: %d ^n%L %s ^n%L %d"get_user_health(ID_SHOWHUD), get_user_armor(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"AMMO_PACKS1"zp_ammopacks_get(ID_SHOWHUD))
        else
            
show_dhudmessage(ID_SHOWHUD"Health: %d - %L %s"get_user_health(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_name)
    }

XeOn Cp is offline
XeOn Cp
Senior Member
Join Date: Jan 2014
Old 04-01-2015 , 10:49   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #115

if you will need, i will add for it NightCrawler class ;)

Last edited by XeOn Cp; 04-01-2015 at 10:50.
XeOn Cp is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-02-2015 , 13:28   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #116

Quote:
Originally Posted by XeOn Cp View Post
if you will need, i will add for it NightCrawler class ;)

lol thats not admin menu
thats HUD info


i created admin menu and classes menu in 2 plugins

add zp50_classes_menu.amxx in plugins list after zp50_admin_menu.amxx

it will work well (add lang support yourself)
Attached Files
File Type: sma Get Plugin or Get Source (zp50_admin_menu.sma - 1775 views - 14.1 KB)
File Type: sma Get Plugin or Get Source (zp50_classes_menu.sma - 1764 views - 32.2 KB)
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 04-02-2015 at 13:38.
New.ZM.Life is offline
XeOn Cp
Senior Member
Join Date: Jan 2014
Old 04-02-2015 , 13:46   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #117

sorry i COPY-ed wrong, i will give you if you will want.
XeOn Cp is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 04-02-2015 , 14:49   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #118

ok give that,
by the way this menu will works too
thanks for attention
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 04-02-2015 at 16:09.
New.ZM.Life is offline
Old 05-15-2015, 18:33
SAS8850
This message has been deleted by SAS8850.
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 05-16-2015 , 11:06   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #119

used translator but didnt exactly know what do you mean.
would you please use EN lang ?
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life is offline
Old 06-04-2015, 03:32
Creasy
This message has been deleted by Creasy.
Tomacatalin15
New Member
Join Date: Feb 2014
Old 08-25-2015 , 05:32   Re: [ZP50] Custom Version 1.3 (NightCrawler,Plasma,Dragon,Knifer,Sniper, Assassin)
Reply With Quote #120

I have a problem !

http://i.imgur.com/KvCW6bf.jpg
http://i.imgur.com/KvCW6bf.jpg

I tried -heapsize 32000 and nothing !
Tomacatalin15 is offline
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 11:00.


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