CERERE PLUGIN STATSX
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 .
Accesează link-ul pentru a putea vedea regulile forumului
Daca doriti sa vi se modifice un plugin, va rugam postati aici .
-
- Membru, skill 0
- Posts: 45
- Joined: 05 Nov 2016, 16:03
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Plugin: STATSX.AMXX + TOP15 .amxx+ sma
-/rank http://imgur.com/a/Y3Ep3 (doar in loc de rosu sa fie verde si "* steluta " sa fie tot verde )
-/hp :-dupa fiecare deces sa apara mesaju AUTOMAT http://imgur.com/a/cdfLL (doar in loc de rosu sa fie verde si "* steluta " sa fie tot verde !)
-/me sa fie tot colorat http://imgur.com/a/w6U9Z (doar in loc de rosu sa fie verde si "* steluta " sa fie tot verde !)
*TOP15
- primile 3 locuri sa fie colorate ( 1.rosu , 2.galben , 3.albastru ) restu defluat
- primele 3 locrui sa fie "premiate" cu un trofeu (1.GOLD 2.Silver 3.Bronz)
+sunet cand se feschide top15
Acest plugin arata /rank /hp /me /top15 colorat (galben ,verdE)
Ma puteti ajuta?
-/rank http://imgur.com/a/Y3Ep3 (doar in loc de rosu sa fie verde si "* steluta " sa fie tot verde )
-/hp :-dupa fiecare deces sa apara mesaju AUTOMAT http://imgur.com/a/cdfLL (doar in loc de rosu sa fie verde si "* steluta " sa fie tot verde !)
-/me sa fie tot colorat http://imgur.com/a/w6U9Z (doar in loc de rosu sa fie verde si "* steluta " sa fie tot verde !)
*TOP15
- primile 3 locuri sa fie colorate ( 1.rosu , 2.galben , 3.albastru ) restu defluat
- primele 3 locrui sa fie "premiate" cu un trofeu (1.GOLD 2.Silver 3.Bronz)
+sunet cand se feschide top15
Acest plugin arata /rank /hp /me /top15 colorat (galben ,verdE)
Ma puteti ajuta?
- iNdio
- Membru, skill +4
- Posts: 1512
- Joined: 28 Jan 2015, 17:42
- Detinator Steam: Da
- SteamID: iNdioPGL
- Reputatie: Fost Membru Club eXtreamCS (6 luni)
Castigator Membru Club eXtream @ Ganduri de sub dus (25 OCT - 25 FEB) - Fond eXtream: 0
- Been thanked: 3 times
- Sunet:
Code: Select all
client_cmd(id, "spk vox/nice");
Code: Select all
new const g_szCups[ ][ ] = {
"http://i.imgur.com/ls15RO5.png",
"http://i.imgur.com/TkLidPg.png",
"http://i.imgur.com/VlgI5rT.png"
};
Code: Select all
new const g_szTopColors[ ][ ] = {
"#09B715",
"#4FA7CD",
"#FD031C"
};
Where Cs had no value, amxx, sometimes, had its price...
- steam | Afiseaza codul
-
- Membru, skill 0
- Posts: 45
- Joined: 05 Nov 2016, 16:03
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
mersii
-
- Membru, skill 0
- Posts: 45
- Joined: 05 Nov 2016, 16:03
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Cu top/15 am rezolvat de mult , dar mersi de efort
Cam greu de modificat pentru un amator.
Alta varianta nu exista sa modific din lang , si sa-l fac colorat
Nu prea inteleg cei acolo cu /hp /me
/rank stiu sa-l modific ,dar restu nu.
Daca ai putea sa-mi explici ai fi de mare ajutor
Si cum setez sa arata automat la /hp
Si ultima cum sa pun trofeele in fata la numele jucatoruli , nu la sfarsit !
Cam greu de modificat pentru un amator.
Alta varianta nu exista sa modific din lang , si sa-l fac colorat
Nu prea inteleg cei acolo cu /hp /me
/rank stiu sa-l modific ,dar restu nu.
Daca ai putea sa-mi explici ai fi de mare ajutor
Si cum setez sa arata automat la /hp
Si ultima cum sa pun trofeele in fata la numele jucatoruli , nu la sfarsit !
- iNdio
- Membru, skill +4
- Posts: 1512
- Joined: 28 Jan 2015, 17:42
- Detinator Steam: Da
- SteamID: iNdioPGL
- Reputatie: Fost Membru Club eXtreamCS (6 luni)
Castigator Membru Club eXtream @ Ganduri de sub dus (25 OCT - 25 FEB) - Fond eXtream: 0
- Been thanked: 3 times
Ti-am pus in arhiva cstrike/addons/amxmodx/data/lang/statsx.txt, aici modifici culorile:
E colorat deja, ti-l modifici tu din statsx.txt cum vrei.
Cupele apar in stanga si aparea cine te-a omorat in chat automat si inainte, in fine.
Code: Select all
!y = default
!g = green
!team = culoare echipa
Cupele apar in stanga si aparea cine te-a omorat in chat automat si inainte, in fine.
Where Cs had no value, amxx, sometimes, had its price...
- steam | Afiseaza codul
- *Max3Semne*
- Membru, skill +2
- Posts: 869
- Joined: 29 Nov 2011, 19:45
- Detinator Steam: Da
- Detinator server CS: cs.max3semne.ro
- SteamID: max3semne0
- Has thanked: 25 times
- Been thanked: 4 times
iNdio wrote:
- Sunet:- Poze cupe:Code: Select all
client_cmd(id, "spk vox/nice");
- Culori primele 3 locuri:Code: Select all
new const g_szCups[ ][ ] = { "http://i.imgur.com/ls15RO5.png", "http://i.imgur.com/TkLidPg.png", "http://i.imgur.com/VlgI5rT.png" };
Code: Select all
new const g_szTopColors[ ][ ] = { "#09B715", "#4FA7CD", "#FD031C" };
mai are cineva link de download?
- iNdio
- Membru, skill +4
- Posts: 1512
- Joined: 28 Jan 2015, 17:42
- Detinator Steam: Da
- SteamID: iNdioPGL
- Reputatie: Fost Membru Club eXtreamCS (6 luni)
Castigator Membru Club eXtream @ Ganduri de sub dus (25 OCT - 25 FEB) - Fond eXtream: 0
- Been thanked: 3 times
S-ar putea sa fie asta! http://www67.zippyshare.com/v/Ws4gzkiF/file.html*Max3Semne* wrote: mai are cineva link de download?
Where Cs had no value, amxx, sometimes, had its price...
- steam | Afiseaza codul
- *Max3Semne*
- Membru, skill +2
- Posts: 869
- Joined: 29 Nov 2011, 19:45
- Detinator Steam: Da
- Detinator server CS: cs.max3semne.ro
- SteamID: max3semne0
- Has thanked: 25 times
- Been thanked: 4 times
iNdio wrote:S-ar putea sa fie asta! http://www67.zippyshare.com/v/Ws4gzkiF/file.html*Max3Semne* wrote: mai are cineva link de download?
mersi mult.
- BitZaGold
- Membru, skill 0
- Posts: 19
- Joined: 28 Feb 2018, 13:29
- Detinator Steam: Da
- CS Status: Citesc forumul eXtreamCS.com...!
- Detinator server CS: SKILL.LALEAGANE.RO
- SteamID: DA
- Fond eXtream: 0
- Location: CT
- Contact:
Nu mai merge downloadu.. se poate sa imi dati codu lafel k cel de sus? colorat
Last edited by levin on 09 Mar 2020, 17:10, edited 1 time in total.
Reason: 'nu merge' nu e tot aia cu 'nu pot să mă descurc'
Reason: 'nu merge' nu e tot aia cu 'nu pot să mă descurc'
- AcridGamer
- Membru, skill +2
- Posts: 658
- Joined: 01 Dec 2016, 17:06
- Detinator Steam: Da
- CS Status: Very Good
- Detinator server CS: Da
- SteamID: acridgamer3
- Fond eXtream: 0
- Location: Tulcea
- Contact:
Mai are cineva link-ul de download? :)
Tranzactii Reusite
Discord Click
[*1*] Click
[*2*] Click
[*3*] Click
[*4*] Click
[*5*] Click
"Un subscribe va rog Gamer Channel" By LORD KALU #KALUTU MAGIC
Discord Click
[*1*] Click
[*2*] Click
[*3*] Click
[*4*] Click
[*5*] Click
"Un subscribe va rog Gamer Channel" By LORD KALU #KALUTU MAGIC
- Laurentiu P.
- Fost moderator
- Posts: 2549
- Joined: 10 Jul 2013, 21:26
- Detinator Steam: Da
- Reputatie: Fost super moderator
- Fond eXtream: 100
- Has thanked: 26 times
- Been thanked: 62 times
- Contact:
Code: Select all
#include <amxmodx>
#include <csx>
#include <nvault>
new g_NvID, g_sBuffer[2048], toggle_sound;
static const CONTACT[] = ""
public plugin_init()
{
register_plugin("CFG Top10+", "1.4", "dydy");
register_cvar("CFG Top10+", "1.4/dydy", FCVAR_SERVER);
register_clcmd("say /top15", "cmdTop15", 0);
register_clcmd("say_team /top15", "cmdTop15", 0);
toggle_sound = register_cvar("cfg_top10_sound", "1")
register_cvar("cfg_top10_msg", CONTACT, FCVAR_SERVER)
g_NvID = nvault_open("playtimevault");
}
public client_disconnect(id)
{
new szPlayTime[8], szAuthID[35], iPlayTime,ts;
get_user_name(id, szAuthID, 34);
if( !nvault_lookup( g_NvID, szAuthID , szPlayTime , 7 , ts ) )
{
format(szPlayTime, 7, "%d" , get_user_time(id, 1) );
nvault_set( g_NvID , szAuthID , szPlayTime);
}
else
{
iPlayTime = str_to_num(szPlayTime) + get_user_time(id, 1);
format(szPlayTime, 7, "%d" , iPlayTime );
nvault_set( g_NvID , szAuthID , szPlayTime);
}
}
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]));
}
format_top15(sBuffer[2048])
{
new loc1 = get_statsnum();
new loc2 = get_statsnum();
new loc3 = get_statsnum();
new iMax = get_statsnum();
new izStats[8], izBody[8], t_sName[32], msg[112];
new iLen = 0;
if (iMax > 15)
{
iMax = 15;
}
loc1 = 1;
loc2 = 2;
loc3 = 3;
new szTime[8];
new ts;
iLen = format(sBuffer, 2047, "<body bgcolor=#000000><font color=#FFB000><pre>");
iLen += format(sBuffer[iLen], 2047 - iLen, "%2s %-22.22s %6s %6s %4s %6s %4s %4s^n", "#", "Nick", " Kills", "Deaths", " HS", " Eff", "Acc", "PlayTime");
for (new i = 0; i < loc1 && 2047 - iLen > 0; i++)
{
get_stats(i, izStats, izBody, t_sName, 31);
replace_all(t_sName, 31, "<", "[");
replace_all(t_sName, 31, ">", "]");
new iCurTime = get_user_time( i , 1 );
new iTotalTime = 0;
if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) )
{
iTotalTime = str_to_num(szTime);
}
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=ff0bb7>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%% %4d h <img src=http://i.imgur.com/OYMiHuW.png>^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600));
}
for (new i = 1; i < loc2 && 2047 - iLen > 0; i++)
{
get_stats(i, izStats, izBody, t_sName, 31);
replace_all(t_sName, 31, "<", "[");
replace_all(t_sName, 31, ">", "]");
new iCurTime = get_user_time( i , 1 );
new iTotalTime = 0;
if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) )
{
iTotalTime = str_to_num(szTime);
}
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#07fcff>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%% %4d h <img src=http://i.imgur.com/QyNgJuD.png>^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600));
}
for (new i = 2; i < loc3 && 2047 - iLen > 0; i++)
{
get_stats(i, izStats, izBody, t_sName, 31);
replace_all(t_sName, 31, "<", "[");
replace_all(t_sName, 31, ">", "]");
new iCurTime = get_user_time( i , 1 );
new iTotalTime = 0;
if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) )
{
iTotalTime = str_to_num(szTime);
}
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#0BF402>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%% %4d h <img src=http://i.imgur.com/4WZm3cZ.png>^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600));
}
for (new i = 3; i < iMax && 2047 - iLen > 0; i++)
{
get_stats(i, izStats, izBody, t_sName, 31);
replace_all(t_sName, 31, "<", "[");
replace_all(t_sName, 31, ">", "]");
new iCurTime = get_user_time( i , 1 );
new iTotalTime = 0;
if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) )
{
iTotalTime = str_to_num(szTime);
}
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d %-22.22s %6d %6d %4d %3.0f%% %3.0f%% %4d h^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600));
}
get_cvar_string("cfg_top10_msg", msg, 63)
iLen += format(sBuffer[iLen], 2047 - iLen, "^n%s", msg);
iLen += format(sBuffer[iLen], 2047 - iLen, "^n<font color=#00FA9A>Acum joci pe serverul - furien.legendcs.com</font>^n");
iLen += format(sBuffer[iLen], 2047 - iLen, "^n<font color=#00FA9A>Viziteaza forumul nostru - www.legendcs.com</font>");
}
public cmdTop15(id)
{
format_top15(g_sBuffer);
show_motd(id, g_sBuffer, "Top 15");
if (get_pcvar_num(toggle_sound) != 0)
{
client_cmd(id,"spk ^"vox/deeoo top ten^"")
}
return PLUGIN_CONTINUE;
}
public plugin_end()
{
nvault_close(g_NvID);
}
no...
- AcridGamer
- Membru, skill +2
- Posts: 658
- Joined: 01 Dec 2016, 17:06
- Detinator Steam: Da
- CS Status: Very Good
- Detinator server CS: Da
- SteamID: acridgamer3
- Fond eXtream: 0
- Location: Tulcea
- Contact:
De la statsx coloratLaurentiu P. wrote: ↑31 Mar 2023, 19:11[/code]Code: Select all
#include <amxmodx> #include <csx> #include <nvault> new g_NvID, g_sBuffer[2048], toggle_sound; static const CONTACT[] = "" public plugin_init() { register_plugin("CFG Top10+", "1.4", "dydy"); register_cvar("CFG Top10+", "1.4/dydy", FCVAR_SERVER); register_clcmd("say /top15", "cmdTop15", 0); register_clcmd("say_team /top15", "cmdTop15", 0); toggle_sound = register_cvar("cfg_top10_sound", "1") register_cvar("cfg_top10_msg", CONTACT, FCVAR_SERVER) g_NvID = nvault_open("playtimevault"); } public client_disconnect(id) { new szPlayTime[8], szAuthID[35], iPlayTime,ts; get_user_name(id, szAuthID, 34); if( !nvault_lookup( g_NvID, szAuthID , szPlayTime , 7 , ts ) ) { format(szPlayTime, 7, "%d" , get_user_time(id, 1) ); nvault_set( g_NvID , szAuthID , szPlayTime); } else { iPlayTime = str_to_num(szPlayTime) + get_user_time(id, 1); format(szPlayTime, 7, "%d" , iPlayTime ); nvault_set( g_NvID , szAuthID , szPlayTime); } } 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])); } format_top15(sBuffer[2048]) { new loc1 = get_statsnum(); new loc2 = get_statsnum(); new loc3 = get_statsnum(); new iMax = get_statsnum(); new izStats[8], izBody[8], t_sName[32], msg[112]; new iLen = 0; if (iMax > 15) { iMax = 15; } loc1 = 1; loc2 = 2; loc3 = 3; new szTime[8]; new ts; iLen = format(sBuffer, 2047, "<body bgcolor=#000000><font color=#FFB000><pre>"); iLen += format(sBuffer[iLen], 2047 - iLen, "%2s %-22.22s %6s %6s %4s %6s %4s %4s^n", "#", "Nick", " Kills", "Deaths", " HS", " Eff", "Acc", "PlayTime"); for (new i = 0; i < loc1 && 2047 - iLen > 0; i++) { get_stats(i, izStats, izBody, t_sName, 31); replace_all(t_sName, 31, "<", "["); replace_all(t_sName, 31, ">", "]"); new iCurTime = get_user_time( i , 1 ); new iTotalTime = 0; if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) ) { iTotalTime = str_to_num(szTime); } iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=ff0bb7>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%% %4d h <img src=http://i.imgur.com/OYMiHuW.png>^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600)); } for (new i = 1; i < loc2 && 2047 - iLen > 0; i++) { get_stats(i, izStats, izBody, t_sName, 31); replace_all(t_sName, 31, "<", "["); replace_all(t_sName, 31, ">", "]"); new iCurTime = get_user_time( i , 1 ); new iTotalTime = 0; if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) ) { iTotalTime = str_to_num(szTime); } iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#07fcff>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%% %4d h <img src=http://i.imgur.com/QyNgJuD.png>^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600)); } for (new i = 2; i < loc3 && 2047 - iLen > 0; i++) { get_stats(i, izStats, izBody, t_sName, 31); replace_all(t_sName, 31, "<", "["); replace_all(t_sName, 31, ">", "]"); new iCurTime = get_user_time( i , 1 ); new iTotalTime = 0; if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) ) { iTotalTime = str_to_num(szTime); } iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#0BF402>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%% %4d h <img src=http://i.imgur.com/4WZm3cZ.png>^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600)); } for (new i = 3; i < iMax && 2047 - iLen > 0; i++) { get_stats(i, izStats, izBody, t_sName, 31); replace_all(t_sName, 31, "<", "["); replace_all(t_sName, 31, ">", "]"); new iCurTime = get_user_time( i , 1 ); new iTotalTime = 0; if( nvault_lookup(g_NvID, t_sName , szTime, 7, ts) ) { iTotalTime = str_to_num(szTime); } iLen += format(sBuffer[iLen], 2047 - iLen, "%2d %-22.22s %6d %6d %4d %3.0f%% %3.0f%% %4d h^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats), ((iCurTime + iTotalTime) / 3600)); } get_cvar_string("cfg_top10_msg", msg, 63) iLen += format(sBuffer[iLen], 2047 - iLen, "^n%s", msg); iLen += format(sBuffer[iLen], 2047 - iLen, "^n<font color=#00FA9A>Acum joci pe serverul - furien.legendcs.com</font>^n"); iLen += format(sBuffer[iLen], 2047 - iLen, "^n<font color=#00FA9A>Viziteaza forumul nostru - www.legendcs.com</font>"); } public cmdTop15(id) { format_top15(g_sBuffer); show_motd(id, g_sBuffer, "Top 15"); if (get_pcvar_num(toggle_sound) != 0) { client_cmd(id,"spk ^"vox/deeoo top ten^"") } return PLUGIN_CONTINUE; } public plugin_end() { nvault_close(g_NvID); }
Tranzactii Reusite
Discord Click
[*1*] Click
[*2*] Click
[*3*] Click
[*4*] Click
[*5*] Click
"Un subscribe va rog Gamer Channel" By LORD KALU #KALUTU MAGIC
Discord Click
[*1*] Click
[*2*] Click
[*3*] Click
[*4*] Click
[*5*] Click
"Un subscribe va rog Gamer Channel" By LORD KALU #KALUTU MAGIC