Rank - Rankstats - Top | RRT v.0.3.1 [21.02.2013]

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Revolution
Membru, skill +3
Membru, skill +3
Posts: 1000
Joined: 12 Feb 2010, 22:38
Detinator Steam: Da
CS Status: Evolution Is The Solution
Detinator server CS: cs.lord-war.com
Reputatie: Ban 2 luni !
Membru Club eXtreamCS (2 luni)
Has thanked: 61 times
Been thanked: 42 times
Contact:

31 Mar 2013, 09:35

Pacat ca nu merge /hp si /me sau /resetscore (am pus pluginul de /rs , /resetscore dar tot raman deathurile in /rank , chiar daca se sterg atunci cand apesi pe tab :)) )
User avatar
L.Messi
Membru, skill 0
Membru, skill 0
Posts: 80
Joined: 05 Mar 2012, 21:28
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: Romania.CS16.Ro
SteamID: viperateracs
Location: Cluj
Has thanked: 6 times
Been thanked: 1 time
Contact:

11 Apr 2013, 10:33

Asta e gen statsx_shell
User avatar
fLG
Membru, skill 0
Membru, skill 0
Posts: 84
Joined: 18 May 2011, 14:27
Detinator Steam: Da
CS Status: Nume Anterior:NeuroN
Detinator server CS: zombie.indungi.ro
SteamID: flg_hd
Location: Pakistan
Has thanked: 1 time
Been thanked: 5 times
Contact:

11 Apr 2013, 21:36

Vb lui Messi.
E la fel ca statx_shell :))
Scripter CS 1.6 Romania

Nick:fLG
Varsta:16
Sex:Masculin
Ocupatie:Femei
Ce iti place sa faci in timpu liber?:Sex,Smoke Weed,Drunk

NEW 2013: Voi reveni cu un addons zombie CSO fiti pe faza pe forum!
User avatar
Arion
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3316
Joined: 15 May 2008, 20:19
Detinator Steam: Da
SteamID: arion1338
Reputatie: Fost Mapper eXtreamCS
Fost Detinator HNS.eXtreamCS.com
Nume anterior : Seekers
Scripter Echipa eXtreamCS
Fost Moderator jutator
Location: Copenhagen
Has thanked: 400 times
Been thanked: 412 times
Contact:

12 Apr 2013, 00:35

L.Messi wrote:Asta e gen statsx_shell
Poze , link , ceva?
Join the biggest end-game club in Trove
Image
User avatar
sDs|Aragon*
Membru, skill +2
Membru, skill +2
Posts: 576
Joined: 29 Dec 2011, 21:38
Detinator Steam: Da
SteamID: Mihai_Parkour10
Reputatie: Fost scripter eXtreamCS
Location: Caracal
Has thanked: 3 times
Been thanked: 132 times
Contact:

12 Apr 2013, 14:15

Ex3cuTioN wrote:
L.Messi wrote:Asta e gen statsx_shell
Poze , link , ceva?
La asta se refera: http://forums.alliedmods.net/showthread.php?t=159046
User avatar
Arion
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 3316
Joined: 15 May 2008, 20:19
Detinator Steam: Da
SteamID: arion1338
Reputatie: Fost Mapper eXtreamCS
Fost Detinator HNS.eXtreamCS.com
Nume anterior : Seekers
Scripter Echipa eXtreamCS
Fost Moderator jutator
Location: Copenhagen
Has thanked: 400 times
Been thanked: 412 times
Contact:

12 Apr 2013, 23:30

N-au nici o legatura.
Nici nu stiam de existenta acelui plugin.
Sunt diferite complet, acela e mult mai avansat.
Join the biggest end-game club in Trove
Image
User avatar
Darkq
Membru, skill 0
Membru, skill 0
Posts: 39
Joined: 13 Apr 2013, 11:57
Detinator Steam: Da
CS Status: Sunt sămânţar, prin concluzie porumbel.
Detinator server CS: DR.CS32.RO
SteamID: Nu il fac public.
Location: Bistrita
Has thanked: 1 time
Contact:

13 Apr 2013, 16:03

Felicitari pentru plugin, e reusit =D> :>
[Fondator] Pe comunitatea http://www.cs32.ro, un forum special cu utilizatori speciali.
[Detinator] Al serverului, deathrun DR.CS32.RO, XP-Mod , Vip-Mod , SkiilsMod & PointMod
[Recomand] Scripter AmxModX pe Hades Ownage, deoarece este foarte priceput.

