Raised This Month: $ Target: $400
 0% 

[HELP] this plugin zp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 10-13-2016 , 19:10   [HELP] this plugin zp
Reply With Quote #1

hello, I have no idea how to put this part to show the information in the plugin, someone help me?

obs: the Data Display only needs to be selected for this class for the player

plugin:
PHP Code:
/*================================================================================
    
    ----------------------------------
    -*- [ZP] Class: Human: Spy -*-
    ----------------------------------
    
    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 <zp50_class_human>

// Classic Human Attributes
new const humanclass1_name[] = "Human spy"
new const humanclass1_info[] = "\y[\dshow hud information zombie\y]"
new const humanclass1_models[][] = { "arctic" "guerilla" "leet" "terror" "gign" "gsg9" "sas" "urban" }
const 
humanclass1_health 100
const Float:humanclass1_speed 0.90
const Float:humanclass1_gravity 1.0

new g_HumanClassID
new g_spy[33]

public 
plugin_precache()
{
    
register_plugin("[ZP] Class: Human: Spy"ZP_VERSION_STRING"BRAVOK")
    
    
g_HumanClassID zp_class_human_register(humanclass1_namehumanclass1_infohumanclass1_healthhumanclass1_speedhumanclass1_gravity)
    new 
index
    
for (index 0index sizeof humanclass1_modelsindex++)
        
zp_class_human_register_model(g_HumanClassIDhumanclass1_models[index])
}

if(!
is_user_bot(id) && is_user_connected(id) && g_spy[id] == true
    {
        new 
zmb read_data(2)
        if(
g_spy[id] == true && zp_get_user_zombie(zmb))
        {
            new 
hp get_user_health(zmb)
            new 
ap zp_get_user_ammo_packs(zmb)
            new 
zm zp_get_zombie_count()
            new 
name[32]
            
get_user_name(zmb,name,31)
            
set_hudmessage(02550, -1.00.102.01.50.10.213)
            
ShowSyncHudMsg(idg_status_sync"Name: %s^nHealth: %i^nAmmo Packs: %i^nZombies Left: %i"namehpapzm)
        }
    }

I need this to work

PHP Code:
if(!is_user_bot(id) && is_user_connected(id) && g_spy[id] == true
    {
        new 
zmb read_data(2)
        if(
g_spy[id] == true && zp_get_user_zombie(zmb))
        {
            new 
hp get_user_health(zmb)
            new 
ap zp_get_user_ammo_packs(zmb)
            new 
zm zp_get_zombie_count()
            new 
name[32]
            
get_user_name(zmb,name,31)
            
set_hudmessage(02550, -1.00.102.01.50.10.213)
            
ShowSyncHudMsg(idg_status_sync"Name: %s^nHealth: %i^nAmmo Packs: %i^nZombies Left: %i"namehpapzm)
        }
    }

__________________

Last edited by GuTo; 10-13-2016 at 19:12.
GuTo is offline
Send a message via Skype™ to GuTo
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 04:20.


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