[Reparare plugin]SnowWar[urgent]!

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 137 times

23 Dec 2013, 16:26

Code: Select all

L 12/23/2013 - 16:25:16: [FAKEMETA] Invalid entity
L 12/23/2013 - 16:25:16: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 16:25:16: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 16:25:16: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 64
6

Primesc eroarea aceasta in consola dupa care urmeaza crash ... Uitati sma :
| Afiseaza codul
/* AMX Mod X
*   Snowball war
*
*  /   \   /   \       ___________________________
* /   / \_/ \   \     /                           \
* \__/\     /\__/    /  GIVE ME A CARROT OR I WILL \
*      \O O/         \      BLOW UP YOUR HOUSE     /
*   ___/ ^ \___      / ___________________________/
*      \___/        /_/
*      _/ \_
*   __//   \\__
*  /___\/_\/___\
*
* (c) Copyright 2008 by FakeNick
*
* This file is provided as is (no warranties)
*
*     DESCRIPTION
*	My plugin is changing an HE grenade for snowball. When player spawns he receives only
*	knife and HE. When snowball hit's wall it will explode with nice spalt effect.
*	In this mod there are two teams : blue (CT's) and red (T's). They must kill their opponents
*	with snowball. When player gets hit, his health is decreasing and there's
*	a chance that player will be chilled. In this mod target is to kill your opponents,soldier!
*	Snowball war includes very simple deathmatch (default off). It is also changing players models
*	to santa's (T's) and snow soldiers (CT's) - this model can be changed by plugin user.
*	Snowball war enables snow effect on server (comment line 171 to disable).
*
*     MODULES
*	fakemeta
*	hamsandwich
*
*     CVARS
*	sw_toggle - is mod on/off? (default ON - 1)
*	sw_friendly - is friendly fire on/off? (default OFF - 0)
*	sw_damage - damage done by snowball (default 100)
*	sw_life - life of snowball splat (default 3.0)
*	sw_dm - is deathmatch on/off? (defualt OFF - 0)
*	sw_dm_time - time to respawn (default 2.0)
*	sw_chill_chance - chance to chill player (from 0 - off, to 100 - maximum chance, default 30)
*	sw_chill_duration - duration of chill (default 5.0)
*	sw_chill_speed - percentage of speed that player receives when chilled (default 50.0)
*	sw_snowball_gravity - gravity of snowball (default 0.3)
*	sw_snowball_velocity - how many times snowball velocity will be multipied (default 2.0 times)
*	sw_crosshair_remove - will be crosshair removed (default ON - 1)
*	sw_spawn_protection - is spawn protection on? (default ON - 1)
*	sw_spawn_protection_time - time of spawn protection (default 3.0)
*
*
*	Changelog 
*	 Version 3.0 :
*	  - Initial release
*
*	 Version 3.01 :
*	  - Added game description changer
*
*	 Version 3.02 :
*	  - Added change velocity of snowball
*	  - Added change gravity of snowball
*	  - Added crsoshair remover for more realism
*
*	 Version 3.03 :
*	  - Added breaking glass when unchilling player
*	  - Added random snow skybox generator
*	  - Added spawn protection
*
*	 Version 3.04 :
*	  - Fixed server crashing bug
*
*	 Version 3.05 :
*	  - Added support for bots (code from ZP)
*
*
*/
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fakemeta_util>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

//Do not touch this!
new const model_nade_world[] = "models/sw/w_snowball.mdl"
new const model_nade_view[] = "models/sw/v_snowball.mdl"
new const model_nade_player[] = "models/sw/p_snowball.mdl"
new const model_splash[] = "sprites/bhit.spr"

//Randomly chosen models and sounds, add as many, as you want

new const model_red[][] = { "red1" }
new const model_blue[][] = { "blue1" }

new const sound_pain[][] = { "player/pl_pain2.wav","player/pl_pain4.wav","player/pl_pain5.wav","player/pl_pain6.wav","player/pl_pain7.wav" }
new const sound_hit[][] = { "player/pl_snow1.wav","player/pl_snow2.wav","player/pl_snow3.wav","player/pl_snow4.wav","player/pl_snow5.wav","player/pl_snow6.wav" }
new const sound_chill[][] = { "sw/chill.wav" }
new const sound_unchill[][] = { "sw/unchill.wav" }
new const sound_win_blue[][] = { "sw/blue1.wav" }
new const sound_win_red[][] = { "sw/red1.wav" }
new const sound_win_no_one[][] = { "sw/draw.wav" }

/*================================================================================
 [CUSTOMIZATION ENDS HERE!]
=================================================================================*/

/*================================================================================
 [Enums]
=================================================================================*/

enum(+=100)
{
	TASK_WELCOME = 100,
	TASK_AMMO,
	TASK_RESPAWN,
	TASK_UNCHILL,
	TASK_MODEL,
	TASK_GOD
}

enum
{
	CS_TEAM_UNASSIGNED = 0,
	CS_TEAM_T,
	CS_TEAM_CT,
	CS_TEAM_SPECTATOR
}

/*================================================================================
 [Pcvars]
=================================================================================*/

new pcvar_on,pcvar_friendly,pcvar_dmg,pcvar_life,pcvar_dm,pcvar_dm_time,pcvar_chill_chance,
pcvar_chill_duration,pcvar_chill_speed,pcvar_gravity,pcvar_velocity,pcvar_crosshair,
pcvar_spawn,pcvar_spawn_duration,pcvar_bots

/*================================================================================
 [Player variables]
=================================================================================*/

new g_red[33],g_blue[33],g_IsChilled[33],Float:g_maxspeed[33],Float:g_ChillySpeed[33],
g_has_custom_model[33],g_player_model[33][32],g_god[33],g_bots

/*================================================================================
 [Global Variables]
=================================================================================*/

new g_money,g_weapon,g_crosshair,g_fwSpawn,g_sync,g_maxplayers,g_death,g_endround,
g_spray,g_glass,g_drop,gmsgScreenFade,Float:g_models_counter	

//This can affect gameplay
new const g_not_needed[][] =
{
	"weaponbox",
	"armoury_entity",
	"grenade",
	"func_bomb_target",
	"info_bomb_target",
	"info_vip_start",
	"func_vip_safetyzone",
	"func_escapezone",
	"hostage_entity",
	"monster_scientist",
	"func_hostage_rescue",
	"info_hostage_rescue"
}

//Grenade bounce sounds
new const g_bouncelist[4][64] =
{
	"weapons/grenade_hit1.wav",
	"weapons/grenade_hit2.wav",
	"weapons/grenade_hit3.wav",
	"weapons/he_bounce-1.wav"
}

//Mod name
new const g_modname[] = "Snowball war"

//Skyboxes
new const g_skybox[][] = { "snow","office" }


/*================================================================================
 [Offsets and Constants]
=================================================================================*/

#if cellbits == 32
const OFFSET_CSTEAMS = 114
const OFFSET_CSMONEY = 115
const OFFSET_HE_AMMO = 388
#else
const OFFSET_CSTEAMS = 139
const OFFSET_CSMONEY = 140
const OFFSET_HE_AMMO = 437
#endif
const OFFSET_LINUX  = 5

//To hide money displaying
const HIDE_MONEY = (1<<5)

//To hide crosshair
const HIDE_CROSSHAIR = (1<<6)

//For screen fade
const FFADE_IN = 0x0000

//For break glass effect
const BREAK_GLASS = 0x01

//Snow effect on server. Comment this line to disable
#define EFFECT_SNOW

//If you experience many SVC_BAD kicks. increase this (for example set it to 0.5)
const Float:MODEL_DELAY = 0.2

//Version information
new const VERSION[] = "3.05"

/*================================================================================
 [Code ;)]
=================================================================================*/

public plugin_precache()
{
	new a,modelpath[200]
	
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_blue[a])
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_red[a])
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_no_one[a])
	for(a = 0; a < sizeof sound_pain; a++)
		engfunc(EngFunc_PrecacheSound,sound_pain[a])
	for(a = 0; a < sizeof sound_hit; a++)
		engfunc(EngFunc_PrecacheSound,sound_hit[a])
	for(a = 0; a < sizeof sound_chill; a++)
		engfunc(EngFunc_PrecacheSound,sound_chill[a])
	for(a = 0; a < sizeof sound_unchill; a++)
		engfunc(EngFunc_PrecacheSound,sound_unchill[a])
		
	for(a = 0;a < sizeof model_blue; a++)
	{
		formatex(modelpath, sizeof modelpath - 1, "models/player/%s/%s.mdl", model_blue[a], model_blue[a])
		engfunc(EngFunc_PrecacheModel,modelpath)
	}
	for(a = 0;a < sizeof model_red; a++)
	{
		formatex(modelpath, sizeof modelpath - 1, "models/player/%s/%s.mdl", model_red[a], model_red[a])
		engfunc(EngFunc_PrecacheModel,modelpath)
	}
		
	engfunc(EngFunc_PrecacheModel,model_nade_world)
	engfunc(EngFunc_PrecacheModel,model_nade_view)
	engfunc(EngFunc_PrecacheModel,model_nade_player)
	engfunc(EngFunc_PrecacheModel,model_splash)
	
	g_drop = engfunc(EngFunc_PrecacheModel,"sprites/blood.spr")
	g_spray = engfunc(EngFunc_PrecacheModel,"sprites/bloodspray.spr")
	g_glass = engfunc(EngFunc_PrecacheModel,"models/glassgibs.mdl")
	
	#if defined EFFECT_SNOW
	engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_snow"))
	#endif
	
	//Fake hostage to force round ending
	new ent
	ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"hostage_entity"))
	
	if(pev_valid(ent))
	{
		engfunc(EngFunc_SetOrigin, ent, Float:{8192.0 ,8192.0 ,8192.0})
		dllfunc(DLLFunc_Spawn, ent)
	}
	
	//Prevent some etnities form spawning
	g_fwSpawn = register_forward(FM_Spawn,"fw_SpawnEntity")
	
}

