#include <amxmodx>
#include <amxmisc>
#include <csx>
#define PLUGIN "Rangi"
#define VERSION "1.2"
#define AUTHOR "Bulle [t]"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /ranga", "ranga", 0, "- wyswietla range i statystyki")
}
public ranga(id)
{
static stats[8], body[8]
get_user_stats(id, stats, body)
new ranga[38]
if ( stats[0] >= 0 && stats[0] <= 29)
format(ranga,29,"Spawacz el. Drewnianych")
else if ( stats[0] >= 30 && stats[0] <= 59)
format(ranga,29,"Pracownik Fizyczny")
else if ( stats[0] >= 60 && stats[0] <= 119)
format(ranga,29,"Znakomity Pracownik")
else if ( stats[0] >= 120 && stats[0] <= 209)
format(ranga,29,"Majster")
else if ( stats[0] >= 210 && stats[0] <= 324)
format(ranga,29,"Starszy Majster")
else if ( stats[0] >= 325 && stats[0] <= 499)
format(ranga,29,"Pracownik Fizyczny")
else if ( stats[0] >= 500 && stats[0] <= 729)
format(ranga,29,"Dekorator")
else if ( stats[0] >= 730 && stats[0] <= 999)
format(ranga,29,"Budowlaniec")
else if ( stats[0] >= 1000 && stats[0] <= 1399)
format(ranga,29,"Inzynier")
else if ( stats[0] >= 1400 && stats[0] <= 1849)
format(ranga,29,"Konstruktor")
else if ( stats[0] >= 1850 && stats[0] <= 2299)
format(ranga,29,"Konstruktor Budowlany")
else if ( stats[0] >= 2300 && stats[0] <= 2899)
format(ranga,29,"Projektant")
else if ( stats[0] >= 2900 && stats[0] <= 3549)
format(ranga,29,"Urbanista")
else if ( stats[0] >= 3550 && stats[0] <= 4199)
format(ranga,29,"Architekt")
else if ( stats[0] >= 4200 && stats[0] <= 4999)
format(ranga,29,"Mistrz Architektury Budowlanej")
else if ( stats[0] >= 5000 && stats[0] <= 9999)
format(ranga,29,"Reszta Jest Milczeniem")
set_hudmessage(255, 255, 255, 0.15, 0.45)
show_hudmessage(id, "Ranga: %s^nZabojstw: %d",ranga,stats[0])
}
Użytkownik maciej916 edytował ten post 26.04.2012 16:38