// Sting Finger Zombie Plugin
//
Hello friends,
This is a plugin code to add the Sting Finger zombie to the CSO MOD server, which has the main features of this zombie:
More speed than a normal zombie
Lower gravity and therefore higher jump
Ability to change to this zombie with a simple command (/sf)
The code is quite simple and expandable, and you can create a more realistic experience by adding appropriate models and images. I couldn't test it, but I made a code for you. Does it help?
#include <amxmodx>
#include <fakemeta>
#define ZOMBIE_STING_FINGER 3
public plugin_init()
{
register_plugin("Sting Finger Zombie", "1.0", "amirhosin1243563");
register_event("player_spawn", "onPlayerSpawn");
register_cmd("say /sf", "cmd_stingfinger", 0);
}
public onPlayerSpawn(id)
{
if (is_user_alive(id))
{
set_user_class(id, ZOMBIE_STING_FINGER);
set_user_speed(id, 280);
set_user_gravity(id, 0.7);
client_print(id, print_chat, "You are now Sting Finger Zombie!");
}
}
public cmd_stingfinger(id)
{
if (!is_user_alive(id)) return PLUGIN_HANDLED;
set_user_class(id, ZOMBIE_STING_FINGER);
set_user_speed(id, 280);
set_user_gravity(id, 0.7);
client_print(id, print_chat, "You switched to Sting Finger Zombie!");
return PLUGIN_HANDLED;
}