|
Junior Member
|
08-15-2009
, 15:57
Re: [REQ]Admin Zombie
|
#4
|
I wan't please someone to remake this plugin:
Quote:
#include <amxmodx>
#include <fakemeta>
#include <amxmisc>
#include <zombieplague>
static const zname[] = "Admin Zombie ";
static const zinfo[] = "Only admins can use";
static const zmodel[] = "zombie_source";
static const zweapmodel[] = "v_knife_zombie.mdl";
const zhealth = 2500;
const zspeed = 245;
const Float:zgravity = 0.7;
const Float:zknockback = 0.5;
static const zname2[] = "Noob Zombie ";
static const zinfo2[] = "Only Noobs can use";
static const zmodel2[] = "zombie_source";
static const zweapmodel2[] = "v_knife_zombie.mdl";
const zhealth2 = 100;
const zspeed2 = 100;
const Float:zgravity2 = 2.0;
const Float:zknockback2 = 0.5;
new g_admin;
new g_normal
public plugin_init()
{
register_plugin("[ZP] Class: Admin", "0.1", "AlejandroSk");
g_admin = zp_register_zombie_class(zname, zinfo, zmodel, zweapmodel, zhealth, zspeed, zgravity, zknockback);
g_normal = zp_register_zombie_class(zname2, zinfo2, zmodel2, zweapmodel2, zhealth2, zspeed2, zgravity2, zknockback2);
}
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == g_admin)
{
if (!is_user_admin(id))
{
zp_set_user_zombie_class(id, g_normal)
client_print(id, print_chat, "[ZP] Your class has been set to [Noob Zombie] Because you are not admin.")
}
else {
client_print(id, print_chat, "[ZP] You have selected [Admin Zombie]")
}
}
}
|
Can anybody remake this plugin to not change normal player from admin zombie to noob zombie but slay normal player when he choose admin zombie and send him message "[ZP] You have been slayed because you are not admin". Help pls. Sorry for my english.
|
|
|
|