Raised This Month: $ Target: $400
 0% 

[Help] ZP 5.0 Human class not working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mymaqn
Junior Member
Join Date: Jul 2012
Old 07-05-2012 , 15:45   [Help] ZP 5.0 Human class not working?
Reply With Quote #1

I have this code

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <zp50_class_human>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
}

// Human Attributes
new const humanclass3_name[] = "Gravity human"
new const humanclass3_info[] = "HP-- Gravity---"
new const humanclass3_models[][] = { "leet" }
const 
humanclass3_health 25
const Float:humanclass3_speed 1.0
const Float:humanclass3_gravity 0.4

new g_HumanClassID5

public plugin_prechache ()
{
        
register_plugin ("[ZP] Class: Gravity Human"ZP_VERSION_STRING"ZP Dev Team")
        
g_HumanClassID5 zp_class_human_register (humanclass3_namehumanclass3_infohumanclass3_healthhumanclass3_speedhumanclass3_gravity);
        new 
index
        
for (index 0index sizeof humanclass3_modelsindex++)
            
zp_class_human_register_model(g_HumanClassID5humanclass3_models[index])

.. and for some reason when I compile it and get the amxx file and put it in the plugins folder and add it in the plugins.ini it is not working? Is my code wrong somewhere? Please help me I am new at this

Kind regards
Mymaqn

Edit: I posted the thread here because I didn't know where else to put it

Last edited by Mymaqn; 07-05-2012 at 16:00.
Mymaqn is offline
Holy Master
New Member
Join Date: Jul 2012
Old 07-05-2012 , 16:23   Re: [Help] ZP 5.0 Human class not working?
Reply With Quote #2

Mymaqn , so i come to scripts and find this

PHP Code:
/*================================================================================
    
    ----------------------------------
    -*- [ZP] Class: Human: Raptor -*-
    ----------------------------------
    
    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[] = "Raptor Human"
new const humanclass2_info[] = "HP-- Speed+ Gravity+"
new const humanclass2_models[][] = { "leet" }
const 
humanclass2_health 50
const Float:humanclass2_speed 1.2
const Float:humanclass2_gravity 1.2

new g_HumanClassID

public plugin_precache()
{
    
register_plugin("[ZP] Class: Human: Raptor"ZP_VERSION_STRING"ZP Dev Team")
    
    
g_HumanClassID zp_class_human_register(humanclass2_namehumanclass2_infohumanclass2_healthhumanclass2_speedhumanclass2_gravity)
    new 
index
    
for (index 0index sizeof humanclass2_modelsindex++)
        
zp_class_human_register_model(g_HumanClassIDhumanclass2_models[index])

try to remake this how you are want . . . its must work

Last edited by Holy Master; 07-05-2012 at 16:23.
Holy Master is offline
Mymaqn
Junior Member
Join Date: Jul 2012
Old 07-05-2012 , 16:52   Re: [Help] ZP 5.0 Human class not working?
Reply With Quote #3

Thank you for your response

It's the same codes I have just given them different variables. So it doesn't lap over the raptor zombie.. Is there anyway I can force it into the menu with a code?

Thank you!
Kind regards
Mymaqn

Edit: I just tried to be sure and it worked!! Thank you so much!

Kind Regards
Mymaqn

Last edited by Mymaqn; 07-06-2012 at 08:41.
Mymaqn 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 15:21.


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