Pytanie ;]
Seba 29.07.2009
A gdzie masz serwer ?
Ew. sprawdź tym
Ew. sprawdź tym
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "AMD or INTEL Linux" #define VERSION "1.0" #define AUTHOR "Sn!ff3r" #define ACCESS ADMIN_KICK public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) if(is_linux_server()) { register_clcmd("say cpubrand", "check_brand") } } public check_brand(id) { if(get_user_flags(id) & ACCESS) { static file, buffer[128] static cpuinfo[] = "../../../../../proc/cpuinfo" file = fopen(cpuinfo, "rt") while(!feof(file)) { fgets(file, buffer, 127) if(containi(buffer, "Intel") != -1) { client_print(id, print_chat, "Serwer oparty o procesor Intel") break } else if(containi(buffer, "AMD") != -1) { client_print(id, print_chat, "Serwer oparty o procesor AMD") break } } fclose(file) } }