[Versuri]Baiatu'i fresh din cap pana'n picioare, zici ca am fost neatent cand storceam PORTOCALE

[Multumesc]Daca te-am ajutat, apasa pe butonul Image
Image
M3taph0riK
Membru eXtream
Membru eXtream
Posts: 2127
Joined: 16 Jan 2013, 12:55
Detinator Steam: Da
CS Status: Utilizator Serios
SteamID: Utilizator Serios
Reputatie: Restrictie moderator
Nume anterior: RzV24
Utilizator neserios (tepar)
Has thanked: 60 times
Been thanked: 250 times

16 Apr 2013, 22:29

Pentru cei care vreti sa va ramana comanda /me bagati acest plugin:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <csx>


#define PLUGIN "/me PublicStars"
#define VERSION "1.0"
#define AUTHOR "M3taph0riK"

#define MAX_NAME_LENGTH         31
#define MAX_BUFFER_LENGTH       2047

#define STATS_HITS              5
#define STATS_DAMAGE            6

// Global player flags.
new BODY_PART[8][] =
{
    "WHOLEBODY", 
    "HEAD", 
    "CHEST", 
    "STOMACH", 
    "LEFTARM", 
    "RIGHTARM", 
    "LEFTLEG", 
    "RIGHTLEG"
}

new g_sBuffer[MAX_BUFFER_LENGTH + 1]                = ""
new t_sName[MAX_NAME_LENGTH + 1]                    = ""

public SayMe                = 1 // displays user's stats

public plugin_init() 
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_dictionary("statsx.txt")

	register_clcmd("say /me", "cmdMe", 0, "- display current round stats (chat)")
	register_clcmd("say_team /me", "cmdMe", 0, "- display current round stats (chat)")
}

// Get and format killed stats: hits, damage on killer.
format_kill_vinfo(id, iKiller, sBuffer[MAX_BUFFER_LENGTH + 1])
{
    new iFound = 0
    new izStats[8]
    new izBody[8]
    new iLen

    izStats[STATS_HITS] = 0
    izStats[STATS_DAMAGE] = 0
    get_user_vstats(id, iKiller, izStats, izBody)

    if (iKiller && iKiller != id)
    {
        iFound = 1
        get_user_name(iKiller, t_sName, MAX_NAME_LENGTH)
        iLen = format(sBuffer, MAX_BUFFER_LENGTH, "%L >>", id, "YOU_HIT", t_sName, izStats[STATS_HITS], izStats[STATS_DAMAGE])
    }
    else
        iLen = format(sBuffer, MAX_BUFFER_LENGTH, "%L >>", id, "LAST_RES", izStats[STATS_HITS], izStats[STATS_DAMAGE])

    if (izStats[STATS_HITS])
    {
        for (new i = 1; i < 8; i++)
        {
            if (!izBody)
                continue
            
            iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, " %L: %d", id, BODY_PART, izBody)
        }
    }
    else
        iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, " %L", id, "NO_HITS")
    
    return iFound
}

// Display user stats.
public cmdMe(id)
{
    if (!SayMe)
    {
        client_print(id, print_chat, "* Statistici dezactivate")
        return PLUGIN_HANDLED
    }
    
    format_kill_vinfo(id, 0, g_sBuffer)
    client_print(id, print_chat, "* %s", g_sBuffer)
    
    return PLUGIN_CONTINUE
}
User avatar
Laur3
Membru, skill +1
Membru, skill +1
Posts: 149
Joined: 09 Jan 2013, 11:36
Detinator Steam: Da
Has thanked: 29 times
Been thanked: 1 time

29 May 2013, 18:42

Ce are? Nu se compileaza, imi da erori la linia 41.
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <csx>

#pragma semicolon 1

new gNum;
new cvar_rank, cvar_rankstats, cvar_top, cvar_topnum, cvar_title, cvar_connect;

public plugin_init() {
	register_plugin("RRT", "0.3.1 ", "Ex3cuTioN");
	
	register_clcmd("say", "hook_say");
	register_clcmd("say_team", "hook_say");
	
	register_clcmd("amx_rank", "cmdRank");
	register_clcmd("amx_rankstats", "cmdRankstats");
	
	cvar_top = register_cvar("rrt_top","0");
	cvar_rank = register_cvar("rrt_rank","1");
	cvar_rankstats = register_cvar("rrt_rankstats","1");
	cvar_topnum = register_cvar("rrt_topnum", "10");
	cvar_title = register_cvar("rrt_title", "Top playeri");
	cvar_connect = register_cvar("rrt_connect", "0");
}

