/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#define PLUGIN "GUN"
#define VERSION "1.0"
#define AUTHOR "MawiLarq"
#define USERTASK 921
#define UPDATEDELAY 1.0
new rounds, hudhandler
new map[32];
public plugin_init() {
get_mapname(map,31);
if((containi(map,"jail") == -1) && (containi(map,"jb_") == -1) && (containi(map,"some1s_") == -1)) return
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1)
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)
hudhandler = CreateHudSyncObj()
}
public round_end()
{
rounds ++
}
public restart_roundsnum()
{
rounds = 0
}
public client_disconnect(id)
{
if(task_exists(id + USERTASK))
{
remove_task(id + USERTASK)
}
}
public client_spawn(id) {
if(task_exists(id + USERTASK)) {
remove_task(id + USERTASK)
}
set_task(UPDATEDELAY, "client_jailinfo", id + USERTASK, _, _, "b")
}
public client_jailinfo(TASKID)
{
static id
id = TASKID - USERTASK
set_hudmessage(255, 255, 0, 0.57, 0.22, 0, 0.02, 12.0)
ShowSyncHudMsg(id, hudhandler, "- CSA - | %d. Gun", rounds)
}
public Fwd_PlayerSpawn_Post(id)
{
if (is_user_alive(id))
{
if(get_user_team(id) == 2) {
//
}
}
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1254\\ deff0\\ deflang1055{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/