Witam, postanowiłem napisać na swój serwer nową klasę dla graczy posiadających VIP , lecz mi to chyba nie wyszło
Jest ktoś w stanie pomóc/doradzić co źle zrobiłem ?
Z góry dziękuje za pomoc +
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <zp50_class_human>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "kocurei"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
}
// Classic Human Attributes
new const humanclass5_name[] = "GROM"
new const humanclass5_info[] = "=Premium="
new const humanclass5_models[][] = { "grom" }
const Float humanclass5_health = 225
const Float humanclass5_speed = 1.50
const Float humanclass5_gravity = 0.60
new g_HumanClassID
public plugin_precache()
{
register_plugin("[ZP] Class : Human : GROM" ZP_VERSION_STRING,
"ZP Dev Team")
g_HumanClassID = zp_class_human_register(humanclass5_name, humanclass5_info,
humanclass5_health, humanclass5_speed, humanclass5_gravity)
nex index
for (index = 0; <sizeof humanclass5_models; index++)
zp_class_human_register_model(g_HumanClassID, humanClass5_models[index])
}
return PLUGIN_CONTINUE
public zp_user_infected_pre(id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H))
{
if (zp_get_user_next_class(id) == g_skoczek)
{
zp_set_user_zombie_class(id, 0)
client_print(id, print_center, "Ta klasa jest premium")
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/