/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Wielkie Jol"
#define TASK 13289
#define CZESTOTLIWOSC_POWTARZANIA 1.0
new const wiadomosc[] = "Dodaj serwer do listy ulubionych^nZapros swoich znajomych^n Z gory dziekujemy ;)";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "DeathMsg", "a")
RegisterHam(Ham_Spawn, "player", "fwd_HamPlayerSpawned", 1)
}
public DeathMsg()
{
new id = read_data(2) // ofiara
if(is_user_connected(id)){
set_task(CZESTOTLIWOSC_POWTARZANIA, "informacja", id+TASK, _, _, "b")
}
}
public client_disconnect(id){
if(task_exists(id+TASK))
remove_task(id+TASK);
}
public informacja(id){
set_hudmessage(0, 255, 0, -1.0, 0.01)
show_hudmessage(id, wiadomosc)
}
public fwd_HamPlayerSpawned(id){
if(task_exists(id+TASK))
remove_task(id+TASK);
}