#include <core> #include <console> #include <string> #include <admin> #include <adminlib> #define ACCESS_CHICKENIZE 1 public chickenization(HLCommand, HLData, HLUserName, UserIndex) { new Command[MAX_TEXT_LENGTH]; new Speech[MAX_DATA_LENGTH]; new User[MAX_NAME_LENGTH]; convert_string(HLData, Speech, MAX_DATA_LENGTH); convert_string(HLUserName, User, MAX_NAME_LENGTH); strstripquotes(Speech); if (!strcmp(Speech,"!chickenize")) { selfmessage("You are now a chicken"); snprintf(Command,MAX_TEXT_LENGTH,"c_chicken # %i", UserIndex); exec(Command); } if (!strcmp(Speech,"!unchickenize")) { selfmessage("You are now a human"); snprintf(Command,MAX_TEXT_LENGTH,"c_unchicken # %i", UserIndex); exec(Command); } return PLUGIN_CONTINUE; } public plugin_init() { plugin_registercmd("say", "chickenization", ACCESS_CHICKENIZE, "say !chickenize, you=chicken; say !unchickenize, you=human."); plugin_registercmd("say_team", "chickenization", ACCESS_CHICKENIZE, "say !chickenize, you=chicken; say !unchickenize, you=human."); plugin_registerinfo("Plugin_chickenize", "allows the user to turn themselves into chickens and back without bugging the admin", "Beta Version 1.0"); return PLUGIN_CONTINUE; }