public plugin_init()
{
	register_plugin("Snowball war", VERSION, "FakeNick")
	
	pcvar_on = register_cvar("sw_toggle","1")
	
	//Make sure that plugin is on
	if(!get_pcvar_num(pcvar_on))
		return
	
	//Register dictionary
	register_dictionary("sw.txt")
	
	//Events
	register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
	register_event("CurWeapon","event_modelchange","be","1=1")
	register_logevent("logevent_round_end",2,"1=Round_End")
	
	//Forwards
	RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn",1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
	RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
	
	register_forward(FM_SetModel,"fw_SetModel")
	register_forward(FM_Touch,"fw_Touch")
	register_forward(FM_EmitSound,"fw_EmitSound")
	register_forward(FM_Think,"fw_Think")
	register_forward(FM_SetClientKeyValue, "fw_SetClientKeyValue")
	register_forward(FM_ClientUserInfoChanged, "fw_ClientUserInfoChanged")
	register_forward(FM_GetGameDescription,"fw_GameDesc")
	
	unregister_forward(FM_Spawn,g_fwSpawn)
	
	//Pcvars
	pcvar_friendly = register_cvar("sw_friendly","0")
	pcvar_dmg = register_cvar("sw_damage","100")
	pcvar_life = register_cvar("sw_life","3.0")
	pcvar_dm = register_cvar("sw_dm","0")
	pcvar_dm_time = register_cvar("sw_dm_time","2.0")
	pcvar_chill_chance = register_cvar("sw_chill_chance","30")
	pcvar_chill_duration = register_cvar("sw_chill_duration","5.0")
	pcvar_chill_speed = register_cvar("sw_chill_speed","50.0")
	pcvar_gravity = register_cvar("sw_snowball_gravity","0.3")
	pcvar_velocity = register_cvar("sw_snowball_velocity","2.0")
	pcvar_crosshair = register_cvar("sw_crosshair_remove","1")
	pcvar_spawn = register_cvar("sw_spawn_protection","1")
	pcvar_spawn_duration = register_cvar("sw_spawn_protection_time","3.0")
	
	pcvar_bots = get_cvar_pointer("bot_quota")
	
	//For version recognize and see what server is running this plugin
	register_cvar("sw_version",VERSION,FCVAR_SERVER | FCVAR_SPONLY)
	
	//Set skybox
	set_cvar_string("sv_skyname", g_skybox[random_num(0, sizeof g_skybox - 1)])
	
	//Other stuff
	g_money = get_user_msgid("Money")
	g_weapon = get_user_msgid("HideWeapon")
	g_crosshair = get_user_msgid("Crosshair")
	g_death = get_user_msgid("DeathMsg")
	gmsgScreenFade = get_user_msgid("ScreenFade")
	
	g_sync = CreateHudSyncObj()
	
	g_maxplayers = get_maxplayers()
	
	//Messsages
	register_message(get_user_msgid("TextMsg"), "message_textmsg")
	register_message(get_user_msgid("SendAudio"),"message_audio")
	register_message(get_user_msgid("HostagePos"), "message_hostagepos")
	register_message(get_user_msgid("Scenario"), "message_scenario")
}
public plugin_cfg()
{
	// Get configs dir
	new cfgdir[32],file[192]
	
	get_configsdir(cfgdir, sizeof cfgdir - 1)
	
	formatex(file,sizeof file - 1,"%s/sw.cfg",cfgdir)
	
	if(file_exists(file))
	{
		// Execute config file (sw.cfg)
		server_cmd("exec %s", file)
	}else{
		log_amx("[SW] Snowball War config file doesn't exist!")
	}
}
/*================================================================================
 [Events]
=================================================================================*/
public event_round_start()
{
	//It's not round end
	g_endround = false
	
	//Reset models counter
	g_models_counter = 0.0
	
	//Remove old welcome task and make a new one
	remove_task(TASK_WELCOME)
	set_task(2.5,"func_welcome",TASK_WELCOME)
	
}
public event_modelchange(id)
{
	new weapon = read_data(2)
	
	if(weapon == CSW_HEGRENADE)
	{
		//Set view model and player model
		set_pev(id,pev_viewmodel2,model_nade_view)
		set_pev(id,pev_weaponmodel2,model_nade_world)
		
		//Remove crosshair
		if(get_pcvar_num(pcvar_crosshair))
		{
			message_begin( MSG_ONE_UNRELIABLE, g_weapon, _, id )
			write_byte(HIDE_CROSSHAIR)
			message_end()
		}
		
	}
}
public logevent_round_end()
{
	// Prevent this from getting called twice when restarting (bugfix)
	static Float:last
	if (get_gametime() - last < 0.5) return;
	last = get_gametime()
	
	g_endround = true
	
	// Show HUD notice, play win sound
	if (!sw_GetBlue())
	{
		//Red team wins
		set_hudmessage(200, 0, 0, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_RED")
		
		// Play win sound
		sw_sound(sound_win_red[random_num(0, sizeof sound_win_red -1)])
	}
	else if (!sw_GetRed())
	{
		//Blue team wins
		set_hudmessage(0, 0, 200, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_BLUE")
		
		// Play win sound
		sw_sound(sound_win_blue[random_num(0, sizeof sound_win_blue -1)])
	}
	else
	{
		// No one wins
		set_hudmessage(0, 200, 0, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_NO_ONE")
		
		sw_sound(sound_win_no_one[random_num(0, sizeof sound_win_no_one -1)])
	}
}
/*================================================================================
 [Main Part]
=================================================================================*/
public func_welcome()
{
	client_print(0,print_chat,"%L",LANG_PLAYER,"MSG_WELCOME",VERSION)
}
public client_connect(id)
{
	if(!get_pcvar_num(pcvar_on))
		return
	
	#if defined EFFECT_SNOW
	client_cmd(id, "cl_weather 1")
	#endif
}
public client_putinserver(id)
{
	// Plugin disabled?
	if (!get_pcvar_num(pcvar_on)) 
		return;
	
	// Initialize player vars
	g_IsChilled[id] = false
	g_blue[id] = false
	g_red[id]= false
	g_god[id] = false
	
	// CZ bots seem to use a different "classtype" for player entities
	// (or something like that) which needs to be hooked separately
	if (!g_bots && pcvar_bots && is_user_bot(id))
	{
		// Set a task to let the private data initialize
		set_task(0.1, "task_bots", id)
	}
}
public client_disconnect(id)
{
	if(!get_pcvar_num(pcvar_on))
		return
	
	g_IsChilled[id] = false
	g_blue[id] = false
	g_red[id]= false
	g_god[id] = false
}
/*================================================================================
 [Forwards]
=================================================================================*/

public fw_PlayerSpawn(id)
{
	if(!is_user_alive(id))
		return
	
	g_blue[id] = false
	g_red[id] = false
	g_IsChilled[id] = false
	g_god[id] = false
	
	//Strip player weapons
	fm_strip_user_weapons(id)
	
	//Give him knife and "snowball"
	fm_give_item(id,"weapon_knife")
	fm_give_item(id,"weapon_hegrenade")
	
	//Reset his model
	sw_reset_user_model(id)
	
	//Strip his cash ;]
	sw_set_user_money(id,0,0)
	
	//Hide money displaying
	sw_money(id)
	
	//Set his team variable
	switch(sw_get_user_team(id))
	{
		case CS_TEAM_CT : g_blue[id] = true
		case CS_TEAM_T : g_red[id] = true
	}
	
	//Set his new model
	remove_task(id + TASK_MODEL)
	
	// Store our custom model in g_player_model[id]
	if(g_blue[id])
	{
		copy(g_player_model[id], sizeof g_player_model[] - 1, model_blue[random_num(0, sizeof model_blue -1)])
		
	}else if(g_red[id])
	{
		copy(g_player_model[id], sizeof g_player_model[] - 1, model_red[random_num(0, sizeof model_red -1)])
	}
        
	// Get the current model
	new currentmodel[32]
	sw_get_user_model(id, currentmodel, sizeof currentmodel - 1)
        
	// Check whether it matches the custom model
	if (!equal(currentmodel, g_player_model[id]))
	{
		// If not, set a task to change it
		set_task(1.0 + g_models_counter, "task_set_model", id + TASK_MODEL)
            
		// Add a delay between every model change
		g_models_counter += MODEL_DELAY
	}
	
	//Check if spawn protection is on
	if(get_pcvar_num(pcvar_spawn))
	{
		//Set god
		g_god[id] = true
		
		//Remove an old task and make a new one
		remove_task(id + TASK_GOD)
		set_task(get_pcvar_float(pcvar_spawn_duration),"task_UnGod",id + TASK_GOD)
		
		//Set glow
		switch(sw_get_user_team(id))
		{
			case CS_TEAM_CT : fm_set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
			case CS_TEAM_T : fm_set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
		}
		
	}
	
}
public fw_SpawnEntity(entity)
{
	// Invalid entity
	if (!pev_valid(entity)) return FMRES_IGNORED
	
	// Get classname
	new classname[32]
	pev(entity, pev_classname, classname, sizeof classname - 1)
	
	// Check whether it needs to be removed
	for (new i = 0; i < sizeof g_not_needed; i++)
	{
		if (equal(classname, g_not_needed))
		{
			engfunc(EngFunc_RemoveEntity, entity)
			return FMRES_SUPERCEDE
		}
	}
	
	return FMRES_IGNORED
}
public fw_SetModel(ent,const model[])
{
	//Check ent validity
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//If model is equal to HE model, change it to snowball model
	if(equali(model,"models/w_hegrenade.mdl"))
	{
		//get owner to renew his ammo
		new Float:velocity[3],owner = pev(ent,pev_owner)
		
		//remove an old task an set a new one
		remove_task(owner + TASK_AMMO)
		set_task(0.01,"task_ammo",owner + TASK_AMMO)
		
		//Set model
		engfunc(EngFunc_SetModel,ent,model_nade_world)
		
		//Block from exploding
		set_pev(ent, pev_dmgtime, get_gametime() + 9999.0)
		
		//Set less gravity, so it will be "real" snowball
		set_pev(ent,pev_gravity,get_pcvar_float(pcvar_gravity))
		
		//Get grenade velocity
		pev(ent, pev_velocity, velocity)
		
		//Calculate new velocity
		velocity[0] *= get_pcvar_float(pcvar_velocity)
		velocity[1] *= get_pcvar_float(pcvar_velocity)
		velocity[2] *= get_pcvar_float(pcvar_velocity)
		
		//Set new velocity
		set_pev(ent, pev_velocity,velocity)
		
		return FMRES_SUPERCEDE
	}
	return FMRES_IGNORED
}
public fw_Touch(ent,id)
{
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//Create some variables
	new classname[20],classname2[20],Float:origin[3],owner = pev(ent,pev_owner)
	
	pev(ent,pev_origin,origin)
	pev(id,pev_classname,classname2,sizeof classname2 - 1)
	pev(ent,pev_classname,classname,sizeof classname - 1)
	
	//Player get's hit
	if(equali(classname,"grenade") && equali(classname2,"player"))
	{
		if(is_user_alive(id))
		{
			//Check friendly fire
			if (get_user_team(owner) == get_user_team(id))
				if (!get_pcvar_num(pcvar_friendly))
					return FMRES_IGNORED	
			
			//Check god mode
			if(g_god[id])
				return FMRES_IGNORED
			
			if(get_user_health(id) > get_pcvar_float(pcvar_dmg))
			{
				//Players health is greater than snowball damage
				
				//Calculate chill chance
				if(random_num(0,100) <= get_pcvar_num(pcvar_chill_chance))
				{
					//Chill only non-chilled player
					if(!g_IsChilled[id])
					{
						//Emit sound
						engfunc(EngFunc_EmitSound,id,CHAN_AUTO,sound_chill[random_num(0, sizeof sound_chill - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
						
						//Make light effect
						sw_light(origin)
						
						//Chill him!
						sw_ChillPlayer(id)
					
						//Set unchill task
						remove_task(id + TASK_UNCHILL)
						set_task(get_pcvar_float(pcvar_chill_duration),"task_UnChill",id + TASK_UNCHILL)
					}
				}
				
				//Create nice effect
				sw_effect(origin)
				
				//Emit pain sound
				engfunc(EngFunc_EmitSound,id,CHAN_VOICE,sound_pain[random_num(0, sizeof sound_pain - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Emit hit sound
				engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Do damage to player
				fm_set_user_health(id, get_user_health(id) - floatround(get_pcvar_float(pcvar_dmg)))
				
				//Make white splash
				sw_splash(ent,origin)
				
			}else if(get_user_health(id) <= get_pcvar_float(pcvar_dmg))
			{
				//Players health is lower or equal to snowball damage
				
				//Emit hit sound
				engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Make nice effect
				sw_effect(origin)
			
				//Remove entity
				engfunc(EngFunc_RemoveEntity,ent)
				
				//Kill player
				sw_kill(owner,id,"snowball",0)
			}	
		}else{	
			//Snowball hits something (not player)
			sw_splash(ent,origin)
		}
		
	}else if(equali(classname,"grenade"))
	{
		sw_effect(origin)
		
		//Snowball hit's something, f.e. wall, etc.
		sw_splash(ent,origin)
		
		//Emit hit sound
		engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
	}
	
	return FMRES_IGNORED
}
public fw_EmitSound(ent,channel,const sound[])
{
	//Check if emited sound is equal to one for our list
	for(new a; a < sizeof g_bouncelist;a++)
	{
		//If it's equal - block it
		if(equali(sound,g_bouncelist[a]))
			return FMRES_SUPERCEDE
	}
	return FMRES_IGNORED
}
public fw_Think(ent)
{
	//Check validity
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//Retrieve class
	static class[20]
	pev(ent,pev_classname,class,sizeof class - 1)
	
	//If class is equal to snow_splash, remove entity
	if(equali(class,"snow_splash"))
		engfunc(EngFunc_RemoveEntity,ent)
		
	return FMRES_IGNORED
}
public fw_SetClientKeyValue(id, const infobuffer[], const key[])
{   
	// Block CS model changes
	if (g_has_custom_model[id] && equal(key, "model"))
		return FMRES_SUPERCEDE
        
	return FMRES_IGNORED
}
public fw_ClientUserInfoChanged(id)
{
    // Player doesn't have a custom model
	if (!g_has_custom_model[id])
		return FMRES_IGNORED

	// Get current model
	static currentmodel[32]
	sw_get_user_model(id, currentmodel, sizeof currentmodel - 1)
    
	// Check whether it matches the custom model - if not, set it again
	if (!equal(currentmodel, g_player_model[id]))
		sw_set_user_model(id, g_player_model[id])
    
	return FMRES_IGNORED
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
	//Check if deathmatch is on
	if(!get_pcvar_num(pcvar_dm))
		return
	
	//Make sure that it's not round end
	if(!g_endround)
	{
		remove_task(victim + TASK_RESPAWN)
		set_task(get_pcvar_float(pcvar_dm_time),"task_respawn",victim + TASK_RESPAWN)
	}
	
}
//Block knife damage
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	// Non-player damage or self damage
	if (victim == attacker || !is_user_connected(attacker))
		return HAM_IGNORED
		
	return HAM_SUPERCEDE
}
//Change game name
public fw_GameDesc()
{
	forward_return(FMV_STRING,g_modname)
	return FMRES_SUPERCEDE
}
/*================================================================================
 [Messages]
=================================================================================*/

// Block some text messages
public message_textmsg()
{
	static textmsg[22]
	get_msg_arg_string(2, textmsg, sizeof textmsg - 1)
	
	// Game restarting, reset scores and call round end to balance the teams
	if (equal(textmsg, "#Game_will_restart_in"))
	{
		logevent_round_end()
	}
	// Block round end related messages 
	else if (equal(textmsg, "#Hostages_Not_Rescued") || equal(textmsg, "#Round_Draw") || equal(textmsg, "#Terrorists_Win") || equal(textmsg, "#CTs_Win"))
	{
		return PLUGIN_HANDLED
	}
	
	//Block "Fire in the hole!" text
	if(get_msg_args() == 5)
	{
		if(get_msg_argtype(5) == ARG_STRING)
		{
			new value5[64]
			get_msg_arg_string(5 ,value5 ,63)
			if(equal(value5, "#Fire_in_the_hole"))
			{
				return PLUGIN_HANDLED
			}
		}
	}
	else if(get_msg_args() == 6)
	{
		if(get_msg_argtype(6) == ARG_STRING)
		{
			new value6[64]
			get_msg_arg_string(6 ,value6 ,63)
			if(equal(value6 ,"#Fire_in_the_hole"))
			{
				return PLUGIN_HANDLED
			}
		}
	}
	
	return PLUGIN_CONTINUE
}

//Block some audio messages
public message_audio()
{
	//Create variable
	static sample[20]
	
	//Get message arguments
	get_msg_arg_string(2, sample, sizeof sample - 1)
	
	//Check argument, if it's equal - block it
	if(equal(sample[1], "!MRAD_FIREINHOLE"))
		return PLUGIN_HANDLED
			
	if(equal(sample[7], "terwin") || equal(sample[7], "ctwin") || equal(sample[7], "rounddraw"))
		return PLUGIN_HANDLED
	
	return PLUGIN_CONTINUE
}

//Block hostage from appearing on the radar
public message_hostagepos()
{
	return PLUGIN_HANDLED
}
// Block hostage HUD display
public message_scenario()
{
	if (get_msg_args() > 1)
	{
		static sprite[8]
		get_msg_arg_string(2, sprite, sizeof sprite - 1)
		
		if (equal(sprite, "hostage"))
			return PLUGIN_HANDLED
	}
	
	return PLUGIN_CONTINUE
}
/*================================================================================
 [TASKS]
=================================================================================*/
public task_ammo(id)
{
	id -= TASK_AMMO
	
	sw_set_user_bpammo(id,1)
}
public task_respawn(id)
{
	id -= TASK_RESPAWN
	
	ExecuteHamB(Ham_CS_RoundRespawn,id)
}
public task_UnChill(id)
{
	id -= TASK_UNCHILL
	
	new Float:origin[3]
	
	pev(id,pev_origin,origin)
	
	sw_UnChill(id,origin)
}
public task_set_model(id)
{
	id -= TASK_MODEL

	sw_set_user_model(id, g_player_model[id])
}
public task_UnGod(id)
{
	id -= TASK_GOD
	
	g_god[id] = false
	
	fm_set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
}
public task_bots(id)
{
	// Make sure it's a CZ bot and it's still connected
	if (g_bots || !get_pcvar_num(pcvar_bots) || !is_user_connected(id) || !is_user_bot(id))
		return;
	
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled")
	RegisterHamFromEntity(Ham_TakeDamage, id, "fw_TakeDamage")
	
	// Ham forwards for CZ bots succesfully registered
	g_bots = true
	
	// If the bot has already spawned, call the forward manually for him
	if (is_user_alive(id)) fw_PlayerSpawn(id)
}
/*================================================================================
 [Stocks]
=================================================================================*/

//Set player money
stock sw_set_user_money(id,money,flash=1)
{
	set_pdata_int(id,OFFSET_CSMONEY,money,OFFSET_LINUX)
	
	message_begin(MSG_ONE,g_money,{0,0,0},id)
	write_long(money)
	write_byte(flash)
	message_end()
}
// Get User Team
stock sw_get_user_team(id)
{
	return get_pdata_int(id, OFFSET_CSTEAMS, OFFSET_LINUX)
}
//With this stock we can set player model
stock sw_set_user_model(player, const modelname[])
{
	engfunc(EngFunc_SetClientKeyValue, player, engfunc(EngFunc_GetInfoKeyBuffer, player), "model", modelname)
    
	g_has_custom_model[player] = true
}
//With this stock we can get player model
stock sw_get_user_model(player, model[], len)
{
	engfunc(EngFunc_InfoKeyValue, engfunc(EngFunc_GetInfoKeyBuffer, player), "model", model, len)
}
//With this stock we can reset player model
stock sw_reset_user_model(player)
{
	g_has_custom_model[player] = false
    
	dllfunc(DLLFunc_ClientUserInfoChanged, player, engfunc(EngFunc_GetInfoKeyBuffer, player))
}
//Set user snowballs
stock sw_set_user_bpammo(id,amount)
{
	set_pdata_int(id, OFFSET_HE_AMMO, amount, OFFSET_LINUX)
}
//Make death msg
stock sw_kill(killer, victim, weapon[],headshot)
{
	set_msg_block(g_death , BLOCK_SET)
	user_kill(victim,1)
	set_msg_block(g_death, BLOCK_NOT)
	
	message_begin(MSG_ALL, g_death, {0,0,0}, 0)
	write_byte(killer)
	write_byte(victim)
	write_byte(headshot)
	write_string(weapon)
	message_end()
	
	if(get_user_team(killer)!= get_user_team(victim))
	{
		fm_set_user_frags(killer,get_user_frags(killer) + 1)
		
	}else{	
		fm_set_user_frags(killer,get_user_frags(killer) - 1)
	}
}
/*================================================================================
 [Other stuff]
=================================================================================*/
sw_GetBlue()
{
	static iCt, id
	iCt = 0
	
	for (id = 1; id <= g_maxplayers; id++)
	{
		if (is_user_connected(id))
		{	
			if(is_user_alive(id) && g_blue[id])
				iCt++
		}
	}
	
	return iCt
}
sw_GetRed()
{
	static iT, id
	iT = 0
	
	for (id = 1; id <= g_maxplayers; id++)
	{
		if (is_user_connected(id))
		{
			if(is_user_alive(id) && g_red[id])
				iT++
		}
	}
	
	return iT
}
sw_money(id)
{
	message_begin(MSG_ONE,g_weapon,_,id)
	write_byte(HIDE_MONEY)
	message_end()
	message_begin(MSG_ONE,g_crosshair,_,id)
	write_byte(0)
	message_end()
}
sw_sound(const sound[])
{
	client_cmd(0, "spk ^"%s^"", sound)
}
sw_splash(ent,Float:origin[3])
{
	set_pev(ent, pev_velocity, Float:{0.0, 0.0, 0.0})
	set_pev(ent, pev_classname, "snow_splash")
	set_pev(ent, pev_solid, SOLID_NOT)
	set_pev(ent, pev_movetype, MOVETYPE_NONE)
	engfunc(EngFunc_SetOrigin, ent, origin)
	engfunc(EngFunc_SetModel, ent, model_splash)
	set_pev(ent,pev_nextthink,get_gametime() + get_pcvar_float(pcvar_life))
	fm_set_rendering(ent, kRenderFxNoDissipation, 255, 255, 255, kRenderGlow, 255)
}
sw_effect(Float:fOrigin[3])
{
	new origin[3]
	FVecIVec(fOrigin,origin)
	
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_BLOODSPRITE)
	write_coord(origin[0]+random_num(-20,20))
	write_coord(origin[1]+random_num(-20,20))
	write_coord(origin[2]+random_num(-20,20))
	write_short(g_spray)
	write_short(g_drop)
	write_byte(255)
	write_byte(15)
	message_end()
}
sw_light(Float:originF[3])
{
	new origin[3]
	FVecIVec(originF,origin)
	
	// light effect
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_DLIGHT)
	write_coord(origin[0]) // x
	write_coord(origin[1]) // y
	write_coord(origin[2]) // z
	write_byte(floatround(240.0/5.0)) // radius
	write_byte(0) // r
	write_byte(206)// g
	write_byte(209) // b
	write_byte(8) // life
	write_byte(60) // decay rate
	message_end()
}
sw_ChillPlayer(id)
{
	//Set glow
	fm_set_user_rendering(id,kRenderFxGlowShell,0,206,209,kRenderNormal,25)
	
	//Set chill state
	g_IsChilled[id] = true
	
	//Retrieve player old maxspeed
	pev(id,pev_maxspeed,g_maxspeed[id])
	
	//Calculate his new maxspeed
	g_ChillySpeed[id] = g_maxspeed[id] * get_pcvar_float(pcvar_chill_speed) / 100.0
	
	//Set his new maxspeed
	set_pev(id,pev_maxspeed,g_ChillySpeed[id])
	
	//Add blue fade on players screen
	message_begin(MSG_ONE,gmsgScreenFade,_,id)
	write_short(floatround(4096.0 * get_pcvar_float(pcvar_chill_duration))) // duration
	write_short(floatround(3072.0 * get_pcvar_float(pcvar_chill_duration))) // hold time
	write_short(FFADE_IN) // flags
	write_byte(0) // red
	write_byte(206) // green
	write_byte(209) // blue
	write_byte(100) // alpha
	message_end()
}
sw_UnChill(id,Float:fOrigin[3])
{
	//Make some variables
	new origin[3]
	
	//Change origin from float to integer
	FVecIVec(fOrigin,origin)
	
	//Delete glow
	fm_set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
	
	//Restore his maxspeed
	set_pev(id,pev_maxspeed,g_maxspeed[id])
	
	//Set chill state
	g_IsChilled[id] = false
	
	// clear tint
	message_begin(MSG_ONE,gmsgScreenFade,_,id)
	write_short(0) // duration
	write_short(0) // hold time
	write_short(FFADE_IN) // flags
	write_byte(0) // red
	write_byte(0) // green
	write_byte(0) // blue
	write_byte(255)// alpha
	message_end()
	
	//Make glass effect
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_BREAKMODEL)
	write_coord(origin[0]) // x
	write_coord(origin[1]) // y
	write_coord(origin[2] + 24) // z
	write_coord(16) // size x
	write_coord(16) // size y
	write_coord(16) // size z
	write_coord(random_num(-50,50)) // velocity x
	write_coord(random_num(-50,50)) // velocity y
	write_coord(25) // velocity z
	write_byte(10) // random velocity
	write_short(g_glass) // model
	write_byte(10) // count
	write_byte(25) // life
	write_byte(BREAK_GLASS) // flags
	message_end()
	
	//Emit sound
	engfunc(EngFunc_EmitSound,id,CHAN_AUTO,sound_unchill[random_num(0, sizeof sound_unchill - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
}


Mersi :)
RoyalServer
User avatar
DaNNe.
Fost moderator
Fost moderator
Posts: 2811
Joined: 08 Nov 2013, 20:43
Detinator Steam: Da
CS Status: Activitate scăzută
SteamID: /id/FurienMaster
Reputatie: Nick anterior: DnD. Gold, Emrys
0.5/3
Fost moderator ajutator
Fost Membru Club eXtreamCS (doua luni)
Has thanked: 244 times
Been thanked: 129 times
Contact:

23 Dec 2013, 20:20

mezzzu wrote:

Code: Select all

L 12/23/2013 - 16:25:16: [FAKEMETA] Invalid entity
L 12/23/2013 - 16:25:16: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 16:25:16: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 16:25:16: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 64
6

Primesc eroarea aceasta in consola dupa care urmeaza crash ... Uitati sma :
| Afiseaza codul
/* AMX Mod X
*   Snowball war
*
*  /   \   /   \       ___________________________
* /   / \_/ \   \     /                           \
* \__/\     /\__/    /  GIVE ME A CARROT OR I WILL \
*      \O O/         \      BLOW UP YOUR HOUSE     /
*   ___/ ^ \___      / ___________________________/
*      \___/        /_/
*      _/ \_
*   __//   \\__
*  /___\/_\/___\
*
* (c) Copyright 2008 by FakeNick
*
* This file is provided as is (no warranties)
*
*     DESCRIPTION
*	My plugin is changing an HE grenade for snowball. When player spawns he receives only
*	knife and HE. When snowball hit's wall it will explode with nice spalt effect.
*	In this mod there are two teams : blue (CT's) and red (T's). They must kill their opponents
*	with snowball. When player gets hit, his health is decreasing and there's
*	a chance that player will be chilled. In this mod target is to kill your opponents,soldier!
*	Snowball war includes very simple deathmatch (default off). It is also changing players models
*	to santa's (T's) and snow soldiers (CT's) - this model can be changed by plugin user.
*	Snowball war enables snow effect on server (comment line 171 to disable).
*
*     MODULES
*	fakemeta
*	hamsandwich
*
*     CVARS
*	sw_toggle - is mod on/off? (default ON - 1)
*	sw_friendly - is friendly fire on/off? (default OFF - 0)
*	sw_damage - damage done by snowball (default 100)
*	sw_life - life of snowball splat (default 3.0)
*	sw_dm - is deathmatch on/off? (defualt OFF - 0)
*	sw_dm_time - time to respawn (default 2.0)
*	sw_chill_chance - chance to chill player (from 0 - off, to 100 - maximum chance, default 30)
*	sw_chill_duration - duration of chill (default 5.0)
*	sw_chill_speed - percentage of speed that player receives when chilled (default 50.0)
*	sw_snowball_gravity - gravity of snowball (default 0.3)
*	sw_snowball_velocity - how many times snowball velocity will be multipied (default 2.0 times)
*	sw_crosshair_remove - will be crosshair removed (default ON - 1)
*	sw_spawn_protection - is spawn protection on? (default ON - 1)
*	sw_spawn_protection_time - time of spawn protection (default 3.0)
*
*
*	Changelog 
*	 Version 3.0 :
*	  - Initial release
*
*	 Version 3.01 :
*	  - Added game description changer
*
*	 Version 3.02 :
*	  - Added change velocity of snowball
*	  - Added change gravity of snowball
*	  - Added crsoshair remover for more realism
*
*	 Version 3.03 :
*	  - Added breaking glass when unchilling player
*	  - Added random snow skybox generator
*	  - Added spawn protection
*
*	 Version 3.04 :
*	  - Fixed server crashing bug
*
*	 Version 3.05 :
*	  - Added support for bots (code from ZP)
*
*
*/
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fakemeta_util>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

//Do not touch this!
new const model_nade_world[] = "models/sw/w_snowball.mdl"
new const model_nade_view[] = "models/sw/v_snowball.mdl"
new const model_nade_player[] = "models/sw/p_snowball.mdl"
new const model_splash[] = "sprites/bhit.spr"

//Randomly chosen models and sounds, add as many, as you want

new const model_red[][] = { "red1" }
new const model_blue[][] = { "blue1" }

new const sound_pain[][] = { "player/pl_pain2.wav","player/pl_pain4.wav","player/pl_pain5.wav","player/pl_pain6.wav","player/pl_pain7.wav" }
new const sound_hit[][] = { "player/pl_snow1.wav","player/pl_snow2.wav","player/pl_snow3.wav","player/pl_snow4.wav","player/pl_snow5.wav","player/pl_snow6.wav" }
new const sound_chill[][] = { "sw/chill.wav" }
new const sound_unchill[][] = { "sw/unchill.wav" }
new const sound_win_blue[][] = { "sw/blue1.wav" }
new const sound_win_red[][] = { "sw/red1.wav" }
new const sound_win_no_one[][] = { "sw/draw.wav" }

/*================================================================================
 [CUSTOMIZATION ENDS HERE!]
=================================================================================*/

/*================================================================================
 [Enums]
=================================================================================*/

enum(+=100)
{
	TASK_WELCOME = 100,
	TASK_AMMO,
	TASK_RESPAWN,
	TASK_UNCHILL,
	TASK_MODEL,
	TASK_GOD
}

enum
{
	CS_TEAM_UNASSIGNED = 0,
	CS_TEAM_T,
	CS_TEAM_CT,
	CS_TEAM_SPECTATOR
}

/*================================================================================
 [Pcvars]
=================================================================================*/

new pcvar_on,pcvar_friendly,pcvar_dmg,pcvar_life,pcvar_dm,pcvar_dm_time,pcvar_chill_chance,
pcvar_chill_duration,pcvar_chill_speed,pcvar_gravity,pcvar_velocity,pcvar_crosshair,
pcvar_spawn,pcvar_spawn_duration,pcvar_bots

/*================================================================================
 [Player variables]
=================================================================================*/

new g_red[33],g_blue[33],g_IsChilled[33],Float:g_maxspeed[33],Float:g_ChillySpeed[33],
g_has_custom_model[33],g_player_model[33][32],g_god[33],g_bots

/*================================================================================
 [Global Variables]
=================================================================================*/

new g_money,g_weapon,g_crosshair,g_fwSpawn,g_sync,g_maxplayers,g_death,g_endround,
g_spray,g_glass,g_drop,gmsgScreenFade,Float:g_models_counter	

//This can affect gameplay
new const g_not_needed[][] =
{
	"weaponbox",
	"armoury_entity",
	"grenade",
	"func_bomb_target",
	"info_bomb_target",
	"info_vip_start",
	"func_vip_safetyzone",
	"func_escapezone",
	"hostage_entity",
	"monster_scientist",
	"func_hostage_rescue",
	"info_hostage_rescue"
}

//Grenade bounce sounds
new const g_bouncelist[4][64] =
{
	"weapons/grenade_hit1.wav",
	"weapons/grenade_hit2.wav",
	"weapons/grenade_hit3.wav",
	"weapons/he_bounce-1.wav"
}

//Mod name
new const g_modname[] = "Snowball war"

//Skyboxes
new const g_skybox[][] = { "snow","office" }


/*================================================================================
 [Offsets and Constants]
=================================================================================*/

#if cellbits == 32
const OFFSET_CSTEAMS = 114
const OFFSET_CSMONEY = 115
const OFFSET_HE_AMMO = 388
#else
const OFFSET_CSTEAMS = 139
const OFFSET_CSMONEY = 140
const OFFSET_HE_AMMO = 437
#endif
const OFFSET_LINUX  = 5

//To hide money displaying
const HIDE_MONEY = (1<<5)

//To hide crosshair
const HIDE_CROSSHAIR = (1<<6)

//For screen fade
const FFADE_IN = 0x0000

//For break glass effect
const BREAK_GLASS = 0x01

//Snow effect on server. Comment this line to disable
#define EFFECT_SNOW

//If you experience many SVC_BAD kicks. increase this (for example set it to 0.5)
const Float:MODEL_DELAY = 0.2

//Version information
new const VERSION[] = "3.05"

/*================================================================================
 [Code ;)]
=================================================================================*/

public plugin_precache()
{
	new a,modelpath[200]
	
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_blue[a])
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_red[a])
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_no_one[a])
	for(a = 0; a < sizeof sound_pain; a++)
		engfunc(EngFunc_PrecacheSound,sound_pain[a])
	for(a = 0; a < sizeof sound_hit; a++)
		engfunc(EngFunc_PrecacheSound,sound_hit[a])
	for(a = 0; a < sizeof sound_chill; a++)
		engfunc(EngFunc_PrecacheSound,sound_chill[a])
	for(a = 0; a < sizeof sound_unchill; a++)
		engfunc(EngFunc_PrecacheSound,sound_unchill[a])
		
	for(a = 0;a < sizeof model_blue; a++)
	{
		formatex(modelpath, sizeof modelpath - 1, "models/player/%s/%s.mdl", model_blue[a], model_blue[a])
		engfunc(EngFunc_PrecacheModel,modelpath)
	}
	for(a = 0;a < sizeof model_red; a++)
	{
		formatex(modelpath, sizeof modelpath - 1, "models/player/%s/%s.mdl", model_red[a], model_red[a])
		engfunc(EngFunc_PrecacheModel,modelpath)
	}
		
	engfunc(EngFunc_PrecacheModel,model_nade_world)
	engfunc(EngFunc_PrecacheModel,model_nade_view)
	engfunc(EngFunc_PrecacheModel,model_nade_player)
	engfunc(EngFunc_PrecacheModel,model_splash)
	
	g_drop = engfunc(EngFunc_PrecacheModel,"sprites/blood.spr")
	g_spray = engfunc(EngFunc_PrecacheModel,"sprites/bloodspray.spr")
	g_glass = engfunc(EngFunc_PrecacheModel,"models/glassgibs.mdl")
	
	#if defined EFFECT_SNOW
	engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_snow"))
	#endif
	
	//Fake hostage to force round ending
	new ent
	ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"hostage_entity"))
	
	if(pev_valid(ent))
	{
		engfunc(EngFunc_SetOrigin, ent, Float:{8192.0 ,8192.0 ,8192.0})
		dllfunc(DLLFunc_Spawn, ent)
	}
	
	//Prevent some etnities form spawning
	g_fwSpawn = register_forward(FM_Spawn,"fw_SpawnEntity")
	
}

public plugin_init()
{
	register_plugin("Snowball war", VERSION, "FakeNick")
	
	pcvar_on = register_cvar("sw_toggle","1")
	
	//Make sure that plugin is on
	if(!get_pcvar_num(pcvar_on))
		return
	
	//Register dictionary
	register_dictionary("sw.txt")
	
	//Events
	register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
	register_event("CurWeapon","event_modelchange","be","1=1")
	register_logevent("logevent_round_end",2,"1=Round_End")
	
	//Forwards
	RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn",1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
	RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
	
	register_forward(FM_SetModel,"fw_SetModel")
	register_forward(FM_Touch,"fw_Touch")
	register_forward(FM_EmitSound,"fw_EmitSound")
	register_forward(FM_Think,"fw_Think")
	register_forward(FM_SetClientKeyValue, "fw_SetClientKeyValue")
	register_forward(FM_ClientUserInfoChanged, "fw_ClientUserInfoChanged")
	register_forward(FM_GetGameDescription,"fw_GameDesc")
	
	unregister_forward(FM_Spawn,g_fwSpawn)
	
	//Pcvars
	pcvar_friendly = register_cvar("sw_friendly","0")
	pcvar_dmg = register_cvar("sw_damage","100")
	pcvar_life = register_cvar("sw_life","3.0")
	pcvar_dm = register_cvar("sw_dm","0")
	pcvar_dm_time = register_cvar("sw_dm_time","2.0")
	pcvar_chill_chance = register_cvar("sw_chill_chance","30")
	pcvar_chill_duration = register_cvar("sw_chill_duration","5.0")
	pcvar_chill_speed = register_cvar("sw_chill_speed","50.0")
	pcvar_gravity = register_cvar("sw_snowball_gravity","0.3")
	pcvar_velocity = register_cvar("sw_snowball_velocity","2.0")
	pcvar_crosshair = register_cvar("sw_crosshair_remove","1")
	pcvar_spawn = register_cvar("sw_spawn_protection","1")
	pcvar_spawn_duration = register_cvar("sw_spawn_protection_time","3.0")
	
	pcvar_bots = get_cvar_pointer("bot_quota")
	
	//For version recognize and see what server is running this plugin
	register_cvar("sw_version",VERSION,FCVAR_SERVER | FCVAR_SPONLY)
	
	//Set skybox
	set_cvar_string("sv_skyname", g_skybox[random_num(0, sizeof g_skybox - 1)])
	
	//Other stuff
	g_money = get_user_msgid("Money")
	g_weapon = get_user_msgid("HideWeapon")
	g_crosshair = get_user_msgid("Crosshair")
	g_death = get_user_msgid("DeathMsg")
	gmsgScreenFade = get_user_msgid("ScreenFade")
	
	g_sync = CreateHudSyncObj()
	
	g_maxplayers = get_maxplayers()
	
	//Messsages
	register_message(get_user_msgid("TextMsg"), "message_textmsg")
	register_message(get_user_msgid("SendAudio"),"message_audio")
	register_message(get_user_msgid("HostagePos"), "message_hostagepos")
	register_message(get_user_msgid("Scenario"), "message_scenario")
}
public plugin_cfg()
{
	// Get configs dir
	new cfgdir[32],file[192]
	
	get_configsdir(cfgdir, sizeof cfgdir - 1)
	
	formatex(file,sizeof file - 1,"%s/sw.cfg",cfgdir)
	
	if(file_exists(file))
	{
		// Execute config file (sw.cfg)
		server_cmd("exec %s", file)
	}else{
		log_amx("[SW] Snowball War config file doesn't exist!")
	}
}
/*================================================================================
 [Events]
=================================================================================*/
public event_round_start()
{
	//It's not round end
	g_endround = false
	
	//Reset models counter
	g_models_counter = 0.0
	
	//Remove old welcome task and make a new one
	remove_task(TASK_WELCOME)
	set_task(2.5,"func_welcome",TASK_WELCOME)
	
}
public event_modelchange(id)
{
	new weapon = read_data(2)
	
	if(weapon == CSW_HEGRENADE)
	{
		//Set view model and player model
		set_pev(id,pev_viewmodel2,model_nade_view)
		set_pev(id,pev_weaponmodel2,model_nade_world)
		
		//Remove crosshair
		if(get_pcvar_num(pcvar_crosshair))
		{
			message_begin( MSG_ONE_UNRELIABLE, g_weapon, _, id )
			write_byte(HIDE_CROSSHAIR)
			message_end()
		}
		
	}
}
public logevent_round_end()
{
	// Prevent this from getting called twice when restarting (bugfix)
	static Float:last
	if (get_gametime() - last < 0.5) return;
	last = get_gametime()
	
	g_endround = true
	
	// Show HUD notice, play win sound
	if (!sw_GetBlue())
	{
		//Red team wins
		set_hudmessage(200, 0, 0, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_RED")
		
		// Play win sound
		sw_sound(sound_win_red[random_num(0, sizeof sound_win_red -1)])
	}
	else if (!sw_GetRed())
	{
		//Blue team wins
		set_hudmessage(0, 0, 200, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_BLUE")
		
		// Play win sound
		sw_sound(sound_win_blue[random_num(0, sizeof sound_win_blue -1)])
	}
	else
	{
		// No one wins
		set_hudmessage(0, 200, 0, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_NO_ONE")
		
		sw_sound(sound_win_no_one[random_num(0, sizeof sound_win_no_one -1)])
	}
}
/*================================================================================
 [Main Part]
=================================================================================*/
public func_welcome()
{
	client_print(0,print_chat,"%L",LANG_PLAYER,"MSG_WELCOME",VERSION)
}
public client_connect(id)
{
	if(!get_pcvar_num(pcvar_on))
		return
	
	#if defined EFFECT_SNOW
	client_cmd(id, "cl_weather 1")
	#endif
}
public client_putinserver(id)
{
	// Plugin disabled?
	if (!get_pcvar_num(pcvar_on)) 
		return;
	
	// Initialize player vars
	g_IsChilled[id] = false
	g_blue[id] = false
	g_red[id]= false
	g_god[id] = false
	
	// CZ bots seem to use a different "classtype" for player entities
	// (or something like that) which needs to be hooked separately
	if (!g_bots && pcvar_bots && is_user_bot(id))
	{
		// Set a task to let the private data initialize
		set_task(0.1, "task_bots", id)
	}
}
public client_disconnect(id)
{
	if(!get_pcvar_num(pcvar_on))
		return
	
	g_IsChilled[id] = false
	g_blue[id] = false
	g_red[id]= false
	g_god[id] = false
}
/*================================================================================
 [Forwards]
=================================================================================*/

public fw_PlayerSpawn(id)
{
	if(!is_user_alive(id))
		return
	
	g_blue[id] = false
	g_red[id] = false
	g_IsChilled[id] = false
	g_god[id] = false
	
	//Strip player weapons
	fm_strip_user_weapons(id)
	
	//Give him knife and "snowball"
	fm_give_item(id,"weapon_knife")
	fm_give_item(id,"weapon_hegrenade")
	
	//Reset his model
	sw_reset_user_model(id)
	
	//Strip his cash ;]
	sw_set_user_money(id,0,0)
	
	//Hide money displaying
	sw_money(id)
	
	//Set his team variable
	switch(sw_get_user_team(id))
	{
		case CS_TEAM_CT : g_blue[id] = true
		case CS_TEAM_T : g_red[id] = true
	}
	
	//Set his new model
	remove_task(id + TASK_MODEL)
	
	// Store our custom model in g_player_model[id]
	if(g_blue[id])
	{
		copy(g_player_model[id], sizeof g_player_model[] - 1, model_blue[random_num(0, sizeof model_blue -1)])
		
	}else if(g_red[id])
	{
		copy(g_player_model[id], sizeof g_player_model[] - 1, model_red[random_num(0, sizeof model_red -1)])
	}
        
	// Get the current model
	new currentmodel[32]
	sw_get_user_model(id, currentmodel, sizeof currentmodel - 1)
        
	// Check whether it matches the custom model
	if (!equal(currentmodel, g_player_model[id]))
	{
		// If not, set a task to change it
		set_task(1.0 + g_models_counter, "task_set_model", id + TASK_MODEL)
            
		// Add a delay between every model change
		g_models_counter += MODEL_DELAY
	}
	
	//Check if spawn protection is on
	if(get_pcvar_num(pcvar_spawn))
	{
		//Set god
		g_god[id] = true
		
		//Remove an old task and make a new one
		remove_task(id + TASK_GOD)
		set_task(get_pcvar_float(pcvar_spawn_duration),"task_UnGod",id + TASK_GOD)
		
		//Set glow
		switch(sw_get_user_team(id))
		{
			case CS_TEAM_CT : fm_set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
			case CS_TEAM_T : fm_set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
		}
		
	}
	
}
public fw_SpawnEntity(entity)
{
	// Invalid entity
	if (!pev_valid(entity)) return FMRES_IGNORED
	
	// Get classname
	new classname[32]
	pev(entity, pev_classname, classname, sizeof classname - 1)
	
	// Check whether it needs to be removed
	for (new i = 0; i < sizeof g_not_needed; i++)
	{
		if (equal(classname, g_not_needed))
		{
			engfunc(EngFunc_RemoveEntity, entity)
			return FMRES_SUPERCEDE
		}
	}
	
	return FMRES_IGNORED
}
public fw_SetModel(ent,const model[])
{
	//Check ent validity
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//If model is equal to HE model, change it to snowball model
	if(equali(model,"models/w_hegrenade.mdl"))
	{
		//get owner to renew his ammo
		new Float:velocity[3],owner = pev(ent,pev_owner)
		
		//remove an old task an set a new one
		remove_task(owner + TASK_AMMO)
		set_task(0.01,"task_ammo",owner + TASK_AMMO)
		
		//Set model
		engfunc(EngFunc_SetModel,ent,model_nade_world)
		
		//Block from exploding
		set_pev(ent, pev_dmgtime, get_gametime() + 9999.0)
		
		//Set less gravity, so it will be "real" snowball
		set_pev(ent,pev_gravity,get_pcvar_float(pcvar_gravity))
		
		//Get grenade velocity
		pev(ent, pev_velocity, velocity)
		
		//Calculate new velocity
		velocity[0] *= get_pcvar_float(pcvar_velocity)
		velocity[1] *= get_pcvar_float(pcvar_velocity)
		velocity[2] *= get_pcvar_float(pcvar_velocity)
		
		//Set new velocity
		set_pev(ent, pev_velocity,velocity)
		
		return FMRES_SUPERCEDE
	}
	return FMRES_IGNORED
}
public fw_Touch(ent,id)
{
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//Create some variables
	new classname[20],classname2[20],Float:origin[3],owner = pev(ent,pev_owner)
	
	pev(ent,pev_origin,origin)
	pev(id,pev_classname,classname2,sizeof classname2 - 1)
	pev(ent,pev_classname,classname,sizeof classname - 1)
	
	//Player get's hit
	if(equali(classname,"grenade") && equali(classname2,"player"))
	{
		if(is_user_alive(id))
		{
			//Check friendly fire
			if (get_user_team(owner) == get_user_team(id))
				if (!get_pcvar_num(pcvar_friendly))
					return FMRES_IGNORED	
			
			//Check god mode
			if(g_god[id])
				return FMRES_IGNORED
			
			if(get_user_health(id) > get_pcvar_float(pcvar_dmg))
			{
				//Players health is greater than snowball damage
				
				//Calculate chill chance
				if(random_num(0,100) <= get_pcvar_num(pcvar_chill_chance))
				{
					//Chill only non-chilled player
					if(!g_IsChilled[id])
					{
						//Emit sound
						engfunc(EngFunc_EmitSound,id,CHAN_AUTO,sound_chill[random_num(0, sizeof sound_chill - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
						
						//Make light effect
						sw_light(origin)
						
						//Chill him!
						sw_ChillPlayer(id)
					
						//Set unchill task
						remove_task(id + TASK_UNCHILL)
						set_task(get_pcvar_float(pcvar_chill_duration),"task_UnChill",id + TASK_UNCHILL)
					}
				}
				
				//Create nice effect
				sw_effect(origin)
				
				//Emit pain sound
				engfunc(EngFunc_EmitSound,id,CHAN_VOICE,sound_pain[random_num(0, sizeof sound_pain - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Emit hit sound
				engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Do damage to player
				fm_set_user_health(id, get_user_health(id) - floatround(get_pcvar_float(pcvar_dmg)))
				
				//Make white splash
				sw_splash(ent,origin)
				
			}else if(get_user_health(id) <= get_pcvar_float(pcvar_dmg))
			{
				//Players health is lower or equal to snowball damage
				
				//Emit hit sound
				engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Make nice effect
				sw_effect(origin)
			
				//Remove entity
				engfunc(EngFunc_RemoveEntity,ent)
				
				//Kill player
				sw_kill(owner,id,"snowball",0)
			}	
		}else{	
			//Snowball hits something (not player)
			sw_splash(ent,origin)
		}
		
	}else if(equali(classname,"grenade"))
	{
		sw_effect(origin)
		
		//Snowball hit's something, f.e. wall, etc.
		sw_splash(ent,origin)
		
		//Emit hit sound
		engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
	}
	
	return FMRES_IGNORED
}
public fw_EmitSound(ent,channel,const sound[])
{
	//Check if emited sound is equal to one for our list
	for(new a; a < sizeof g_bouncelist;a++)
	{
		//If it's equal - block it
		if(equali(sound,g_bouncelist[a]))
			return FMRES_SUPERCEDE
	}
	return FMRES_IGNORED
}
public fw_Think(ent)
{
	//Check validity
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//Retrieve class
	static class[20]
	pev(ent,pev_classname,class,sizeof class - 1)
	
	//If class is equal to snow_splash, remove entity
	if(equali(class,"snow_splash"))
		engfunc(EngFunc_RemoveEntity,ent)
		
	return FMRES_IGNORED
}
public fw_SetClientKeyValue(id, const infobuffer[], const key[])
{   
	// Block CS model changes
	if (g_has_custom_model[id] && equal(key, "model"))
		return FMRES_SUPERCEDE
        
	return FMRES_IGNORED
}
public fw_ClientUserInfoChanged(id)
{
    // Player doesn't have a custom model
	if (!g_has_custom_model[id])
		return FMRES_IGNORED

	// Get current model
	static currentmodel[32]
	sw_get_user_model(id, currentmodel, sizeof currentmodel - 1)
    
	// Check whether it matches the custom model - if not, set it again
	if (!equal(currentmodel, g_player_model[id]))
		sw_set_user_model(id, g_player_model[id])
    
	return FMRES_IGNORED
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
	//Check if deathmatch is on
	if(!get_pcvar_num(pcvar_dm))
		return
	
	//Make sure that it's not round end
	if(!g_endround)
	{
		remove_task(victim + TASK_RESPAWN)
		set_task(get_pcvar_float(pcvar_dm_time),"task_respawn",victim + TASK_RESPAWN)
	}
	
}
//Block knife damage
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	// Non-player damage or self damage
	if (victim == attacker || !is_user_connected(attacker))
		return HAM_IGNORED
		
	return HAM_SUPERCEDE
}
//Change game name
public fw_GameDesc()
{
	forward_return(FMV_STRING,g_modname)
	return FMRES_SUPERCEDE
}
/*================================================================================
 [Messages]
=================================================================================*/

// Block some text messages
public message_textmsg()
{
	static textmsg[22]
	get_msg_arg_string(2, textmsg, sizeof textmsg - 1)
	
	// Game restarting, reset scores and call round end to balance the teams
	if (equal(textmsg, "#Game_will_restart_in"))
	{
		logevent_round_end()
	}
	// Block round end related messages 
	else if (equal(textmsg, "#Hostages_Not_Rescued") || equal(textmsg, "#Round_Draw") || equal(textmsg, "#Terrorists_Win") || equal(textmsg, "#CTs_Win"))
	{
		return PLUGIN_HANDLED
	}
	
	//Block "Fire in the hole!" text
	if(get_msg_args() == 5)
	{
		if(get_msg_argtype(5) == ARG_STRING)
		{
			new value5[64]
			get_msg_arg_string(5 ,value5 ,63)
			if(equal(value5, "#Fire_in_the_hole"))
			{
				return PLUGIN_HANDLED
			}
		}
	}
	else if(get_msg_args() == 6)
	{
		if(get_msg_argtype(6) == ARG_STRING)
		{
			new value6[64]
			get_msg_arg_string(6 ,value6 ,63)
			if(equal(value6 ,"#Fire_in_the_hole"))
			{
				return PLUGIN_HANDLED
			}
		}
	}
	
	return PLUGIN_CONTINUE
}

//Block some audio messages
public message_audio()
{
	//Create variable
	static sample[20]
	
	//Get message arguments
	get_msg_arg_string(2, sample, sizeof sample - 1)
	
	//Check argument, if it's equal - block it
	if(equal(sample[1], "!MRAD_FIREINHOLE"))
		return PLUGIN_HANDLED
			
	if(equal(sample[7], "terwin") || equal(sample[7], "ctwin") || equal(sample[7], "rounddraw"))
		return PLUGIN_HANDLED
	
	return PLUGIN_CONTINUE
}

//Block hostage from appearing on the radar
public message_hostagepos()
{
	return PLUGIN_HANDLED
}
// Block hostage HUD display
public message_scenario()
{
	if (get_msg_args() > 1)
	{
		static sprite[8]
		get_msg_arg_string(2, sprite, sizeof sprite - 1)
		
		if (equal(sprite, "hostage"))
			return PLUGIN_HANDLED
	}
	
	return PLUGIN_CONTINUE
}
/*================================================================================
 [TASKS]
=================================================================================*/
public task_ammo(id)
{
	id -= TASK_AMMO
	
	sw_set_user_bpammo(id,1)
}
public task_respawn(id)
{
	id -= TASK_RESPAWN
	
	ExecuteHamB(Ham_CS_RoundRespawn,id)
}
public task_UnChill(id)
{
	id -= TASK_UNCHILL
	
	new Float:origin[3]
	
	pev(id,pev_origin,origin)
	
	sw_UnChill(id,origin)
}
public task_set_model(id)
{
	id -= TASK_MODEL

	sw_set_user_model(id, g_player_model[id])
}
public task_UnGod(id)
{
	id -= TASK_GOD
	
	g_god[id] = false
	
	fm_set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
}
public task_bots(id)
{
	// Make sure it's a CZ bot and it's still connected
	if (g_bots || !get_pcvar_num(pcvar_bots) || !is_user_connected(id) || !is_user_bot(id))
		return;
	
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled")
	RegisterHamFromEntity(Ham_TakeDamage, id, "fw_TakeDamage")
	
	// Ham forwards for CZ bots succesfully registered
	g_bots = true
	
	// If the bot has already spawned, call the forward manually for him
	if (is_user_alive(id)) fw_PlayerSpawn(id)
}
/*================================================================================
 [Stocks]
=================================================================================*/

//Set player money
stock sw_set_user_money(id,money,flash=1)
{
	set_pdata_int(id,OFFSET_CSMONEY,money,OFFSET_LINUX)
	
	message_begin(MSG_ONE,g_money,{0,0,0},id)
	write_long(money)
	write_byte(flash)
	message_end()
}
// Get User Team
stock sw_get_user_team(id)
{
	return get_pdata_int(id, OFFSET_CSTEAMS, OFFSET_LINUX)
}
//With this stock we can set player model
stock sw_set_user_model(player, const modelname[])
{
	engfunc(EngFunc_SetClientKeyValue, player, engfunc(EngFunc_GetInfoKeyBuffer, player), "model", modelname)
    
	g_has_custom_model[player] = true
}
//With this stock we can get player model
stock sw_get_user_model(player, model[], len)
{
	engfunc(EngFunc_InfoKeyValue, engfunc(EngFunc_GetInfoKeyBuffer, player), "model", model, len)
}
//With this stock we can reset player model
stock sw_reset_user_model(player)
{
	g_has_custom_model[player] = false
    
	dllfunc(DLLFunc_ClientUserInfoChanged, player, engfunc(EngFunc_GetInfoKeyBuffer, player))
}
//Set user snowballs
stock sw_set_user_bpammo(id,amount)
{
	set_pdata_int(id, OFFSET_HE_AMMO, amount, OFFSET_LINUX)
}
//Make death msg
stock sw_kill(killer, victim, weapon[],headshot)
{
	set_msg_block(g_death , BLOCK_SET)
	user_kill(victim,1)
	set_msg_block(g_death, BLOCK_NOT)
	
	message_begin(MSG_ALL, g_death, {0,0,0}, 0)
	write_byte(killer)
	write_byte(victim)
	write_byte(headshot)
	write_string(weapon)
	message_end()
	
	if(get_user_team(killer)!= get_user_team(victim))
	{
		fm_set_user_frags(killer,get_user_frags(killer) + 1)
		
	}else{	
		fm_set_user_frags(killer,get_user_frags(killer) - 1)
	}
}
/*================================================================================
 [Other stuff]
=================================================================================*/
sw_GetBlue()
{
	static iCt, id
	iCt = 0
	
	for (id = 1; id <= g_maxplayers; id++)
	{
		if (is_user_connected(id))
		{	
			if(is_user_alive(id) && g_blue[id])
				iCt++
		}
	}
	
	return iCt
}
sw_GetRed()
{
	static iT, id
	iT = 0
	
	for (id = 1; id <= g_maxplayers; id++)
	{
		if (is_user_connected(id))
		{
			if(is_user_alive(id) && g_red[id])
				iT++
		}
	}
	
	return iT
}
sw_money(id)
{
	message_begin(MSG_ONE,g_weapon,_,id)
	write_byte(HIDE_MONEY)
	message_end()
	message_begin(MSG_ONE,g_crosshair,_,id)
	write_byte(0)
	message_end()
}
sw_sound(const sound[])
{
	client_cmd(0, "spk ^"%s^"", sound)
}
sw_splash(ent,Float:origin[3])
{
	set_pev(ent, pev_velocity, Float:{0.0, 0.0, 0.0})
	set_pev(ent, pev_classname, "snow_splash")
	set_pev(ent, pev_solid, SOLID_NOT)
	set_pev(ent, pev_movetype, MOVETYPE_NONE)
	engfunc(EngFunc_SetOrigin, ent, origin)
	engfunc(EngFunc_SetModel, ent, model_splash)
	set_pev(ent,pev_nextthink,get_gametime() + get_pcvar_float(pcvar_life))
	fm_set_rendering(ent, kRenderFxNoDissipation, 255, 255, 255, kRenderGlow, 255)
}
sw_effect(Float:fOrigin[3])
{
	new origin[3]
	FVecIVec(fOrigin,origin)
	
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_BLOODSPRITE)
	write_coord(origin[0]+random_num(-20,20))
	write_coord(origin[1]+random_num(-20,20))
	write_coord(origin[2]+random_num(-20,20))
	write_short(g_spray)
	write_short(g_drop)
	write_byte(255)
	write_byte(15)
	message_end()
}
sw_light(Float:originF[3])
{
	new origin[3]
	FVecIVec(originF,origin)
	
	// light effect
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_DLIGHT)
	write_coord(origin[0]) // x
	write_coord(origin[1]) // y
	write_coord(origin[2]) // z
	write_byte(floatround(240.0/5.0)) // radius
	write_byte(0) // r
	write_byte(206)// g
	write_byte(209) // b
	write_byte(8) // life
	write_byte(60) // decay rate
	message_end()
}
sw_ChillPlayer(id)
{
	//Set glow
	fm_set_user_rendering(id,kRenderFxGlowShell,0,206,209,kRenderNormal,25)
	
	//Set chill state
	g_IsChilled[id] = true
	
	//Retrieve player old maxspeed
	pev(id,pev_maxspeed,g_maxspeed[id])
	
	//Calculate his new maxspeed
	g_ChillySpeed[id] = g_maxspeed[id] * get_pcvar_float(pcvar_chill_speed) / 100.0
	
	//Set his new maxspeed
	set_pev(id,pev_maxspeed,g_ChillySpeed[id])
	
	//Add blue fade on players screen
	message_begin(MSG_ONE,gmsgScreenFade,_,id)
	write_short(floatround(4096.0 * get_pcvar_float(pcvar_chill_duration))) // duration
	write_short(floatround(3072.0 * get_pcvar_float(pcvar_chill_duration))) // hold time
	write_short(FFADE_IN) // flags
	write_byte(0) // red
	write_byte(206) // green
	write_byte(209) // blue
	write_byte(100) // alpha
	message_end()
}
sw_UnChill(id,Float:fOrigin[3])
{
	//Make some variables
	new origin[3]
	
	//Change origin from float to integer
	FVecIVec(fOrigin,origin)
	
	//Delete glow
	fm_set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
	
	//Restore his maxspeed
	set_pev(id,pev_maxspeed,g_maxspeed[id])
	
	//Set chill state
	g_IsChilled[id] = false
	
	// clear tint
	message_begin(MSG_ONE,gmsgScreenFade,_,id)
	write_short(0) // duration
	write_short(0) // hold time
	write_short(FFADE_IN) // flags
	write_byte(0) // red
	write_byte(0) // green
	write_byte(0) // blue
	write_byte(255)// alpha
	message_end()
	
	//Make glass effect
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_BREAKMODEL)
	write_coord(origin[0]) // x
	write_coord(origin[1]) // y
	write_coord(origin[2] + 24) // z
	write_coord(16) // size x
	write_coord(16) // size y
	write_coord(16) // size z
	write_coord(random_num(-50,50)) // velocity x
	write_coord(random_num(-50,50)) // velocity y
	write_coord(25) // velocity z
	write_byte(10) // random velocity
	write_short(g_glass) // model
	write_byte(10) // count
	write_byte(25) // life
	write_byte(BREAK_GLASS) // flags
	message_end()
	
	//Emit sound
	engfunc(EngFunc_EmitSound,id,CHAN_AUTO,sound_unchill[random_num(0, sizeof sound_unchill - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
}


Mersi :)


Am incercat sa-l ajut eu pe mess, degeaba - nu merge ... poate stie cineva :-j
User avatar
xDragosss
Membru, skill +1
Membru, skill +1
Posts: 136
Joined: 03 Nov 2013, 02:22
Detinator Steam: Da
CS Status: :(
Detinator server CS: CHRISTMAS.CS1.RO
SteamID: xdragoss1234
Has thanked: 21 times
Been thanked: 10 times
Contact:

23 Dec 2013, 20:53

incearca sa pui plugin.amxx debug
CHRISTMAS.CS1.RO - Christmas Ambience , New Skins , New Sounds , Enjoy !
User avatar
FaTzZu
Fost moderator
Fost moderator
Posts: 1206
Joined: 22 Dec 2012, 18:37
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 114 times
Been thanked: 168 times

23 Dec 2013, 21:46

xDragosss wrote:incearca sa pui plugin.amxx debug
Tu esti || nu te mai baga ... mezzzu eroarea zice ca entitatea respectiva nu exista deci trebuiesc puse conditii, care vad ca sunt puse :-? nu stiu de la ce ar putea fi
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.

#RETIRED.
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 137 times

23 Dec 2013, 22:22

FaTzZu wrote:
xDragosss wrote:incearca sa pui plugin.amxx debug
Tu esti || nu te mai baga ... mezzzu eroarea zice ca entitatea respectiva nu exista deci trebuiesc puse conditii, care vad ca sunt puse :-? nu stiu de la ce ar putea fi

Banuiesc ... deci stii cum ?:))
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

23 Dec 2013, 22:43

Daca ai copia tot error logul ar fi mai okay.
93.114.82.17:27015 - Monster Invasion CO-OP Mod
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 137 times

23 Dec 2013, 23:17

| Afiseaza codul
[0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:22: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:22: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:22: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:22: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:24: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:24: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:24: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:24: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:28: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:28: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:28: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:28: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:38: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:38: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:38: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:38: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:41: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:41: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:41: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:41: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:51: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:51: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:12:52: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:12:52: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:12:52: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:12:52: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:19: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:19: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:19: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:19: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:23: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:23: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:23: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:23: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:26: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:26: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:26: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:26: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:27: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:27: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:28: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:28: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:28: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:28: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:30: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:30: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:33: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:33: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:33: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:33: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:33: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:33: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:33: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:33: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:37: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:37: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:37: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:37: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:44: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:44: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:47: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:47: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:47: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:47: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:51: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:51: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:13:56: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:13:56: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:13:56: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:13:56: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:03: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:03: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:16: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:16: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:16: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:16: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:29: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:29: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:29: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:29: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:30: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:30: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:32: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:32: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:32: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:32: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:34: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:34: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:34: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:34: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:34: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:34: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:34: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:34: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:38: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:38: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:38: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:38: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:40: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:40: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:40: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:40: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:44: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:44: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:48: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:48: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:48: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:48: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:55: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:55: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:55: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:55: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:14:58: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:14:58: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:14:58: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:14:58: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:11: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:11: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:11: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:11: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:15: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:15: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:15: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:15: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:51: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:51: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:53: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:53: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:53: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:53: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:55: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:55: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:55: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:55: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:58: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:58: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:58: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:58: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:15:58: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:15:58: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:15:58: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:15:58: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:02: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:02: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:02: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:02: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:09: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:09: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:09: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:09: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:19: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:19: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:19: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:19: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:28: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:28: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:28: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:28: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:38: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:38: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:38: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:38: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:40: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:40: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:40: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:40: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/23/2013 - 23:16:46: [FAKEMETA] Invalid entity
L 12/23/2013 - 23:16:46: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/23/2013 - 23:16:46: [AMXX] Run time error 10: native error (native "pev")
L 12/23/2013 - 23:16:46: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
Atat gasesc in logs....
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

24 Dec 2013, 00:18

| Afiseaza codul
/* AMX Mod X
*   Snowball war
*
*  /   \   /   \       ___________________________
* /   / \_/ \   \     /                           \
* \__/\     /\__/    /  GIVE ME A CARROT OR I WILL \
*      \O O/         \      BLOW UP YOUR HOUSE     /
*   ___/ ^ \___      / ___________________________/
*      \___/        /_/
*      _/ \_
*   __//   \\__
*  /___\/_\/___\
*
* (c) Copyright 2008 by FakeNick
*
* This file is provided as is (no warranties)
*
*     DESCRIPTION
*	My plugin is changing an HE grenade for snowball. When player spawns he receives only
*	knife and HE. When snowball hit's wall it will explode with nice spalt effect.
*	In this mod there are two teams : blue (CT's) and red (T's). They must kill their opponents
*	with snowball. When player gets hit, his health is decreasing and there's
*	a chance that player will be chilled. In this mod target is to kill your opponents,soldier!
*	Snowball war includes very simple deathmatch (default off). It is also changing players models
*	to santa's (T's) and snow soldiers (CT's) - this model can be changed by plugin user.
*	Snowball war enables snow effect on server (comment line 171 to disable).
*
*     MODULES
*	fakemeta
*	hamsandwich
*
*     CVARS
*	sw_toggle - is mod on/off? (default ON - 1)
*	sw_friendly - is friendly fire on/off? (default OFF - 0)
*	sw_damage - damage done by snowball (default 100)
*	sw_life - life of snowball splat (default 3.0)
*	sw_dm - is deathmatch on/off? (defualt OFF - 0)
*	sw_dm_time - time to respawn (default 2.0)
*	sw_chill_chance - chance to chill player (from 0 - off, to 100 - maximum chance, default 30)
*	sw_chill_duration - duration of chill (default 5.0)
*	sw_chill_speed - percentage of speed that player receives when chilled (default 50.0)
*	sw_snowball_gravity - gravity of snowball (default 0.3)
*	sw_snowball_velocity - how many times snowball velocity will be multipied (default 2.0 times)
*	sw_crosshair_remove - will be crosshair removed (default ON - 1)
*	sw_spawn_protection - is spawn protection on? (default ON - 1)
*	sw_spawn_protection_time - time of spawn protection (default 3.0)
*
*
*	Changelog 
*	 Version 3.0 :
*	  - Initial release
*
*	 Version 3.01 :
*	  - Added game description changer
*
*	 Version 3.02 :
*	  - Added change velocity of snowball
*	  - Added change gravity of snowball
*	  - Added crsoshair remover for more realism
*
*	 Version 3.03 :
*	  - Added breaking glass when unchilling player
*	  - Added random snow skybox generator
*	  - Added spawn protection
*
*	 Version 3.04 :
*	  - Fixed server crashing bug
*
*	 Version 3.05 :
*	  - Added support for bots (code from ZP)
*
*
*/
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fakemeta_util>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

//Do not touch this!
new const model_nade_world[] = "models/sw/w_snowball.mdl"
new const model_nade_view[] = "models/sw/v_snowball.mdl"
new const model_nade_player[] = "models/sw/p_snowball.mdl"
new const model_splash[] = "sprites/bhit.spr"

//Randomly chosen models and sounds, add as many, as you want

new const model_red[][] = { "red1" }
new const model_blue[][] = { "blue1" }

new const sound_pain[][] = { "player/pl_pain2.wav","player/pl_pain4.wav","player/pl_pain5.wav","player/pl_pain6.wav","player/pl_pain7.wav" }
new const sound_hit[][] = { "player/pl_snow1.wav","player/pl_snow2.wav","player/pl_snow3.wav","player/pl_snow4.wav","player/pl_snow5.wav","player/pl_snow6.wav" }
new const sound_chill[][] = { "sw/chill.wav" }
new const sound_unchill[][] = { "sw/unchill.wav" }
new const sound_win_blue[][] = { "sw/blue1.wav" }
new const sound_win_red[][] = { "sw/red1.wav" }
new const sound_win_no_one[][] = { "sw/draw.wav" }

/*================================================================================
 [CUSTOMIZATION ENDS HERE!]
=================================================================================*/

/*================================================================================
 [Enums]
=================================================================================*/

enum(+=100)
{
	TASK_WELCOME = 100,
	TASK_AMMO,
	TASK_RESPAWN,
	TASK_UNCHILL,
	TASK_MODEL,
	TASK_GOD
}

enum
{
	CS_TEAM_UNASSIGNED = 0,
	CS_TEAM_T,
	CS_TEAM_CT,
	CS_TEAM_SPECTATOR
}

/*================================================================================
 [Pcvars]
=================================================================================*/

new pcvar_on,pcvar_friendly,pcvar_dmg,pcvar_life,pcvar_dm,pcvar_dm_time,pcvar_chill_chance,
pcvar_chill_duration,pcvar_chill_speed,pcvar_gravity,pcvar_velocity,pcvar_crosshair,
pcvar_spawn,pcvar_spawn_duration,pcvar_bots

/*================================================================================
 [Player variables]
=================================================================================*/

new g_red[33],g_blue[33],g_IsChilled[33],Float:g_maxspeed[33],Float:g_ChillySpeed[33],
g_has_custom_model[33],g_player_model[33][32],g_god[33],g_bots

/*================================================================================
 [Global Variables]
=================================================================================*/

new g_money,g_weapon,g_crosshair,g_fwSpawn,g_sync,g_maxplayers,g_death,g_endround,
g_spray,g_glass,g_drop,gmsgScreenFade,Float:g_models_counter	

//This can affect gameplay
new const g_not_needed[][] =
{
	"weaponbox",
	"armoury_entity",
	"grenade",
	"func_bomb_target",
	"info_bomb_target",
	"info_vip_start",
	"func_vip_safetyzone",
	"func_escapezone",
	"hostage_entity",
	"monster_scientist",
	"func_hostage_rescue",
	"info_hostage_rescue"
}

//Grenade bounce sounds
new const g_bouncelist[4][64] =
{
	"weapons/grenade_hit1.wav",
	"weapons/grenade_hit2.wav",
	"weapons/grenade_hit3.wav",
	"weapons/he_bounce-1.wav"
}

//Mod name
new const g_modname[] = "Snowball war"

//Skyboxes
new const g_skybox[][] = { "snow","office" }


/*================================================================================
 [Offsets and Constants]
=================================================================================*/

#if cellbits == 32
const OFFSET_CSTEAMS = 114
const OFFSET_CSMONEY = 115
const OFFSET_HE_AMMO = 388
#else
const OFFSET_CSTEAMS = 139
const OFFSET_CSMONEY = 140
const OFFSET_HE_AMMO = 437
#endif
const OFFSET_LINUX  = 5

//To hide money displaying
const HIDE_MONEY = (1<<5)

//To hide crosshair
const HIDE_CROSSHAIR = (1<<6)

//For screen fade
const FFADE_IN = 0x0000

//For break glass effect
const BREAK_GLASS = 0x01

//Snow effect on server. Comment this line to disable
#define EFFECT_SNOW

//If you experience many SVC_BAD kicks. increase this (for example set it to 0.5)
const Float:MODEL_DELAY = 0.2

//Version information
new const VERSION[] = "3.05"

/*================================================================================
 [Code ;)]
=================================================================================*/

public plugin_precache()
{
	new a,modelpath[200]
	
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_blue[a])
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_red[a])
	for(a = 0; a < sizeof sound_win_blue; a++)
		engfunc(EngFunc_PrecacheSound,sound_win_no_one[a])
	for(a = 0; a < sizeof sound_pain; a++)
		engfunc(EngFunc_PrecacheSound,sound_pain[a])
	for(a = 0; a < sizeof sound_hit; a++)
		engfunc(EngFunc_PrecacheSound,sound_hit[a])
	for(a = 0; a < sizeof sound_chill; a++)
		engfunc(EngFunc_PrecacheSound,sound_chill[a])
	for(a = 0; a < sizeof sound_unchill; a++)
		engfunc(EngFunc_PrecacheSound,sound_unchill[a])
		
	for(a = 0;a < sizeof model_blue; a++)
	{
		formatex(modelpath, sizeof modelpath - 1, "models/player/%s/%s.mdl", model_blue[a], model_blue[a])
		engfunc(EngFunc_PrecacheModel,modelpath)
	}
	for(a = 0;a < sizeof model_red; a++)
	{
		formatex(modelpath, sizeof modelpath - 1, "models/player/%s/%s.mdl", model_red[a], model_red[a])
		engfunc(EngFunc_PrecacheModel,modelpath)
	}
		
	engfunc(EngFunc_PrecacheModel,model_nade_world)
	engfunc(EngFunc_PrecacheModel,model_nade_view)
	engfunc(EngFunc_PrecacheModel,model_nade_player)
	engfunc(EngFunc_PrecacheModel,model_splash)
	
	g_drop = engfunc(EngFunc_PrecacheModel,"sprites/blood.spr")
	g_spray = engfunc(EngFunc_PrecacheModel,"sprites/bloodspray.spr")
	g_glass = engfunc(EngFunc_PrecacheModel,"models/glassgibs.mdl")
	
	#if defined EFFECT_SNOW
	engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "env_snow"))
	#endif
	
	//Fake hostage to force round ending
	new ent
	ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"hostage_entity"))
	
	if(pev_valid(ent))
	{
		engfunc(EngFunc_SetOrigin, ent, Float:{8192.0 ,8192.0 ,8192.0})
		dllfunc(DLLFunc_Spawn, ent)
	}
	
	//Prevent some etnities form spawning
	g_fwSpawn = register_forward(FM_Spawn,"fw_SpawnEntity")
	
}

public plugin_init()
{
	register_plugin("Snowball war", VERSION, "FakeNick")
	
	pcvar_on = register_cvar("sw_toggle","1")
	
	//Make sure that plugin is on
	if(!get_pcvar_num(pcvar_on))
		return
	
	//Register dictionary
	register_dictionary("sw.txt")
	
	//Events
	register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
	register_event("CurWeapon","event_modelchange","be","1=1")
	register_logevent("logevent_round_end",2,"1=Round_End")
	
	//Forwards
	RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn",1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
	RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
	
	register_forward(FM_SetModel,"fw_SetModel")
	register_forward(FM_Touch,"fw_Touch")
	register_forward(FM_EmitSound,"fw_EmitSound")
	register_forward(FM_Think,"fw_Think")
	register_forward(FM_SetClientKeyValue, "fw_SetClientKeyValue")
	register_forward(FM_ClientUserInfoChanged, "fw_ClientUserInfoChanged")
	register_forward(FM_GetGameDescription,"fw_GameDesc")
	
	unregister_forward(FM_Spawn,g_fwSpawn)
	
	//Pcvars
	pcvar_friendly = register_cvar("sw_friendly","0")
	pcvar_dmg = register_cvar("sw_damage","100")
	pcvar_life = register_cvar("sw_life","3.0")
	pcvar_dm = register_cvar("sw_dm","0")
	pcvar_dm_time = register_cvar("sw_dm_time","2.0")
	pcvar_chill_chance = register_cvar("sw_chill_chance","30")
	pcvar_chill_duration = register_cvar("sw_chill_duration","5.0")
	pcvar_chill_speed = register_cvar("sw_chill_speed","50.0")
	pcvar_gravity = register_cvar("sw_snowball_gravity","0.3")
	pcvar_velocity = register_cvar("sw_snowball_velocity","2.0")
	pcvar_crosshair = register_cvar("sw_crosshair_remove","1")
	pcvar_spawn = register_cvar("sw_spawn_protection","1")
	pcvar_spawn_duration = register_cvar("sw_spawn_protection_time","3.0")
	
	pcvar_bots = get_cvar_pointer("bot_quota")
	
	//For version recognize and see what server is running this plugin
	register_cvar("sw_version",VERSION,FCVAR_SERVER | FCVAR_SPONLY)
	
	//Set skybox
	set_cvar_string("sv_skyname", g_skybox[random_num(0, sizeof g_skybox - 1)])
	
	//Other stuff
	g_money = get_user_msgid("Money")
	g_weapon = get_user_msgid("HideWeapon")
	g_crosshair = get_user_msgid("Crosshair")
	g_death = get_user_msgid("DeathMsg")
	gmsgScreenFade = get_user_msgid("ScreenFade")
	
	g_sync = CreateHudSyncObj()
	
	g_maxplayers = get_maxplayers()
	
	//Messsages
	register_message(get_user_msgid("TextMsg"), "message_textmsg")
	register_message(get_user_msgid("SendAudio"),"message_audio")
	register_message(get_user_msgid("HostagePos"), "message_hostagepos")
	register_message(get_user_msgid("Scenario"), "message_scenario")
}
public plugin_cfg()
{
	// Get configs dir
	new cfgdir[32],file[192]
	
	get_configsdir(cfgdir, sizeof cfgdir - 1)
	
	formatex(file,sizeof file - 1,"%s/sw.cfg",cfgdir)
	
	if(file_exists(file))
	{
		// Execute config file (sw.cfg)
		server_cmd("exec %s", file)
	}else{
		log_amx("[SW] Snowball War config file doesn't exist!")
	}
}
/*================================================================================
 [Events]
=================================================================================*/
public event_round_start()
{
	//It's not round end
	g_endround = false
	
	//Reset models counter
	g_models_counter = 0.0
	
	//Remove old welcome task and make a new one
	remove_task(TASK_WELCOME)
	set_task(2.5,"func_welcome",TASK_WELCOME)
	
}
public event_modelchange(id)
{
	new weapon = read_data(2)
	
	if(weapon == CSW_HEGRENADE)
	{
		//Set view model and player model
		set_pev(id,pev_viewmodel2,model_nade_view)
		set_pev(id,pev_weaponmodel2,model_nade_world)
		
		//Remove crosshair
		if(get_pcvar_num(pcvar_crosshair))
		{
			message_begin( MSG_ONE_UNRELIABLE, g_weapon, _, id )
			write_byte(HIDE_CROSSHAIR)
			message_end()
		}
		
	}
}
public logevent_round_end()
{
	// Prevent this from getting called twice when restarting (bugfix)
	static Float:last
	if (get_gametime() - last < 0.5) return;
	last = get_gametime()
	
	g_endround = true
	
	// Show HUD notice, play win sound
	if (!sw_GetBlue())
	{
		//Red team wins
		set_hudmessage(200, 0, 0, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_RED")
		
		// Play win sound
		sw_sound(sound_win_red[random_num(0, sizeof sound_win_red -1)])
	}
	else if (!sw_GetRed())
	{
		//Blue team wins
		set_hudmessage(0, 0, 200, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_BLUE")
		
		// Play win sound
		sw_sound(sound_win_blue[random_num(0, sizeof sound_win_blue -1)])
	}
	else
	{
		// No one wins
		set_hudmessage(0, 200, 0, -1.0, 0.17, 0, 0.0, 3.0, 2.0, 1.0, -1)
		ShowSyncHudMsg(0, g_sync, "%L", LANG_PLAYER, "WIN_NO_ONE")
		
		sw_sound(sound_win_no_one[random_num(0, sizeof sound_win_no_one -1)])
	}
}
/*================================================================================
 [Main Part]
=================================================================================*/
public func_welcome()
{
	client_print(0,print_chat,"%L",LANG_PLAYER,"MSG_WELCOME",VERSION)
}
public client_connect(id)
{
	if(!get_pcvar_num(pcvar_on))
		return
	
	#if defined EFFECT_SNOW
	client_cmd(id, "cl_weather 1")
	#endif
}
public client_putinserver(id)
{
	// Plugin disabled?
	if (!get_pcvar_num(pcvar_on)) 
		return;
	
	// Initialize player vars
	g_IsChilled[id] = false
	g_blue[id] = false
	g_red[id]= false
	g_god[id] = false
	
	// CZ bots seem to use a different "classtype" for player entities
	// (or something like that) which needs to be hooked separately
	if (!g_bots && pcvar_bots && is_user_bot(id))
	{
		// Set a task to let the private data initialize
		set_task(0.1, "task_bots", id)
	}
}
public client_disconnect(id)
{
	if(!get_pcvar_num(pcvar_on))
		return
	
	g_IsChilled[id] = false
	g_blue[id] = false
	g_red[id]= false
	g_god[id] = false
}
/*================================================================================
 [Forwards]
=================================================================================*/

public fw_PlayerSpawn(id)
{
	if(!is_user_alive(id))
		return
	
	g_blue[id] = false
	g_red[id] = false
	g_IsChilled[id] = false
	g_god[id] = false
	
	//Strip player weapons
	fm_strip_user_weapons(id)
	
	//Give him knife and "snowball"
	fm_give_item(id,"weapon_knife")
	fm_give_item(id,"weapon_hegrenade")
	
	//Reset his model
	sw_reset_user_model(id)
	
	//Strip his cash ;]
	sw_set_user_money(id,0,0)
	
	//Hide money displaying
	sw_money(id)
	
	//Set his team variable
	switch(sw_get_user_team(id))
	{
		case CS_TEAM_CT : g_blue[id] = true
		case CS_TEAM_T : g_red[id] = true
	}
	
	//Set his new model
	remove_task(id + TASK_MODEL)
	
	// Store our custom model in g_player_model[id]
	if(g_blue[id])
	{
		copy(g_player_model[id], sizeof g_player_model[] - 1, model_blue[random_num(0, sizeof model_blue -1)])
		
	}else if(g_red[id])
	{
		copy(g_player_model[id], sizeof g_player_model[] - 1, model_red[random_num(0, sizeof model_red -1)])
	}
        
	// Get the current model
	new currentmodel[32]
	sw_get_user_model(id, currentmodel, sizeof currentmodel - 1)
        
	// Check whether it matches the custom model
	if (!equal(currentmodel, g_player_model[id]))
	{
		// If not, set a task to change it
		set_task(1.0 + g_models_counter, "task_set_model", id + TASK_MODEL)
            
		// Add a delay between every model change
		g_models_counter += MODEL_DELAY
	}
	
	//Check if spawn protection is on
	if(get_pcvar_num(pcvar_spawn))
	{
		//Set god
		g_god[id] = true
		
		//Remove an old task and make a new one
		remove_task(id + TASK_GOD)
		set_task(get_pcvar_float(pcvar_spawn_duration),"task_UnGod",id + TASK_GOD)
		
		//Set glow
		switch(sw_get_user_team(id))
		{
			case CS_TEAM_CT : fm_set_user_rendering(id,kRenderFxGlowShell,0,0,255,kRenderNormal,25)
			case CS_TEAM_T : fm_set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
		}
		
	}
	
}
public fw_SpawnEntity(entity)
{
	// Invalid entity
	if (!pev_valid(entity)) return FMRES_IGNORED
	
	// Get classname
	new classname[32]
	pev(entity, pev_classname, classname, sizeof classname - 1)
	
	// Check whether it needs to be removed
	for (new i = 0; i < sizeof g_not_needed; i++)
	{
		if (equal(classname, g_not_needed))
		{
			engfunc(EngFunc_RemoveEntity, entity)
			return FMRES_SUPERCEDE
		}
	}
	
	return FMRES_IGNORED
}
public fw_SetModel(ent,const model[])
{
	//Check ent validity
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//If model is equal to HE model, change it to snowball model
	if(equali(model,"models/w_hegrenade.mdl"))
	{
		//get owner to renew his ammo
		new Float:velocity[3],owner = pev(ent,pev_owner)
		
		//remove an old task an set a new one
		remove_task(owner + TASK_AMMO)
		set_task(0.01,"task_ammo",owner + TASK_AMMO)
		
		//Set model
		engfunc(EngFunc_SetModel,ent,model_nade_world)
		
		//Block from exploding
		set_pev(ent, pev_dmgtime, get_gametime() + 9999.0)
		
		//Set less gravity, so it will be "real" snowball
		set_pev(ent,pev_gravity,get_pcvar_float(pcvar_gravity))
		
		//Get grenade velocity
		pev(ent, pev_velocity, velocity)
		
		//Calculate new velocity
		velocity[0] *= get_pcvar_float(pcvar_velocity)
		velocity[1] *= get_pcvar_float(pcvar_velocity)
		velocity[2] *= get_pcvar_float(pcvar_velocity)
		
		//Set new velocity
		set_pev(ent, pev_velocity,velocity)
		
		return FMRES_SUPERCEDE
	}
	return FMRES_IGNORED
}
public fw_Touch(ent,id)
{
	if(!pev_valid(ent))
		return;
	
	//Create some variables
	new classname[20], classname2[20],Float:origin[3];
	
	pev(ent, pev_origin,origin)
	pev(id, pev_classname,classname2, sizeof classname2 - 1)
	pev(ent, pev_classname, classname,sizeof classname - 1)
	
	//Player get's hit
	if(equali(classname,"grenade") && equali(classname2,"player"))
	{
		new owner = pev(ent, pev_owner)
		if(is_user_alive(id))
		{
			//Check friendly fire
			if (get_user_team(owner) == get_user_team(id))
				if (!get_pcvar_num(pcvar_friendly))
					return;
			
			//Check god mode
			if(g_god[id])
				return;
			
			if(get_user_health(id) > get_pcvar_float(pcvar_dmg))
			{
				//Players health is greater than snowball damage
				
				//Calculate chill chance
				if(random_num(0,100) <= get_pcvar_num(pcvar_chill_chance))
				{
					//Chill only non-chilled player
					if(!g_IsChilled[id])
					{
						//Emit sound
						engfunc(EngFunc_EmitSound,id,CHAN_AUTO,sound_chill[random_num(0, sizeof sound_chill - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
						
						//Make light effect
						sw_light(origin)
						
						//Chill him!
						sw_ChillPlayer(id)
					
						//Set unchill task
						remove_task(id + TASK_UNCHILL)
						set_task(get_pcvar_float(pcvar_chill_duration),"task_UnChill",id + TASK_UNCHILL)
					}
				}
				
				//Create nice effect
				sw_effect(origin)
				
				//Emit pain sound
				engfunc(EngFunc_EmitSound,id,CHAN_VOICE,sound_pain[random_num(0, sizeof sound_pain - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Emit hit sound
				engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Do damage to player
				fm_set_user_health(id, get_user_health(id) - floatround(get_pcvar_float(pcvar_dmg)))
				
				//Make white splash
				sw_splash(ent,origin)
				
			}else if(get_user_health(id) <= get_pcvar_float(pcvar_dmg))
			{
				//Players health is lower or equal to snowball damage
				
				//Emit hit sound
				engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
				
				//Make nice effect
				sw_effect(origin)
			
				//Remove entity
				engfunc(EngFunc_RemoveEntity,ent)
				
				//Kill player
				sw_kill(owner,id,"snowball",0)
			}	
		}else{	
			//Snowball hits something (not player)
			sw_splash(ent,origin)
		}
		
	}else if(equali(classname,"grenade"))
	{
		sw_effect(origin)
		
		//Snowball hit's something, f.e. wall, etc.
		sw_splash(ent,origin)
		
		//Emit hit sound
		engfunc(EngFunc_EmitSound,ent,CHAN_AUTO,sound_hit[random_num(0, sizeof sound_hit - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
	}
}
public fw_EmitSound(ent,channel,const sound[])
{
	//Check if emited sound is equal to one for our list
	for(new a; a < sizeof g_bouncelist;a++)
	{
		//If it's equal - block it
		if(equali(sound,g_bouncelist[a]))
			return FMRES_SUPERCEDE
	}
	return FMRES_IGNORED
}
public fw_Think(ent)
{
	//Check validity
	if(!pev_valid(ent))
		return FMRES_IGNORED
	
	//Retrieve class
	static class[20]
	pev(ent,pev_classname,class,sizeof class - 1)
	
	//If class is equal to snow_splash, remove entity
	if(equali(class,"snow_splash"))
		engfunc(EngFunc_RemoveEntity,ent)
		
	return FMRES_IGNORED
}
public fw_SetClientKeyValue(id, const infobuffer[], const key[])
{   
	// Block CS model changes
	if (g_has_custom_model[id] && equal(key, "model"))
		return FMRES_SUPERCEDE
        
	return FMRES_IGNORED
}
public fw_ClientUserInfoChanged(id)
{
    // Player doesn't have a custom model
	if (!g_has_custom_model[id])
		return FMRES_IGNORED

	// Get current model
	static currentmodel[32]
	sw_get_user_model(id, currentmodel, sizeof currentmodel - 1)
    
	// Check whether it matches the custom model - if not, set it again
	if (!equal(currentmodel, g_player_model[id]))
		sw_set_user_model(id, g_player_model[id])
    
	return FMRES_IGNORED
}
public fw_PlayerKilled(victim, attacker, shouldgib)
{
	//Check if deathmatch is on
	if(!get_pcvar_num(pcvar_dm))
		return
	
	//Make sure that it's not round end
	if(!g_endround)
	{
		remove_task(victim + TASK_RESPAWN)
		set_task(get_pcvar_float(pcvar_dm_time),"task_respawn",victim + TASK_RESPAWN)
	}
	
}
//Block knife damage
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
	// Non-player damage or self damage
	if (victim == attacker || !is_user_connected(attacker))
		return HAM_IGNORED
		
	return HAM_SUPERCEDE
}
//Change game name
public fw_GameDesc()
{
	forward_return(FMV_STRING,g_modname)
	return FMRES_SUPERCEDE
}
/*================================================================================
 [Messages]
=================================================================================*/

// Block some text messages
public message_textmsg()
{
	static textmsg[22]
	get_msg_arg_string(2, textmsg, sizeof textmsg - 1)
	
	// Game restarting, reset scores and call round end to balance the teams
	if (equal(textmsg, "#Game_will_restart_in"))
	{
		logevent_round_end()
	}
	// Block round end related messages 
	else if (equal(textmsg, "#Hostages_Not_Rescued") || equal(textmsg, "#Round_Draw") || equal(textmsg, "#Terrorists_Win") || equal(textmsg, "#CTs_Win"))
	{
		return PLUGIN_HANDLED
	}
	
	//Block "Fire in the hole!" text
	if(get_msg_args() == 5)
	{
		if(get_msg_argtype(5) == ARG_STRING)
		{
			new value5[64]
			get_msg_arg_string(5 ,value5 ,63)
			if(equal(value5, "#Fire_in_the_hole"))
			{
				return PLUGIN_HANDLED
			}
		}
	}
	else if(get_msg_args() == 6)
	{
		if(get_msg_argtype(6) == ARG_STRING)
		{
			new value6[64]
			get_msg_arg_string(6 ,value6 ,63)
			if(equal(value6 ,"#Fire_in_the_hole"))
			{
				return PLUGIN_HANDLED
			}
		}
	}
	
	return PLUGIN_CONTINUE
}

//Block some audio messages
public message_audio()
{
	//Create variable
	static sample[20]
	
	//Get message arguments
	get_msg_arg_string(2, sample, sizeof sample - 1)
	
	//Check argument, if it's equal - block it
	if(equal(sample[1], "!MRAD_FIREINHOLE"))
		return PLUGIN_HANDLED
			
	if(equal(sample[7], "terwin") || equal(sample[7], "ctwin") || equal(sample[7], "rounddraw"))
		return PLUGIN_HANDLED
	
	return PLUGIN_CONTINUE
}

//Block hostage from appearing on the radar
public message_hostagepos()
{
	return PLUGIN_HANDLED
}
// Block hostage HUD display
public message_scenario()
{
	if (get_msg_args() > 1)
	{
		static sprite[8]
		get_msg_arg_string(2, sprite, sizeof sprite - 1)
		
		if (equal(sprite, "hostage"))
			return PLUGIN_HANDLED
	}
	
	return PLUGIN_CONTINUE
}
/*================================================================================
 [TASKS]
=================================================================================*/
public task_ammo(id)
{
	id -= TASK_AMMO
	
	sw_set_user_bpammo(id,1)
}
public task_respawn(id)
{
	id -= TASK_RESPAWN
	
	ExecuteHamB(Ham_CS_RoundRespawn,id)
}
public task_UnChill(id)
{
	id -= TASK_UNCHILL
	
	new Float:origin[3]
	
	pev(id,pev_origin,origin)
	
	sw_UnChill(id,origin)
}
public task_set_model(id)
{
	id -= TASK_MODEL

	sw_set_user_model(id, g_player_model[id])
}
public task_UnGod(id)
{
	id -= TASK_GOD
	
	g_god[id] = false
	
	fm_set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
}
public task_bots(id)
{
	// Make sure it's a CZ bot and it's still connected
	if (g_bots || !get_pcvar_num(pcvar_bots) || !is_user_connected(id) || !is_user_bot(id))
		return;
	
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled")
	RegisterHamFromEntity(Ham_TakeDamage, id, "fw_TakeDamage")
	
	// Ham forwards for CZ bots succesfully registered
	g_bots = true
	
	// If the bot has already spawned, call the forward manually for him
	if (is_user_alive(id)) fw_PlayerSpawn(id)
}
/*================================================================================
 [Stocks]
=================================================================================*/

//Set player money
stock sw_set_user_money(id,money,flash=1)
{
	set_pdata_int(id,OFFSET_CSMONEY,money,OFFSET_LINUX)
	
	message_begin(MSG_ONE,g_money,{0,0,0},id)
	write_long(money)
	write_byte(flash)
	message_end()
}
// Get User Team
stock sw_get_user_team(id)
{
	return get_pdata_int(id, OFFSET_CSTEAMS, OFFSET_LINUX)
}
//With this stock we can set player model
stock sw_set_user_model(player, const modelname[])
{
	engfunc(EngFunc_SetClientKeyValue, player, engfunc(EngFunc_GetInfoKeyBuffer, player), "model", modelname)
    
	g_has_custom_model[player] = true
}
//With this stock we can get player model
stock sw_get_user_model(player, model[], len)
{
	engfunc(EngFunc_InfoKeyValue, engfunc(EngFunc_GetInfoKeyBuffer, player), "model", model, len)
}
//With this stock we can reset player model
stock sw_reset_user_model(player)
{
	g_has_custom_model[player] = false
    
	dllfunc(DLLFunc_ClientUserInfoChanged, player, engfunc(EngFunc_GetInfoKeyBuffer, player))
}
//Set user snowballs
stock sw_set_user_bpammo(id,amount)
{
	set_pdata_int(id, OFFSET_HE_AMMO, amount, OFFSET_LINUX)
}
//Make death msg
stock sw_kill(killer, victim, weapon[],headshot)
{
	set_msg_block(g_death , BLOCK_SET)
	user_kill(victim,1)
	set_msg_block(g_death, BLOCK_NOT)
	
	message_begin(MSG_ALL, g_death, {0,0,0}, 0)
	write_byte(killer)
	write_byte(victim)
	write_byte(headshot)
	write_string(weapon)
	message_end()
	
	if(get_user_team(killer)!= get_user_team(victim))
	{
		fm_set_user_frags(killer,get_user_frags(killer) + 1)
		
	}else{	
		fm_set_user_frags(killer,get_user_frags(killer) - 1)
	}
}
/*================================================================================
 [Other stuff]
=================================================================================*/
sw_GetBlue()
{
	static iCt, id
	iCt = 0
	
	for (id = 1; id <= g_maxplayers; id++)
	{
		if (is_user_connected(id))
		{	
			if(is_user_alive(id) && g_blue[id])
				iCt++
		}
	}
	
	return iCt
}
sw_GetRed()
{
	static iT, id
	iT = 0
	
	for (id = 1; id <= g_maxplayers; id++)
	{
		if (is_user_connected(id))
		{
			if(is_user_alive(id) && g_red[id])
				iT++
		}
	}
	
	return iT
}
sw_money(id)
{
	message_begin(MSG_ONE,g_weapon,_,id)
	write_byte(HIDE_MONEY)
	message_end()
	message_begin(MSG_ONE,g_crosshair,_,id)
	write_byte(0)
	message_end()
}
sw_sound(const sound[])
{
	client_cmd(0, "spk ^"%s^"", sound)
}
sw_splash(ent,Float:origin[3])
{
	set_pev(ent, pev_velocity, Float:{0.0, 0.0, 0.0})
	set_pev(ent, pev_classname, "snow_splash")
	set_pev(ent, pev_solid, SOLID_NOT)
	set_pev(ent, pev_movetype, MOVETYPE_NONE)
	engfunc(EngFunc_SetOrigin, ent, origin)
	engfunc(EngFunc_SetModel, ent, model_splash)
	set_pev(ent,pev_nextthink,get_gametime() + get_pcvar_float(pcvar_life))
	fm_set_rendering(ent, kRenderFxNoDissipation, 255, 255, 255, kRenderGlow, 255)
}
sw_effect(Float:fOrigin[3])
{
	new origin[3]
	FVecIVec(fOrigin,origin)
	
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_BLOODSPRITE)
	write_coord(origin[0]+random_num(-20,20))
	write_coord(origin[1]+random_num(-20,20))
	write_coord(origin[2]+random_num(-20,20))
	write_short(g_spray)
	write_short(g_drop)
	write_byte(255)
	write_byte(15)
	message_end()
}
sw_light(Float:originF[3])
{
	new origin[3]
	FVecIVec(originF,origin)
	
	// light effect
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_DLIGHT)
	write_coord(origin[0]) // x
	write_coord(origin[1]) // y
	write_coord(origin[2]) // z
	write_byte(floatround(240.0/5.0)) // radius
	write_byte(0) // r
	write_byte(206)// g
	write_byte(209) // b
	write_byte(8) // life
	write_byte(60) // decay rate
	message_end()
}
sw_ChillPlayer(id)
{
	//Set glow
	fm_set_user_rendering(id,kRenderFxGlowShell,0,206,209,kRenderNormal,25)
	
	//Set chill state
	g_IsChilled[id] = true
	
	//Retrieve player old maxspeed
	pev(id,pev_maxspeed,g_maxspeed[id])
	
	//Calculate his new maxspeed
	g_ChillySpeed[id] = g_maxspeed[id] * get_pcvar_float(pcvar_chill_speed) / 100.0
	
	//Set his new maxspeed
	set_pev(id,pev_maxspeed,g_ChillySpeed[id])
	
	//Add blue fade on players screen
	message_begin(MSG_ONE,gmsgScreenFade,_,id)
	write_short(floatround(4096.0 * get_pcvar_float(pcvar_chill_duration))) // duration
	write_short(floatround(3072.0 * get_pcvar_float(pcvar_chill_duration))) // hold time
	write_short(FFADE_IN) // flags
	write_byte(0) // red
	write_byte(206) // green
	write_byte(209) // blue
	write_byte(100) // alpha
	message_end()
}
sw_UnChill(id,Float:fOrigin[3])
{
	//Make some variables
	new origin[3]
	
	//Change origin from float to integer
	FVecIVec(fOrigin,origin)
	
	//Delete glow
	fm_set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,25)
	
	//Restore his maxspeed
	set_pev(id,pev_maxspeed,g_maxspeed[id])
	
	//Set chill state
	g_IsChilled[id] = false
	
	// clear tint
	message_begin(MSG_ONE,gmsgScreenFade,_,id)
	write_short(0) // duration
	write_short(0) // hold time
	write_short(FFADE_IN) // flags
	write_byte(0) // red
	write_byte(0) // green
	write_byte(0) // blue
	write_byte(255)// alpha
	message_end()
	
	//Make glass effect
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte(TE_BREAKMODEL)
	write_coord(origin[0]) // x
	write_coord(origin[1]) // y
	write_coord(origin[2] + 24) // z
	write_coord(16) // size x
	write_coord(16) // size y
	write_coord(16) // size z
	write_coord(random_num(-50,50)) // velocity x
	write_coord(random_num(-50,50)) // velocity y
	write_coord(25) // velocity z
	write_byte(10) // random velocity
	write_short(g_glass) // model
	write_byte(10) // count
	write_byte(25) // life
	write_byte(BREAK_GLASS) // flags
	message_end()
	
	//Emit sound
	engfunc(EngFunc_EmitSound,id,CHAN_AUTO,sound_unchill[random_num(0, sizeof sound_unchill - 1)],1.0,ATTN_NORM,0,PITCH_NORM)
}
93.114.82.17:27015 - Monster Invasion CO-OP Mod
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 137 times

24 Dec 2013, 01:07

| Afiseaza codul
L 12/24/2013 - 00:00:21: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:21: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:21: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:21: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:00:25: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:25: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:25: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:25: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:00:41: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:41: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:41: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:41: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:00:45: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:45: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:45: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:45: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:00:52: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:52: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:52: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:52: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:00:57: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:57: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:57: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:57: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:00:57: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:00:57: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:00:57: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:00:57: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:01:43: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:01:43: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:01:43: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:01:43: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:01:51: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:01:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:01:51: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:01:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:01:54: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:01:54: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:01:54: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:01:54: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:01:56: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:01:56: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:01:56: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:01:56: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:01:59: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:01:59: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:01:59: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:01:59: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:01:59: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:01:59: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:01:59: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:01:59: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:02:03: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:02:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:02:03: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:02:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:03:17: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:03:17: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:03:17: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:03:17: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:03:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:03:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:03:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:03:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:03:52: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:03:52: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:03:52: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:03:52: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:04:02: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:04:02: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:04:02: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:04:02: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:04:13: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:04:13: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:04:13: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:04:13: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:04:46: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:04:46: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:04:46: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:04:46: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:03: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:03: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:13: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:13: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:13: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:13: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:19: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:19: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:19: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:19: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:31: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:31: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:31: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:31: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:36: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:36: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:36: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:36: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:55: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:55: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:55: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:55: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:05:58: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:05:58: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:05:58: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:05:58: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:06:10: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:06:10: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:06:10: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:06:10: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:06:18: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:06:18: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:06:18: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:06:18: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:06:22: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:06:22: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:06:22: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:06:22: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:06:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:06:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:06:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:06:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:06:45: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:06:45: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:06:45: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:06:45: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:06:51: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:06:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:06:51: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:06:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:02: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:02: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:02: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:02: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:06: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:06: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:06: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:06: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:10: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:10: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:10: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:10: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:15: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:15: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:15: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:15: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:20: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:20: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:20: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:20: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:22: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:22: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:22: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:22: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:07:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:07:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:07:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:07:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:08:01: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:08:01: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:08:01: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:08:01: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:08:05: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:08:05: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:08:05: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:08:05: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:08:10: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:08:10: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:08:10: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:08:10: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:08:14: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:08:14: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:08:14: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:08:14: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:08:16: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:08:16: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:08:16: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:08:16: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:08:55: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:08:55: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:08:55: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:08:55: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:09:14: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:09:14: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:09:14: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:09:14: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:09:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:09:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:09:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:09:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:09:39: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:09:39: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:09:39: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:09:39: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:09:54: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:09:54: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:09:54: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:09:54: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:09:57: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:09:57: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:09:57: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:09:57: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:10:04: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:10:04: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:10:04: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:10:04: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:10:11: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:10:11: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:10:11: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:10:11: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:10:15: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:10:15: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:10:15: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:10:15: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:10:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:10:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:10:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:10:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:10:51: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:10:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:10:51: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:10:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:10:53: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:10:53: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:10:53: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:10:53: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:11:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:11:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:11:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:11:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:11:31: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:11:31: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:11:31: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:11:31: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:11:57: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:11:57: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:11:57: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:11:57: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:00: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:00: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:00: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:00: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:04: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:04: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:04: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:04: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:10: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:10: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:10: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:10: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:17: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:17: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:17: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:17: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:21: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:21: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:21: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:21: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:22: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:22: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:22: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:22: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:28: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:28: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:28: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:28: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:33: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:33: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:33: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:33: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:35: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:35: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:35: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:35: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:37: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:37: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:37: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:37: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:39: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:39: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:39: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:39: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:43: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:43: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:43: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:43: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:44: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:44: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:46: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:46: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:46: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:46: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:50: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:50: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:50: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:50: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:51: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:51: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:12:55: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:12:55: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:12:55: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:12:55: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:00: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:00: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:00: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:00: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:03: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:03: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:25: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:25: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:25: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:25: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:33: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:33: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:33: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:33: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:37: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:37: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:37: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:37: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:42: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:42: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:42: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:42: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:44: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:44: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:46: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:46: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:46: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:46: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:49: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:49: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:49: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:49: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:50: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:50: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:50: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:50: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:53: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:53: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:53: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:53: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:56: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:56: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:56: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:56: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:13:59: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:13:59: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:13:59: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:13:59: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:14:20: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:14:20: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:14:20: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:14:20: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:14:32: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:14:32: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:14:32: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:14:32: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:14:38: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:14:38: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:14:38: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:14:38: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:14:42: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:14:42: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:14:42: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:14:42: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:02: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:02: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:02: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:02: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:05: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:05: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:05: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:05: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:05: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:05: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:05: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:05: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:10: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:10: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:10: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:10: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:14: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:14: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:14: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:14: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:18: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:18: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:18: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:18: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:18: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:18: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:18: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:18: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:26: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:26: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:26: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:26: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:40: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:40: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:40: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:40: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:45: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:45: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:45: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:45: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:15:56: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:15:56: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:15:56: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:15:56: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:00: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:00: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:00: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:00: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:03: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:03: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:04: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:04: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:04: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:04: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:08: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:08: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:08: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:08: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:12: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:12: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:12: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:12: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:19: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:19: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:19: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:19: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:25: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:25: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:25: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:25: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:44: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:44: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:46: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:46: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:46: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:46: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:47: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:47: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:47: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:47: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:50: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:50: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:50: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:50: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:52: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:52: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:52: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:52: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:16:56: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:16:56: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:16:56: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:16:56: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:00: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:00: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:00: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:00: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:01: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:01: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:01: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:01: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:05: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:05: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:05: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:05: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:12: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:12: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:12: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:12: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:25: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:25: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:25: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:25: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:31: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:31: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:31: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:31: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:38: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:38: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:38: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:38: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:43: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:43: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:43: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:43: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:48: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:48: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:48: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:48: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:55: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:55: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:55: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:55: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:17:59: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:17:59: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:17:59: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:17:59: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:03: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:03: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:07: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:07: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:07: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:07: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:11: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:11: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:11: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:11: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:15: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:15: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:15: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:15: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:19: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:19: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:19: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:19: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:33: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:33: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:33: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:33: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:18:42: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:18:42: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:18:42: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:18:42: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:14: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:14: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:14: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:14: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:20: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:20: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:20: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:20: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:27: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:27: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:27: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:27: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:34: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:34: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:34: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:34: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:37: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:37: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:37: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:37: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:42: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:42: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:42: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:42: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:48: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:48: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:48: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:48: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:53: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:53: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:53: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:53: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:19:58: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:19:58: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:19:58: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:19:58: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:20:18: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:20:18: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:20:18: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:20:18: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:20:25: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:20:25: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:20:25: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:20:25: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:20:45: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:20:45: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:20:45: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:20:45: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:21:00: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:21:00: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:21:00: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:21:00: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:21:08: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:21:08: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:21:08: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:21:08: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:21:14: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:21:14: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:21:14: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:21:14: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:22:22: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:22:22: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:22:22: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:22:22: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:32:32: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:32:32: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:32:32: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:32:32: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 646)
L 12/24/2013 - 00:54:23: Start of error session.
L 12/24/2013 - 00:54:23: Info (map "de_dust2_xmas") (file "addons/amxmodx/logs/error_20131224.log")
L 12/24/2013 - 00:54:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:54:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:54:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:54:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 00:55:59: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:55:59: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:55:59: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:55:59: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 00:56:50: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:56:50: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:56:50: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:56:50: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 00:56:52: [FAKEMETA] Invalid entity
L 12/24/2013 - 00:56:52: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 00:56:52: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 00:56:52: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:00:03: Start of error session.
L 12/24/2013 - 01:00:03: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20131224.log")
L 12/24/2013 - 01:00:03: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:00:03: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:00:03: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:00:03: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:01:19: Start of error session.
L 12/24/2013 - 01:01:19: Info (map "fy_snow") (file "addons/amxmodx/logs/error_20131224.log")
L 12/24/2013 - 01:01:19: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:01:19: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:01:19: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:01:19: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:01:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:01:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:01:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:01:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:02:45: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:02:45: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:02:45: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:02:45: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:03:44: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:03:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:03:44: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:03:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:04:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:04:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:04:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:04:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:05:04: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:05:04: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:05:04: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:05:04: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:05:11: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:05:11: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:05:11: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:05:11: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:05:23: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:05:23: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:05:23: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:05:23: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:05:28: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:05:28: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:05:28: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:05:28: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:05:40: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:05:40: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:05:40: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:05:40: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:05:44: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:05:44: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:05:44: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:05:44: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:06:12: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:06:12: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:06:12: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:06:12: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:06:13: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:06:13: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:06:13: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:06:13: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:06:17: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:06:17: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:06:17: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:06:17: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:06:21: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:06:21: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:06:21: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:06:21: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:06:51: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:06:51: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:06:51: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:06:51: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:07:05: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:07:05: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:07:05: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:07:05: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:07:07: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:07:07: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:07:07: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:07:07: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:07:39: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:07:39: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:07:39: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:07:39: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:07:48: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:07:48: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:07:48: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:07:48: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:07:54: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:07:54: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:07:54: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:07:54: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:07:59: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:07:59: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:07:59: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:07:59: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:08:26: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:08:26: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:08:26: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:08:26: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:08:30: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:08:30: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:08:30: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:08:30: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:08:34: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:08:34: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:08:34: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:08:34: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:08:45: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:08:45: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:08:45: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:08:45: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:08:47: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:08:47: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:08:47: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:08:47: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:09:31: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:09:31: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:09:31: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:09:31: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:09:32: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:09:32: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:09:32: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:09:32: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:09:34: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:09:34: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:09:34: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:09:34: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
L 12/24/2013 - 01:09:54: [FAKEMETA] Invalid entity
L 12/24/2013 - 01:09:54: [AMXX] Displaying debug trace (plugin "snowball_war304.amxx")
L 12/24/2013 - 01:09:54: [AMXX] Run time error 10: native error (native "pev")
L 12/24/2013 - 01:09:54: [AMXX]    [0] snowball_war304.sma::fw_Touch (line 645)
Tot apare ...

Am observat ca eroarea apare mai ales atunci cand arunci un bulgare in skybox .. in special cand atingi suprafata unei zone cu el ... " :fw_Touch "
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 137 times

24 Dec 2013, 15:12

UP ! Careva?
mezzzu
Membru eXtream
Membru eXtream
Posts: 2235
Joined: 19 Dec 2010, 17:31
Detinator Steam: Da
CS Status: Working...
Reputatie: Utilizator neserios (tepar)
Fost manager FURIEN.EXTREAMCS.COM
Restrictie moderator
Has thanked: 85 times
Been thanked: 137 times

25 Dec 2013, 02:09

Sunt dispus sa platesc celui care ma ajuta sa rezolv pluginul si sa nu mai pice !!!!
User avatar
cyby
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1777
Joined: 16 Jul 2011, 21:46
Detinator Steam: Da
Detinator server CS: Da
Reputatie: Scripter eXtreamCS
Fost Moderator ajutator
Has thanked: 146 times
Been thanked: 396 times

25 Dec 2013, 02:12

mezzzu wrote:Sunt dispus sa platesc celui care ma ajuta sa rezolv pluginul si sa nu mai pice !!!!
Serverul nu cred ca pica din acea eroare.
93.114.82.17:27015 - Monster Invasion CO-OP Mod
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 35 guests