#include <amxmisc>
#include <hamsandwich>
#include <ColorChat>
#define PLUGIN "Jail Break: Basic Info"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
new static reasons[][] = {
"gwalt",
"narkotyki",
"zabojstwo",
"alkohol",
"molestowanie",
"pobicie babci",
"napad na monopolowy",
"tesciowa",
"to, ze jestes rudy",
"pedalstwo",
"to, ze bardzo lubisz Pana Policjanta",
"napad na burdel",
"samobojstwo",
"free",
"to, ze jestes",
"to, ze nie popelniles samobojstwa",
"za napad na bank",
"kradziez samochodu",
"ucieczke z miejsca wypadku",
"pomoc policji",
"ADHD",
"kradziez deski klozetowej",
"nietrafienie do kibelka",
"nielegalne oglodanie pornografi",
"hakerstwo"
}
new userreason[33];
new rounds;
public plugin_init(){
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/)
register_logevent("round_end", 2, "1=Round_End")
RegisterHam(Ham_Spawn, "player", "client_spawn", 1)
}
public round_end(){
rounds ++
}
public restart_roundsnum(){
rounds = -1
}
public client_disconnect(id){
userreason[id] = -1
}
public client_spawn(id){
if(get_user_team(id) == 1){
userreason[id] = random_num(0, sizeof reasons - 1)
ColorChat(id, GREEN, "Dzien %d | Siedzisz za %s.", rounds, reasons[userreason[id]]);
}
}