Mam już coś takiego i działa, ale jak nie mam flagi "t" to nie mogę wybrać żadnej klasy..
#include <amxmisc>
#include <amxmodx>
#include <zp50_class_human>
// Classic Human Attributes
new const humanclass1_name[] = "Classic Human"
new const humanclass1_info[] = "=Balanced="
new const humanclass1_models[][] = { "arctic" , "guerilla" , "leet" , "terror" , "gign" , "gsg9" , "sas" , "urban" }
const humanclass1_health = 100
const Float:humanclass1_speed = 1.0
const Float:humanclass1_gravity = 1.0
new g_HumanClassID
public plugin_precache()
{
register_plugin("[ZP] Class: Human: Classic", ZP_VERSION_STRING, "ZP Dev Team")
g_HumanClassID = zp_class_human_register(humanclass1_name, humanclass1_info, humanclass1_health, humanclass1_speed, humanclass1_gravity)
new index
for (index = 0; index < sizeof humanclass1_models; index++)
zp_class_human_register_model(g_HumanClassID, humanclass1_models[index])
}
public zp_fw_class_human_select_pre(id,cid)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
return ZP_CLASS_NOT_AVAILABLE
}
return ZP_CLASS_AVAILABLE
}