New_style_rank

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
mast3rwap
Membru, skill +1
Membru, skill +1
Posts: 324
Joined: 11 Feb 2012, 21:32
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: da
SteamID: berlo1990
Location: italia
Has thanked: 30 times
Been thanked: 5 times
Contact:

26 Jul 2012, 19:48

Deci am urmatorul sma facut de Alka,

Code: Select all

/* Fisier descarcat de pe www.eXtreamCS.com! */

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

#define PLUGIN "New Style Rank"
#define VERSION "1.0"
#define AUTHOR "Alka"

public plugin_init() {
	
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /rank","_show_rank")
}

public _show_rank(id)
{
	
	new stats[8], stats2[4], body[8]
	new rank_pos = get_user_stats(id,stats,body)
	new max_rank = get_statsnum()
	
	get_user_stats2(id,stats2)
	
	new motd[1501], len
	
	len = format(motd, 1500,"<body bgcolor=#000000><font color=#87cefa><pre>")
        len += format(motd[len], 1500-len,"<center><img src=^"http://img803.imageshack.us/img803/9389/originalwithouteffects1.png^"></center></img>")
	len += format(motd[len], 1500-len,"<center><h4><font color=^"blue^"> Statisticile tale In 'Nume server' </font></h4></center>")
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Rank :</B> <font color=^"white^">%d / %d</color></left>^n", rank_pos, max_rank)
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Ucideri :</B> <font color=^"white^"> %d</color></left>^n",stats[0])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Morti :</B> <font color=^"white^"> %d</color></left>^n",stats[1])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Headshot`uri :</B> <font color=^"white^"> %d</color></left>^n",stats[2])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Damage :</B> <font color=^"white^"> %d</color></left>^n",stats[6])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Lovituri :</B> <font color=^"white^"> %d</color></left>^n",stats[4])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Atingeri ;</B> <font color=^"white^"> %d</color></left>^n",stats[5])
	len += format(motd[len], 1500-len,"<left><font color=^"blue^">----------------------------------</color></left>^n")
	len += format(motd[len], 1500-len,"<left><font color=^"red^">Eficienta : <font color=^"white^"> %3.0f%%</color></left>^n",effec(stats))
	len += format(motd[len], 1500-len,"<left><font color=^"red^">Acceleratie : <font color=^"white^"> %3.0f%%</color></left>^n",accuracy(stats))
	len += format(motd[len], 1500-len,"<left><font color=^"blue^">----------------------------------</color></left>^n^n")
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe dezamorsate :</B> <font color=^"white^">%d </color></left>^n",stats2[1])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe plantate :</B> <font color=^"white^">%d </color></left>^n",stats2[2])
	len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe explodate :</B> <font color=^"white^">%d </color></left>^n^n",stats2[3])
	
	
	show_motd(id, motd, "Rank`ul tau")
	
	return 1;
}

Float:accuracy(stats[8]) {
	
	if(!stats[4])
		return ( 0.0 );
	new Float:result
	result = 100.0 * float( stats[5] ) / float( stats[4] );
	return (result > 100.0) ? 100.0 : result
}

Float:effec(stats[8]) {
	
	if(!stats[0])
		return ( 0.0 );
	new Float:result
	result = 100.0 * float( stats[0] ) / float( stats[0] + stats[1] );
	return (result > 100.0) ? 100.0 : result
}
AS DORI SA IMI ADAUGATI SI UN SUNET LA EL,CAND SCRIE /RANK,DACA SE POATE,NU AM SUNETUL,LAS LA ALEGEREA VOASTRA DACA GASITI UNU,..Si AS DORI SA SCOATETI LINIA
len += format(motd[len], 1500-len,"<center><h4><font color=^"blue^"> Statisticile tale In 'Nume server' </font></h4></center>")
E INUTILA pentru CA AM UPLOADAT IMAGINE SI APARE ACOLO STATISTICI etc.DAU +1:D
User avatar
Ulquiorra
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2054
Joined: 25 Jul 2010, 16:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Scripter eXtreamCS
Nick anterior: sPuf ?, a^ml), Loca Tapioca, Askhanar
Fost Moderator ajutator
Location: Braila, Romania.
Has thanked: 214 times
Been thanked: 1131 times
Contact:

27 Jul 2012, 00:36