public hook_say(id) {
	static s_Args[192];
	
	read_args(s_Args, sizeof(s_Args) - 1);
	remove_quotes(s_Args);
	
	if(equal(s_Args, "/rank", 5) || equal(s_Args,"/rankstats",10)) {
		replace(s_Args, sizeof(s_Args) - 1, "/", "");
		client_cmd(id, "amx_%s", s_Args);
	}	
	
	if(equal(s_Args,"/top",4)) {
		if(get_pcvar_num(cvar_top) == 0) {
			ColorChat(id,GREEN,"[Fun]^x01 Top ^x04dezactivat^x01.");
			return PLUGIN_HANDLED;
		}
		
		replace(s_Args,sizeof(s_Args) - 1,"/top","");
		gNum = str_to_num(s_Args);
		
		cmdTop15(id);
	}
	
	return PLUGIN_CONTINUE;
}

/*public client_putinserver(id) {
	new connect = get_pcvar_num(cvar_connect);
	
	if(connect == 0)
		return PLUGIN_HANDLED;
	
	new name[32], izStats[8], izBody[8], iRankPos, iRankMax;

	iRankMax = get_statsnum();
	iRankPos = get_user_stats(id, izStats, izBody);
	
	get_user_name(id, name, 31);
	
	if(connect == 2)
		ColorChat(0, GREEN,"[Fun]^x03 %s^x01 se conecteaza pe server,^x04 rank %d ^x01din ^x04%d^x01 cu ^x04%d kills^x01 si^x04 %d deaths^x01.", name, iRankPos, iRankMax, izStats[0], izStats[1]);
	else if(connect == 1)
		ColorChat(0, GREEN,"[Fun]^x03 %s^x01 se conecteaza pe server,^x04 rank %d ^x01din ^x04%d^x01.", name, iRankPos, iRankMax);
	
	return PLUGIN_CONTINUE;
}*/

public client_disconnect(id){
	new connect = get_pcvar_num(cvar_connect);
	
	if(connect == 0) return PLUGIN_HANDLED;
	
	new name[32], izStats[8], izBody[8], iRankPos, iRankMax;

	iRankMax = get_statsnum();
	iRankPos = get_user_stats(id, izStats, izBody);
	get_user_name(id, name, 31);
	
	if(connect == 2)
		ColorChat(0, GREEN,"[Fun]^x03 %s^x01 s-a deconectat de pe server,^x04 rank %d ^x01din ^x04%d^x01 cu^x04 %d kills^x01 si^x04 %d deaths^x01.", name, iRankPos, iRankMax, izStats[0], izStats[1]);
	else if(connect == 1)
		ColorChat(0, GREEN,"[Fun]^x03 %s^x01 s-a deconectat de pe server,^x04 rank %d ^x01din ^x04%d^x01.", name, iRankPos, iRankMax);
		
	return PLUGIN_CONTINUE;
}

public cmdRank(id) {
	new rrt_rank = get_pcvar_num(cvar_rank);
	
	if(rrt_rank == 0) {
		ColorChat(id, GREEN, "[Fun]^x01 Rank ^x04 dezactivat^x01.");
		return PLUGIN_HANDLED;
	}
	
	new izStats[8], izBody[8], iRankPos, iRankMax, name[32], arg[32];
	
	read_argv(1, arg, 31);
	iRankMax = get_statsnum();
	
	if(equali(arg, "")) {
		iRankPos = get_user_stats(id, izStats, izBody);
		
		get_user_name(id, name, 31);
		
		if(rrt_rank == 2)
			ColorChat(id, GREEN, "[Fun]^x03 %s,^x01 esti pe locul^x04 %d^x01 din^x04 %d^x01 cu^x04 %d kills^x01 si^x04 %d deaths^x01.",name,iRankPos,iRankMax,izStats[0],izStats[1]);
		else if(rrt_rank == 1)
			ColorChat(id, GREEN, "[Fun]^x03 %s,^x01 esti pe locul^x04 %d ^x01din ^x04%d^x01.",name, iRankPos, iRankMax);
		
		return PLUGIN_HANDLED;
	}
	new player = cmd_target(id, arg, 14);
	
	if(!is_user_connected(player) || !player) {
		ColorChat(id,GREEN,"[Fun]^x01 Acest player nu este ^x04conectat ^x01pe server.");
		return PLUGIN_HANDLED;
	}

	iRankPos = get_user_stats(player, izStats, izBody);
	get_user_name(player, name, 31);
	
	if(rrt_rank == 2)
		ColorChat(id, GREEN, "[Fun]^x03 %s^x01 este pe locul^x04 %d^x01 din^x04 %d^x01 cu^x04 %d kills^x01 si^x04 %d deaths^x01.", name, iRankPos, iRankMax, izStats[0], izStats[1]);
	else if(rrt_rank == 1)
		ColorChat(id, GREEN, "[Fun]^x03 %s^x01 este pe locul^x04 %d^x01 din^x04 %d^x01.", name, iRankPos, iRankMax);
	
	return PLUGIN_HANDLED;
}

