#include <amxmodx> #include <amxmisc> #include <csx> #define PLUGIN "Rangi - /rank" #define VERSION "1.2" #define AUTHOR "Sn!ff3r" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /rank", "rank", 0, "- wyswietla range i statystyki") } public rank(id) { static stats[8], body[8], rankpos, rankmax get_user_stats(id, stats, body) rankpos = get_user_stats(id, stats, body) rankmax = get_statsnum() client_print(id, print_chat, "* Jestes na poziomie %s, zajmujesz %d pozycje z %d ogolem", get_rankname(stats[0]), rankpos, rankmax) client_print(id, print_chat, "* Posiadasz %d zabojstw, %d smierci oraz %d headshot'ow, zadajac %d obrazen.", stats[0], stats[1], stats[2], stats[6]) return PLUGIN_HANDLED } stock get_rankname(frags) { static ranga[30] if ( frags >= 0 && frags <= 29) formatex(ranga,29,"Newbie") else if ( frags >= 30 && frags <= 59) formatex(ranga,29,"Noobek") else if ( frags >= 60 && frags <= 119) formatex(ranga,29,"Podbot") else if ( frags >= 120 && frags <= 209) formatex(ranga,29,"Zbot") else if ( frags >= 210 && frags <= 324) formatex(ranga,29,"Poczatkujacy Nina") else if ( frags >= 325 && frags <= 499) formatex(ranga,29,"Nina") else if ( frags >= 500 && frags <= 729) formatex(ranga,29,"Przyczajony Nina") else if ( frags >= 730 && frags <= 999) formatex(ranga,29,"Latajacy Smok") else if ( frags >= 100 && frags <= 1399) formatex(ranga,29,"Spiacy Tygrys") else if ( frags >= 1400 && frags <= 1849) formatex(ranga,29,"Rambo") else if ( frags >= 1850 && frags <= 2299) formatex(ranga,29,"Terminator") else if ( frags >= 2300 && frags <= 2899) formatex(ranga,29,"Zamaskowany") else if ( frags >= 2900 && frags <= 3549) formatex(ranga,29,"Zabujca") else if ( frags >= 4200 && frags <= 4999) formatex(ranga,29,"Mistrz Miecza") else if ( frags >= 5000 && frags <= 5899) formatex(ranga,29,"Killer") else if ( frags >= 5900 && frags <= 6899) formatex(ranga,29,"Niewidzialny") else if ( frags >= 6900 && frags <= 7999) formatex(ranga,29,"Chuck Norris") else if ( frags >= 8000 && frags <= 9299) formatex(ranga,29,"Lela Star") else if ( frags >= 9300 && frags <= 12000) formatex(ranga,29,"Shasa Grey") else if ( frags >= 12001 ) formatex(ranga,29,"Master") return ranga }
Co mam zle ? Poniewaz wgrywam range na serwer , a ona dalej jest wiesniak i sie nie zmienia. Resetowalem serwer itp i nic. Jezeli mozecie to odpiszcie i poprawcie co mam zle , lub napiszcie Dzięki.