I am new to PAWN, so my
arms made this plugin.
The plugin had no problems with compiling, but was not working at all
P.S Plugin is made for Zombie Plague 4.3
Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <zmvip>
#define PLUGIN "[ZP] VIP Model"
#define VERSION "0.1"
#define AUTHOR "gore"
new VIP_MODEL[] = "models/player/Transcendent_Michaela/Transcendent_Michaela.mdl"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "SetModel", 1)
}
public plugin_precache() {
precache_model(VIP_MODEL)
}
public SetModel(const id) {
if(zv_get_user_flags(id) & ZV_MAIN && is_user_connected(id)) {
cs_set_user_model(id, "Transcendent_Michaela")
client_print(id, print_chat, "\yYou've just got VIP Player model")
return PLUGIN_HANDLED
}
else
{
client_print(id, print_chat, "\rSorry, but you don't have VIP flags")
}
return PLUGIN_HANDLED
}
I need help making it work. pls.
__________________