public cmdRankstats(id) {
	if(get_pcvar_num(cvar_rankstats) == 0) {
		ColorChat(id, GREEN, "[Fun]^x01 Rankstats ^x04dezactivat^x01.");
		return PLUGIN_HANDLED;
	}
	
	static buffer[2368], name[32], len, arg[32], iRankPos, izStats[8], izBody[8];
	
	len = format(buffer[len], 2367-len, "<style>body{background:#112233;font-family:Arial}th{background:#2E2E2E;color:#FFF;padding:5px 2px;text-align:center}td{padding:5px 2px}table{width:50%%;background:#EEEECC;font-size:12px;}h2{color:#FFF;font-family:Verdana;text-align:center}#c{background:#E2E2BC}</style>");
	
	read_argv(1, arg, 31);
	new iRankMax = get_statsnum();
	
	if(equali(arg, "")) {
		iRankPos = get_user_stats(id, izStats, izBody);
		get_user_name(id, name, 31);
		len += format(buffer[len], 2367-len, "<h2>Esti pe locul %d din %d</h2>",iRankPos, iRankMax);
	}
	else {
		new player = cmd_target(id, arg, 14);
	
		if(!is_user_connected(player) || !player) {
			ColorChat(id, GREEN, "[Fun]^x01 Acest player nu este ^x04conectat  ^x01pe server.");
			return PLUGIN_HANDLED;
		}
		
		iRankPos = get_user_stats(player, izStats, izBody);
		get_user_name(player, name, 31);
		
		len += format(buffer[len], 2367-len, "<h2>%s este pe locul %d din %d</h2>", name, iRankPos, iRankMax);
	}
	
	new server_name[64];
	get_cvar_string("hostname", server_name, 63);
	
	len += format(buffer[len], 2367-len, "<table border=^"0^" align=^"center^" cellpadding=^"0^" cellspacing=^"1^"><tbody>");
	
	len += format(buffer[len], 2367-len, "<tr><th colspan=^"2^">Rankstats %s", name);
	
	len += format(buffer[len], 2367-len, "<tr id=^"c^"><td>Kills<td>%d (dintre care %d HS)", izStats[0], izStats[2]);
	len += format(buffer[len], 2367-len, "<tr><td>Deaths<td>%d", izStats[1]);
	len += format(buffer[len], 2367-len, "<tr id=^"c^"><td>Hits<td>%d", izStats[5]);
	len += format(buffer[len], 2367-len, "<tr><td>Shots<td>%d", izStats[4]);
	len += format(buffer[len], 2367-len, "<tr id=^"c^"><td>Damage<td>%d", izStats[6]);
	len += format(buffer[len], 2367-len, "<tr><td>Accuracy<td>%.02f%", accuracy(izStats));
	len += format(buffer[len], 2367-len, "<tr id=^"c^"><td>Effect<td>%.02f%", effec(izStats));
	len += format(buffer[len], 2367-len, "<tr><th colspan=^"2^">%s", server_name);
	
	len += format(buffer[len], 2367-len, "</tbody></table></body>");
	show_motd(id, buffer, "Top playeri");
	
	return PLUGIN_CONTINUE;
}

Float:accuracy(izStats[8]) {
	if(!izStats[4])
		return (0.0);
	
	return (100.0 * float(izStats[5]) / float(izStats[4]));
}

Float:effec(izStats[8]) {
	if(!izStats[0])
		return (0.0);
	
	return (100.0 * float(izStats[0]) / float(izStats[0] + izStats[1]));
}

