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

Human model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 12-02-2013 , 09:01   Human model
Reply With Quote #1

I'm using Zombie Plague 5.0.5 and Zombie Plague XP/Level System...
PHP Code:
/*================================================================================
Human Test
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <zombiexp>
#include <fun>

// Human Attributes
new const hclass_name[] = { "Human" // name
new const hclass_info[] = { "15 armor" // description
//new const hclass_model[] = { "human" } // model
new const hclass_weapons[] = {} // weapons
const hclass_health 100 // health
const hclass_speed 240 // speed
const Float:hclass_gravity 1.0 // gravity
const hclass_level // level required to use

// Class IDs
new g_hclassid

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    new 
registerText[32]
    
formatexregisterTextsizeof registerText 1"[ZPXP] %s human"hclass_name)
    
    
register_plugin(registerText"1.0""Example")
    
    
// Register the new class and store ID for reference
    
g_hclassid zpxp_register_human_class(hclass_namehclass_infohclass_modelhclass_weaponshclass_healthhclass_speedhclass_gravityhclass_level)
    
    if(
g_hclassid == -1)
    {
        
server_print("[ZPXP] You have not properly setup your Zombie XP Mod.");
    }
}

// User Infected forward
public zp_user_infected_post(idinfector)
{
    
// Check if the infected player is using our custom zombie class
    
if (zp_get_user_human_class(id) != g_hclassid) return;
    
    
// Undo any settings we have saved here
    
}

public 
zp_user_humanized_post(id)
{
    
// Check if the infected player is using our custom zombie class
    
if (zp_get_user_human_class(id) != g_hclassid) return;

    
// User turned human
}

//This is a forward from zpxp, as opposed to ZPs round_start (which is when infection begins) this is the true beginning of the round
public zp_round_started_human(id)
{
    if (
zp_get_user_human_class(id) != g_hclassid) return;
    
    
set_user_armor(id15)
        

The model is not working for humans, but for zombies it is working fine...
Ca you give me an advice?
Bladell is offline
StrawberryTart
BANNED
Join Date: Dec 2013
Location: i'm your Special TART!
Old 12-07-2013 , 21:45   Re: Human model
Reply With Quote #2

hmm i dont know much about this either but will this help? i Copied it from the human raptor.sma

Quote:
/*============================================ ====================================

----------------------------------
-*- [ZP] Class: Human: [its class name] -*-
----------------------------------

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>

// Raptor Human Attributes
new const humanclass2_name[] = "name of Human" //name of human
new const humanclass2_info[] = "HP-- Speed++++ Gravity--" // its info
new const humanclass2_models[][] = { "leet" } // its model
const humanclass2_health = 50 // its health
const Float:humanclass2_speed = 1.2 // its speed
const Float:humanclass2_gravity = 1.2 // its gravity

new g_HumanClassID

public plugin_precache()
{
register_plugin("[ZP] Class: Human: [its class name]", ZP_VERSION_STRING, "ZP Dev Team")

g_HumanClassID = zp_class_human_register(humanclass2_name, humanclass2_info, humanclass2_health, humanclass2_speed, humanclass2_gravity)
new index
for (index = 0; index < sizeof humanclass2_models; index++)
zp_class_human_register_model(g_HumanClassID, humanclass2_models[index])
}
will this help?


and also isn't

Code:
/*================================================================================ 
Human Test 
================================================================================*/ 

#include <amxmodx> 
#include <fakemeta> 
#include <zombieplague> 
#include <zombiexp> 
#include <fun> 

// Human Attributes 
new const hclass_name[] = { "Human" } // name 
new const hclass_info[] = { "15 armor" } // description 
//new const hclass_model[] = { "human" } // model 
new const hclass_weapons[] = {} // weapons 
const hclass_health = 100 // health 
const hclass_speed = 240 // speed 
const Float:hclass_gravity = 1.0 // gravity 
const hclass_level = 1 // level required to use 

// Class IDs 
new g_hclassid 

// Zombie Classes MUST be registered on plugin_precache 
public plugin_precache() 
{ 
    new registerText[32] 
    formatex( registerText, sizeof registerText - 1, "[ZPXP] %s human", hclass_name) 
     
    register_plugin(registerText, "1.0", "Example") 
     
    // Register the new class and store ID for reference 
    g_hclassid = zpxp_register_human_class(hclass_name, hclass_info, hclass_model, hclass_weapons, hclass_health, hclass_speed, hclass_gravity, hclass_level) 
     
    if(g_hclassid == -1) 
    { 
        server_print("[ZPXP] You have not properly setup your Zombie XP Mod."); 
    } 
} 

// User Infected forward 
public zp_user_infected_post(id, infector) 
{ 
    // Check if the infected player is using our custom zombie class 
    if (zp_get_user_human_class(id) != g_hclassid) return; 
     
    // Undo any settings we have saved here 
     
} 

public zp_user_humanized_post(id) 
{ 
    // Check if the infected player is using our custom zombie class 
    if (zp_get_user_human_class(id) != g_hclassid) return; 

    // User turned human 
} 

//This is a forward from zpxp, as opposed to ZPs round_start (which is when infection begins) this is the true beginning of the round 
public zp_round_started_human(id) 
{ 
    if (zp_get_user_human_class(id) != g_hclassid) return; 
     
    set_user_armor(id, 15) 
         
}

a code for a zombie classs

oh btw
Quote:
/*============================================ ====================================

----------------------------------
-*- [ZP] Class: Human: [its class name] -*-
----------------------------------

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>

// Raptor Human Attributes
new const humanclass2_name[] = "name of Human" //name of human
new const humanclass2_info[] = "HP-- Speed++++ Gravity--" // its info
new const humanclass2_models[][] = { "leet" } // its model
const humanclass2_health = 50 // its health
const Float:humanclass2_speed = 1.2 // its speed
const Float:humanclass2_gravity = 1.2 // its gravity

new g_HumanClassID

public plugin_precache()
{
register_plugin("[ZP] Class: Human: [its class name]", ZP_VERSION_STRING, "ZP Dev Team")

g_HumanClassID = zp_class_human_register(humanclass2_name, humanclass2_info, humanclass2_health, humanclass2_speed, humanclass2_gravity)
new index
for (index = 0; index < sizeof humanclass2_models; index++)
zp_class_human_register_model(g_HumanClassID, humanclass2_models[index])
}
edit the one with //its model

HOPE IT HELPED!

oh and also

change
Quote:
//new const hclass_model[] = { "human" } // model
to
Quote:
new const hclass_model[] = { "human" } // model

Last edited by StrawberryTart; 12-08-2013 at 01:15. Reason: Adding more information
StrawberryTart is offline
Bladell
Senior Member
Join Date: Jun 2012
Old 12-08-2013 , 06:21   Re: Human model
Reply With Quote #3

I'm using Zombie Plague Level System, so this doesn't help me...
Thanks anyway!
Bladell is offline
StrawberryTart
BANNED
Join Date: Dec 2013
Location: i'm your Special TART!
Old 12-11-2013 , 06:51   Re: Human model
Reply With Quote #4

Quote:
Originally Posted by Bladell View Post
I'm using Zombie Plague Level System, so this doesn't help me...
Thanks anyway!
well it was worth a try but no problem ;)
StrawberryTart 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 00:29.


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