#include <amxmodx>
new const gNazwaPluginu[] = "Zemsta";
new const gWersjaPluginu[] = "0.1";
new const gAutorPluginu[] = "MisieQ";
new gZemsta[33];
public plugin_init()
{
register_plugin(gNazwaPluginu, gWersjaPluginu, gAutorPluginu);
register_event("DeathMsg", "eventDeathMsg", "a");
}
public eventDeath()
{
new iKiller = read_data(1);
new iVictim = read_data(2);
if(iKiller && iVictim)
{
gZemsta[iVictim] = iKiller;
if(gZemsta[iKiller] && gZemsta[iKiller] == iVictim)
{
new sName[32];
get_user_name(iVictim, sName, sizeof sName - 1);
set_hudmessage(255, 16, 255, -1.0, 0.30, 0, 2.0, 2.0, 0.05, 0.05, 4)
show_hudmessage(iKiller, "Zemsciles sie na graczu %s", sName);
gZemsta[iKiller] = 0;
}
}
}
Załączam wersję Miśka.
Mam nadzieje, że komuś się przyda i przepraszam za kłopoty .
Użytkownik ParadisO edytował ten post 08.11.2011 20:49