ti`l fac eu maine la prima ora.. acum sunt prea obosit.. si sigur gresesc cv..
""Copilarie, iarta-ma c-am vrut sa fiu om mare.. ""
User avatar
K1d0x
Fost moderator
Fost moderator
Posts: 800
Joined: 26 Feb 2012, 15:57
Detinator Steam: Da
CS Status: We Build Together ;3 RedFear
Detinator server CS: PuB.RedFear.Ro
SteamID: k1dox
Reputatie: Fost moderator ajutator
Location: Reșița
Been thanked: 152 times
Contact:

27 Jul 2012, 02:07

Sunetul il iei de aici -> http://ig4.me/download/cstrike/sound/mi ... eforce.wav
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <csstats>

#define PLUGIN "New Style Rank"
#define VERSION "1.0"
#define AUTHOR "Alka"

public plugin_init() {
   
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_clcmd("say /rank","_show_rank")
}

public plugin_precache() {
   precache_sound("misc/maytheforce.wav")
}

public _show_rank(id)
{
   
   new stats[8], stats2[4], body[8]
   new rank_pos = get_user_stats(id,stats,body)
   new max_rank = get_statsnum()
   
   get_user_stats2(id,stats2)
   
   new motd[1501], len
   
   len = format(motd, 1500,"<body bgcolor=#000000><font color=#87cefa><pre>")
   len += format(motd[len], 1500-len,"<center><img src=^"http://img803.imageshack.us/img803/9389 ... nter></img>")
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Rank :</B> <font color=^"white^">%d / %d</color></left>^n", rank_pos, max_rank)
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Ucideri :</B> <font color=^"white^"> %d</color></left>^n",stats[0])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Morti :</B> <font color=^"white^"> %d</color></left>^n",stats[1])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Headshot`uri :</B> <font color=^"white^"> %d</color></left>^n",stats[2])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Damage :</B> <font color=^"white^"> %d</color></left>^n",stats[6])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Lovituri :</B> <font color=^"white^"> %d</color></left>^n",stats[4])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Atingeri ;</B> <font color=^"white^"> %d</color></left>^n",stats[5])
   len += format(motd[len], 1500-len,"<left><font color=^"blue^">----------------------------------</color></left>^n")
   len += format(motd[len], 1500-len,"<left><font color=^"red^">Eficienta : <font color=^"white^"> %3.0f%%</color></left>^n",effec(stats))
   len += format(motd[len], 1500-len,"<left><font color=^"red^">Acceleratie : <font color=^"white^"> %3.0f%%</color></left>^n",accuracy(stats))
   len += format(motd[len], 1500-len,"<left><font color=^"blue^">----------------------------------</color></left>^n^n")
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe dezamorsate :</B> <font color=^"white^">%d </color></left>^n",stats2[1])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe plantate :</B> <font color=^"white^">%d </color></left>^n",stats2[2])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe explodate :</B> <font color=^"white^">%d </color></left>^n^n",stats2[3])
   emit_sound(id, CHAN_VOICE, "misc/maytheforce.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
   
   show_motd(id, motd, "Rank`ul tau")
   
   return 1;
}

Float:accuracy(stats[8]) {
   
   if(!stats[4])
      return ( 0.0 );
   new Float:result
   result = 100.0 * float( stats[5] ) / float( stats[4] );
   return (result > 100.0) ? 100.0 : result
}

Float:effec(stats[8]) {
   
   if(!stats[0])
      return ( 0.0 );
   new Float:result
   result = 100.0 * float( stats[0] ) / float( stats[0] + stats[1] );
   return (result > 100.0) ? 100.0 : result
}
Image
32slots.net - Sursa ta de încredere de KIT-uri CS 1.6
RedFear.Ro România - | Afiseaza codul
Vă aştept cu un Register pe Forum
- Suntem în căutare de Dezvoltatori & Administratori :
HTML
PHP
MYSQL
C++
Ofer Server CS spre administrare | Afiseaza codul
Condiții : 
- Să dispui de timp liber
- Să ai cunoștințe AMXX & HLDS
Boostul este asigurat de către Mine (PM pentru. detalii)
ik1d0x@redfear.ro
mast3rwap
Membru, skill +1
Membru, skill +1
Posts: 324
Joined: 11 Feb 2012, 21:32
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: da
SteamID: berlo1990
Location: italia
Has thanked: 30 times
Been thanked: 5 times
Contact:

27 Jul 2012, 22:01

Merge,dar as vrea ca sunetul sa se auda doar mie nu la toti in chat..
User avatar
J3FF
Membru, skill +1
Membru, skill +1
Posts: 472
Joined: 27 Oct 2007, 19:02
Detinator Steam: Nu
CS Status: ON and Ready 2 PLAY
Detinator server CS: Nu
Location: SiBiU
Has thanked: 25 times
Been thanked: 39 times
Contact:

27 Jul 2012, 22:03

