/* Plugin generated by AMXX-Studio
By Sn!ff3r, requested by Myszax
*/
#include <amxmodx>
#include <amxmisc>
#include <csx>
#define PLUGIN "Rangi"
#define VERSION "3.0"
#define AUTHOR "x"
#define TASK 666
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
reguster_plugin("Napis","1.0","ranga")
set_task(5.1,"napis")
}
public client_connect(id)
{
if(is_user_bot(id))
return
new param[1]
param[0] = id
set_task(1.0,"rank",TASK+id,param,1,"b")
}
public client_disconnect(id)
if(task_exists(TASK+id))
remove_task(TASK+id)
public rank(param[])
{
new id = param[0]
static stats[8], body[8]
get_user_stats(id, stats, body)
new ranga[30]
if ( stats[0] >= 0 && stats[0] <= 30)
format(ranga,29,"Szeregowy")
else if ( stats[0] >= 31 && stats[0] <= 60)
format(ranga,29,"Starszy Szeregowy")
else if ( stats[0] >= 61 && stats[0] <= 120)
format(ranga,29,"Młodszy Kapral")
else if ( stats[0] >= 121 && stats[0] <= 200)
format(ranga,29,"Kapral")
else if ( stats[0] >= 201 && stats[0] <= 340)
format(ranga,29,"Sierżant")
else if ( stats[0] >= 341 && stats[0] <= 600)
format(ranga,29,"Podporucznik")
else if ( stats[0] >= 601 && stats[0] <= 800)
format(ranga,29,"Porucznik")
else if ( stats[0] >= 801 && stats[0] <= 1100)
format(ranga,29,"Kapitan")
else if ( stats[0] >= 1001 && stats[0] <= 1400)
format(ranga,29,"Podpułkownik")
else if ( stats[0] >= 1401 && stats[0] <= 1800)
format(ranga,29,"Pułkownik")
else if ( stats[0] >= 1801 && stats[0] <= 9999)
format(ranga,29,"Generał")
public napis()
{
set_hudmessage(0, 0, 255, 0.01, 0.55, 0, 6.0, 5.0)
show_hudmessage(0, "Ranga: %s^nZabójstw: %d",ranga,stats[0])
}
}<div class="info"></div>
Niewiem co mam zrobic, chce aby napis byl non stop, lecz pisze on tylko gdy wpisze /rank ... Pomoże ktoś z tym syfem? Postwie +