Na tej mapie najlepszym headshoterem byl %s strzelajac %s baniek.oraz po wpisaniu /hs pokaże nam ilość naszych headshotów
Do tej pory ustrzeliles %s headshotow
Proszę nie pisać mi o HeadShot deluxe bo nie o to mi chodzi. Za pomoc + do reputacji
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Posted 06.08.2010 18:11
Na tej mapie najlepszym headshoterem byl %s strzelajac %s baniek.oraz po wpisaniu /hs pokaże nam ilość naszych headshotów
Do tej pory ustrzeliles %s headshotow
Posted 10.08.2010 07:57
Posted 10.08.2010 08:09
#include <amxmodx>
new iCountPlayerHSs[33];
new iBestCount, iBestID;
public plugin_init()
{
register_plugin("New Plug-In", "1.0", "Knopers")
register_event("DeathMsg", "EvKill", "a");
register_concmd("say /hs", "sayHS");
register_concmd("say_team /hs", "sayHS");
}
public EvKill()
{
if(read_data(3))
++ iCountPlayerHSs[read_data(2)];
do_check();
}
public do_check()
{
iBestCount = 0;
for(new i = 1; i < 33; i++)
{
if(iCountPlayerHSs[i] > iBestCount)
{
iBestCount = iCountPlayerHSs[i];
iBestID = i;
}
}
}
public client_authorized(id)
{
iCountPlayerHSs[id] = 0;
if(iBestID == id)
{
iBestID = 0;
iBestCount = 0;
}
}
public sayHS(id)
client_print(id, print_chat, "Do tej pory ustrzeliles %s headshotow.", iCountPlayerHSs[id]);
public plugin_end()
{
new sName[32];
get_user_name(iBestID, sName, 31);
client_print(0, print_chat,"Na tej mapie najlepszym headshoterem byl %s strzelajac %s baniek.", sName, iBestCount);
}
Posted 10.08.2010 11:08
Edited by szpaku., 10.08.2010 11:30.
0 members, 1 guests, 0 anonymous users