Ar trebui sa il auzi doar tu , pentru ca
emit_sound(id, CHAN_VOICE, "misc/maytheforce.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
id = doar cel care tasteaza comanda
0 = toti
Unii ma mai stiu de e t n a d

Image
User avatar
Ulquiorra
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2054
Joined: 25 Jul 2010, 16:29
Detinator Steam: Da
CS Status: A mai trecut o zi asteptand una mai buna
Detinator server CS: Retras.
SteamID: STEAM_0:1:318247XX
Reputatie: Scripter eXtreamCS
Nick anterior: sPuf ?, a^ml), Loca Tapioca, Askhanar
Fost Moderator ajutator
Location: Braila, Romania.
Has thanked: 214 times
Been thanked: 1131 times
Contact:

28 Jul 2012, 12:46

J3FF wrote:Ar trebui sa il auzi doar tu , pentru ca
emit_sound(id, CHAN_VOICE, "misc/maytheforce.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
id = doar cel care tasteaza comanda
0 = toti
emit sound.. face ca sunetul sa se auda la originile la care se afla 'id' si toti cei ce sunt la o anumita distanta de el.. vor auzi sunetul..
cu cat e distanta mai mare cu atat auzi sunetul mai incet..
poftim | Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <csstats>

#define PLUGIN "New Style Rank"
#define VERSION "1.0"
#define AUTHOR "Alka"

public plugin_init() {
   
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_clcmd("say /rank","_show_rank")
}

public plugin_precache() {
   precache_sound("misc/maytheforce.wav")
}

public _show_rank(id)
{
   
   new stats[8], stats2[4], body[8]
   new rank_pos = get_user_stats(id,stats,body)
   new max_rank = get_statsnum()
   
   get_user_stats2(id,stats2)
   
   new motd[1501], len
   
   len = format(motd, 1500,"<body bgcolor=#000000><font color=#87cefa><pre>")
   len += format(motd[len], 1500-len,"<center><img src=^"http://img803.imageshack.us/img803/9389 ... nter></img>")
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Rank :</B> <font color=^"white^">%d / %d</color></left>^n", rank_pos, max_rank)
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Ucideri :</B> <font color=^"white^"> %d</color></left>^n",stats[0])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Morti :</B> <font color=^"white^"> %d</color></left>^n",stats[1])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Headshot`uri :</B> <font color=^"white^"> %d</color></left>^n",stats[2])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Damage :</B> <font color=^"white^"> %d</color></left>^n",stats[6])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Lovituri :</B> <font color=^"white^"> %d</color></left>^n",stats[4])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Atingeri ;</B> <font color=^"white^"> %d</color></left>^n",stats[5])
   len += format(motd[len], 1500-len,"<left><font color=^"blue^">----------------------------------</color></left>^n")
   len += format(motd[len], 1500-len,"<left><font color=^"red^">Eficienta : <font color=^"white^"> %3.0f%%</color></left>^n",effec(stats))
   len += format(motd[len], 1500-len,"<left><font color=^"red^">Acceleratie : <font color=^"white^"> %3.0f%%</color></left>^n",accuracy(stats))
   len += format(motd[len], 1500-len,"<left><font color=^"blue^">----------------------------------</color></left>^n^n")
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe dezamorsate :</B> <font color=^"white^">%d </color></left>^n",stats2[1])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe plantate :</B> <font color=^"white^">%d </color></left>^n",stats2[2])
   len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Bombe explodate :</B> <font color=^"white^">%d </color></left>^n^n",stats2[3])
   client_cmd(id, "spk ^"misc/maytheforce.wav^"" );
   
   show_motd(id, motd, "Rank`ul tau")
   
   return 1;
}

Float:accuracy(stats[8]) {
   
   if(!stats[4])
      return ( 0.0 );
   new Float:result
   result = 100.0 * float( stats[5] ) / float( stats[4] );
   return (result > 100.0) ? 100.0 : result
}

Float:effec(stats[8]) {
   
   if(!stats[0])
      return ( 0.0 );
   new Float:result
   result = 100.0 * float( stats[0] ) / float( stats[0] + stats[1] );
   return (result > 100.0) ? 100.0 : result
}
""Copilarie, iarta-ma c-am vrut sa fiu om mare.. ""
mast3rwap
Membru, skill +1
Membru, skill +1
Posts: 324
Joined: 11 Feb 2012, 21:32
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: da
SteamID: berlo1990
Location: italia
Has thanked: 30 times
Been thanked: 5 times
Contact:

28 Jul 2012, 19:03

Rezolvat.ms
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests