#include #include #include #define PLUGIN "Czapki" #define VERSION "1.0" #define AUTHOR "Cypis" new gEnt[33]; new Array:gModel; new Array:gNazwa; new Array:gBody; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_clcmd("say /hat", "MenuHat"); register_clcmd("say /hats", "MenuHat"); register_clcmd("say /czapki", "MenuHat"); } public plugin_precache() { gModel = ArrayCreate(128); gNazwa = ArrayCreate(64); gBody = ArrayCreate(); ArrayPushString(gModel, "Zadna"); ArrayPushString(gNazwa, "\yZdejmij czapke"); ArrayPushCell(gBody, 0); new configfile[128]; get_configsdir(configfile, 127); add(configfile, 127, "/hats.ini"); if(!file_exists(configfile)) return; new linia[256], txtlen, ilosc; for(new i=0; i