cerere 2 pluginuri[rezolvat!]

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
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

26 Aug 2010, 12:28

1.salut vreau si eu un top15 bine aranjat ,primi 3 sa fie trecuti cu alte culori si daca se poate sa-mi dati si o poza :D sa vad cam cum ar arata
2.vreau si sma la pluginul ala prepare care pune un sunet la inceput de runda
Last edited by b[L]u on 28 Aug 2010, 08:18, edited 1 time in total.
Nick: MiSteR D
Image
User avatar
KronoS eXtream
Fost administrator
Fost administrator
Posts: 4380
Joined: 02 Apr 2009, 18:18
Detinator Steam: Da
Reputatie: Fost administrator
Fost detinator Zombie-Land.eXtream.Ro
Contribuitor
Fost Scripter eXtreamCS
Dezvoltator al listei de seriozitate eXtreamCS
Location: Bucharest
Has thanked: 543 times
Been thanked: 820 times
Contact:

28 Aug 2010, 09:45

1.
/* CFG TOP10+ by mut2nt@2009
* -= CVARS =-
* ----------------------------------------
* cfg_top10_sound 1/0 - Sound ON/OFF
* ----------------------------------------
* Credits: razna
*
* For more plugins visit
* http://www.cfg.ro
*/

#include <amxmodx>
#include <csx>

new g_sBuffer[2048], toggle_sound;

public plugin_init()
{
register_plugin("CFG Top10+", "1.3", "mut2nt & razna");
register_cvar("CFG Top10+", "1.3/mut2nt&razna", FCVAR_SERVER);
register_clcmd("say /top10", "cmdTop10", 0);
register_clcmd("say_team /top10", "cmdTop10", 0);
toggle_sound = register_cvar("cfg_top10_sound", "0")
}

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_top10(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];
new iLen = 0;

if (iMax > 15)
{
iMax = 15;
}

loc1 = 1;
loc2 = 2;
loc3 = 3;

iLen = format(sBuffer, 2047, "<body bgcolor=#000000><font color=#FF5500><pre>");
iLen += format(sBuffer[iLen], 2047 - iLen, "%2s %-22.22s %6s %6s %4s %4s %4s^n", "#", "Nick", "Crime", "Decese", "Capuri", "Eff", "Acc");

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, ">", "]");
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#ff0000>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%%^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats));
}

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, ">", "]");
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#07fcff>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%%^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats));
}

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, ">", "]");
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d <font color=#fff007>%-22.22s</font> %6d %6d %4d %3.0f%% %3.0f%%^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats));
}


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, ">", "]");
iLen += format(sBuffer[iLen], 2047 - iLen, "%2d %-22.22s %6d %6d %4d %3.0f%% %3.0f%%^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2], effec(izStats), accuracy(izStats));
}
}

public cmdTop10(id)
{
format_top10(g_sBuffer);
show_motd(id, g_sBuffer, ".::|TOP 15||TeriToriaL-ZonE|::.");

if (get_pcvar_num(toggle_sound) != 0)
{
client_cmd(id,"spk ^"vox/deeoo top ten^"")
}

return PLUGIN_CONTINUE;
}
2.

Code: Select all

#include <amxmodx>

public plugin_init()
{
register_event("ResetHUD", "play_sound", "be")
}

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

public play_sound()
{
client_cmd(0, "spk misc/prepare.wav")
}
Nu efectuez tranzactii pe mess, skype etc. Aveti grija la indivizii care se dau drept mine!
Nu mai ofer suport asa ca nu imi mai trimiteti mesaje in legatura cu asta!


Zombie Plague Shade 1.2-debug1 [with Item Limiter] (12 September 2015) - Bombardier Branch
User avatar
b[L]u
Membru, skill +1
Membru, skill +1
Posts: 314
Joined: 31 May 2010, 13:27
Detinator Steam: Nu
Has thanked: 26 times
Been thanked: 8 times

28 Aug 2010, 10:03

ms mult + un multumesc :D
Nick: MiSteR D
Image
Post Reply

Return to “Cereri”

  • Information