native

zp_register_zombie_class

Syntax

native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback);

Description

Registers a custom class which will be added to the zombie classes menu of ZP.

Parameters

name Caption to display on the menu.
info Brief description of the class.
model Player model to be used.
clawmodel Claws model to be used.
hp Initial health points.
speed Maximum speed.
gravity Gravity multiplier.
knockback Knockback multiplier.

Note

The returned zombie class ID can be later used to identify
the class when calling the zp_get_user_zombie_class() natives.

Return

An internal zombie class ID, or -1 on failure.

Error

If Zombie Class real Name Alterady Exists