plz help i want to make a vip plugin only but it doesnt work plz help
and tell me if there is someone did it
PHP Code:
/*================================================================================
//AUTHOR : Gamerz-Vip
================================================================================*/
#include <amxmodx>
#include <fakemeta>
#include <zp50_class_human>
#include <zmvip>
// Human Attributes
new const hclass_name[] = { "vip" } // name
new const hclass_info[] = { "*VIP*" } // description
new const hclass_model[] = { "vip.mdl" } // model
const hclass_health = 150 // health
const hclass_speed = 1.50 // speed
const Float:hclass_gravity = 1.50 // gravity
// Class IDs
new g_zclassid1
// Human Classes MUST be registered on plugin_precache
public plugin_precache()
{
register_plugin("[ZP] Additional Human Classes", "0.1", "Example")
// Register the new class and store ID for reference
g_zclassid1 = zp_class_human_register(hclass_name, hclass_info, hclass_model, hclass_health, hclass_speed, hclass_gravity)
}
public zp_user_infected_pre(id, infector)
if(zp_get_user_human_class(id) == g_zclassid1 && !(zv_get_user_flags(id) && ZV_MAIN)) zp_set_user_human_class(id, 0)
// User Infected forward
public zp_user_infected_post(id, infector)
{
// Check if the player is using our custom human class
if (zp_get_user_human_class(id) == g_zclassid1)
client_print(id, print_chat, "[ZP] YOU ARE USING THE VIP ONLY CLASS!")
}