public cmdTop15(id) {
	new iMax = get_statsnum();
	new iNr = get_pcvar_num(cvar_topnum);
	
	if(iNr != 10 && iNr != 15)
		return PLUGIN_HANDLED;
			
	new start;
		
	if(gNum > 0 && gNum < 16) {
		start = 0;
		gNum = iNr;
	}
	else {
		if(gNum > iMax)
			gNum = iMax;
		else	
			start = gNum - iNr;
	}
			
	new title_data[128];
	new title = get_pcvar_string(cvar_title, title_data, 127);
		
	new buffer[2368], name[32], iBody[8], len, iStats[8];
		
	len = format(buffer[len], 2367-len, "<style>body{background:#112233;font-family:Arial}th{background:#2E2E2E;color:#FFF;padding:5px 2px;text-align:left}td{padding:5px 2px}table{width:100%%;background:#EEEECC;font-size:12px;}h2{color:#FFF;font-family:Verdana;text-align:center}#nr{text-align:center}#c{background:#E2E2BC}</style><h2>%s</h2><table border=^"0^" align=^"center^" cellpadding=^"0^" cellspacing=^"1^"><tbody>", title);
	len += format(buffer[len], 2367-len, "<tr><th id=nr>#</th><th>Nick<th>Kills<th>Deaths<th>HS<th>Skill");
		
	for(new i = start; i < gNum; i++) {
		get_user_name(id, name, 31);
		get_stats(i, iStats, iBody, name, 31);
			
		new Float:fstats[8];
		for (new j = 0; j < 8; j++)
			fstats[j] = float(iStats[j]);
			
		while(containi(name, "<") != -1)
			replace(name, 31, "<", "<");
		while(containi(name, ">") != -1)
			replace(name, 31, ">", ">");
			
		len += format(buffer[len], 2367-len, "<tr %s><td id=nr>%d<td>%s<td>%d<td>%d<td>%d<td>%.02f",((i%2)==0) ? "" : " id=c", (i+1), name, iStats[0], iStats[1], iStats[2], ((fstats[0]-fstats[1])+fstats[2])/2);
	}
		
	new server_name[64];
	get_cvar_string("hostname", server_name, 63);
	len += format(buffer[len], 2367-len, "<tr><th colspan=^"7^" id=nr>%s", server_name);
		
	len += format(buffer[len], 2367-len, "</tbody></table></body>");
	show_motd(id, buffer, "Top playeri");
	
	return PLUGIN_CONTINUE;
}
User avatar
Errol
Membru, skill +1
Membru, skill +1
Posts: 141
Joined: 19 May 2013, 14:42
Detinator Steam: Da
CS Status: Sunt sămânţar, prin concluzie porumbel.
Detinator server CS: DR.CS32.RO
SteamID: Privat
Reputatie: Membru Club eXtreamCS (2 luni)
Location: Bistrita
Has thanked: 17 times
Been thanked: 9 times
Contact:

30 May 2013, 11:46

Felicitari !

@ Laur3


Uite .AMXX.
Image
#WIZARDS to more, but I'm a hero.
-----------------------------------------------------
Lasă telefonul că ştiu actoria
Şi nu mai suna că-mi descarci bateria .


#Work only :

- [FPS Nvidia] [100%] [Public] [Here]
- [NoLag] [100%] [Public] [Here]
User avatar
Laur3
Membru, skill +1
Membru, skill +1
Posts: 149
Joined: 09 Jan 2013, 11:36
Detinator Steam: Da
Has thanked: 29 times
Been thanked: 1 time

30 May 2013, 21:52

Mersi dar mi-am dat seama ca trebuia sa am colorchat.inc, nu m-am uitat atent la include-uri.
santuzzu
Membru, skill 0
Membru, skill 0
Posts: 50
Joined: 03 Nov 2012, 18:04
Detinator Steam: Da
CS Status: za fak iz dat
Has thanked: 1 time
Been thanked: 6 times
Contact:

28 Jun 2013, 15:11

destul de ok pluginul fata de alternativa
dar da o eroare din cand in cand

L 06/28/2013 - 15:19:28: Start of error session.
L 06/28/2013 - 15:19:28: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130628.log")
L 06/28/2013 - 15:19:28: replace() buffer not big enough (34>=31)
L 06/28/2013 - 15:19:28: [AMXX] Displaying debug trace (plugin "rank_rankstats_top.amxx")
L 06/28/2013 - 15:19:28: [AMXX] Run time error 10: native error (native "replace")
L 06/28/2013 - 15:19:28: [AMXX] [0] rank_rankstats_top.sma::cmdTop15 (line 244)
L 06/28/2013 - 15:19:28: [AMXX] [1] rank_rankstats_top.sma::hook_say (line 48)
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests