ALIENCORE.RO # Experience GAMING !
ALIENCORE.RO # Experience GAMING !
ALIENCORE.RO # Experience GAMING !
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.



 
AcasaAcasa  Ultimele imaginiUltimele imagini  CăutareCăutare  ÎnregistrareÎnregistrare  ConectareConectare  

Distribuiţi|

Rank Display

Vezi subiectul anterior Vezi subiectul urmator In jos
AutorMesaj
haiducel
Rank Display Icon_user_offline


Rank:
Mesaje : 350
Data de inscriere : 27/03/2013
Varsta : 40
Localizare : FFM
Rank Display Empty
MesajSubiect: Rank Display Rank Display I_icon_minitimeMier Mar 27, 2013 11:04 am

Descriere: Acest plugin va arata toate kill-urile in hud , plus ca va arata si un grad care se schimba la un anumit nr. de frage/kill-uri

Gradele:
Cod:
Soldat
Private
Private First Class
Corporal
Sergeant
Staff Sergeant
Gunnery Sergeant
Master Sergeant
Command Sergeant
Second Lieutenant
First Lieutenant
Colonel
Brigadier General
Major General
Lietenant General
General
General of the Army


Descarcare:

Rank_Display | Afiseaza codul

Cod:

/* -------------------------------------------------------------------- */
__ __ ____
||\\ //|| || || // |____
|| \\// || || ||// ||
|| \/ || || |// |____
|| || || |\\ |____
|| || || ||\\ ||___
|| || || || \\ |____


Dedicatie pentru cel mai bun prieten al meu KillerMIK3
/* -------------------------------------------------------------------- */

#include <amxmodx>
#include <amxmisc>
#include <csstats>

#define HUD_INTERVAL 1.0

#define RANK_NONE 19 // D
#define RANK_NONE2 18 // e
#define RANK_SOLDAT 17 // d
#define RANK_PRIVATE 16 // i
#define RANK_PRIVATE_FIRST_CLASS 15 // c
#define RANK_CORPORAL 14 // a
#define RANK_SERGEANT 13 // t
#define RANK_STAFF_SERGEANT 12 // i
#define RANK_GUNNERY_SERGEANT 11 // e
#define RANK_MASTER_SERGEANT 10 //
#define RANK_COMMAND_SERGEANT 9 // p
#define RANK_SECOND_LIEUTENANT 8 // e
#define RANK_FIRST_LIEUTENANT 7 // n
#define RANK_COLONEL 6 // t
#define RANK_BRIGADIER_GENERAL 5 // r
#define RANK_MAJOR_GENERAL 4 // u
#define RANK_LIEUTENANT_GENERAL 3 //
#define RANK_GENERAL 2 //
#define RANK_GENERAL_OF_THE_ARMY 1 //

#define MAXRANKS 19

new PlayerRank[33]

new const RANKS[MAXRANKS][] =
{
"None", // K
"None2", // i
"Soldat", // l
"Private", // l
"Private First Class", // e
"Corporal", // r
"Sergeant", // M
"Staff Sergeant", // I
"Gunnery Sergeant", // K
"Master Sergeant", // 3
"Command Sergeant", //
"Second Lieutenant", // D
"First Lieutenant", // e
"Colonel", // l
"Brigadier General", // a
"Major General", // G
"Lietenant General", // a
"General", // B
"General of the Army" // y
}

public plugin_init()
{
register_plugin("Rank Display", "1.0", "GaBy @ CServers Gaming")
}

public client_putinserver(id)
{
set_task(HUD_INTERVAL, "ShowHUD", id)
return 0
}

public ShowHUD(id)
{
if(!is_user_connected(id))
return 0

new stats[8]
new hits[8]
get_user_stats(id, stats, hits)

new name[33]
get_user_name(id, name, 32)

if(stats[0] >= 0)
{
PlayerRank[id] = RANK_NONE
}
if(stats[0] >= 0)
{
PlayerRank[id] = RANK_NONE2
}
if(stats[0] >= 0 || stats[0] <= 100)
{
PlayerRank[id] = RANK_SOLDAT
}
if(stats[0] >= 100 || stats[0] <= 200)
{
PlayerRank[id] = RANK_PRIVATE
}
if(stats[0] >= 201 || stats[0] <= 400)
{
PlayerRank[id] = RANK_PRIVATE_FIRST_CLASS
}
if(stats[0] >= 401 || stats[0] <= 800)
{
PlayerRank[id] = RANK_CORPORAL
}
if(stats[0] >= 801 || stats[0] <= 1000)
{
PlayerRank[id] = RANK_SERGEANT
}
if(stats[0] >= 1001 || stats[0] <= 2000)
{
PlayerRank[id] = RANK_STAFF_SERGEANT
}
if(stats[0] >= 2001 || stats[0] <= 4000)
{
PlayerRank[id] = RANK_GUNNERY_SERGEANT
}
if(stats[0] >= 4001 || stats[0] <= 8000)
{
PlayerRank[id] = RANK_MASTER_SERGEANT
}
if(stats[0] >= 8001 || stats[0] <= 10000)
{
PlayerRank[id] = RANK_COMMAND_SERGEANT
}
if(stats[0] >= 10001 || stats[0] <= 12000)
{
PlayerRank[id] = RANK_SECOND_LIEUTENANT
}
if(stats[0] >= 12001 || stats[0] <= 15000)
{
PlayerRank[id] = RANK_FIRST_LIEUTENANT
}
if(stats[0] >= 15001 || stats[0] <= 20000)
{
PlayerRank[id] = RANK_COLONEL
}
if(stats[0] >= 20001 || stats[0] <= 40000)
{
PlayerRank[id] = RANK_BRIGADIER_GENERAL
}
if(stats[0] >= 40001 || stats[0] <= 50000)
{
PlayerRank[id] = RANK_MAJOR_GENERAL
}
if(stats[0] >= 50001 || stats[0] <= 80000)
{
PlayerRank[id] = RANK_LIEUTENANT_GENERAL
}
if(stats[0] >= 80001 || stats[0] <= 100000)
{
PlayerRank[id] = RANK_GENERAL
}
if(stats[0] >= 100001)
{
PlayerRank[id] = RANK_GENERAL_OF_THE_ARMY
}

set_hudmessage(0, 200, 0, 0.0, 0.6, 0, 6.0, 12.0)
show_hudmessage(id, "[%s - %s] Kills: %i", name, RANKS[PlayerRank[id]], stats[0])

set_task(HUD_INTERVAL, "ShowHUD", id)

return 0
}

Nume: Rank Display
Versiune: 1.0
Link oficial: http://www.cservers.ro/forum/viewtopic.php?f=100&t=1503

Instalare:
1. Fisierul rank_display.sma il puneti in addons/amxmodx/scripting
2. Fisierul rank_display.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cod:
rank_display.amxx

4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):
-Nu sunt.

Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):
-Nu sunt.

Comenzi publice (se tasteaza in joc prin apasarea tastei Y):
-Nu sunt.

Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
Cod:
#include <amxmodx>
#include <amxmisc>
#include <csstats>


Imagini:
Cu 0 kill-uri.


Atentie!
Daca copiati acest plugin pe alte site-uri pastrati macar copyright-ul:
Cod:
Copyright © 2012 by GaBy® @ CServers Gaming ~> www.cservers.ro
Sus In jos

Rank Display

Vezi subiectul anterior Vezi subiectul urmator Sus

Subiecte similare

-
t Rank / Rankstats / Top v.0.2
t Rank stats 2012
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
ALIENCORE.RO # Experience GAMING ! :: Counter-Strike 1.6 Zone :: Resurse Counter-Strike 1.6 :: Plugins-