AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] ZP 5.0 Human class not working? (https://forums.alliedmods.net/showthread.php?t=189298)

Mymaqn 07-05-2012 15:45

[Help] ZP 5.0 Human class not working?
 
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

Holy Master 07-05-2012 16:23

Re: [Help] ZP 5.0 Human class not working?
 
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:D

Mymaqn 07-05-2012 16:52

Re: [Help] ZP 5.0 Human class not working?
 
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


All times are GMT -4. The time now is 15:21.

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