Cerere plugin lanterna

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 .
Post Reply
cocoss
Membru, skill 0
Membru, skill 0
Posts: 9
Joined: 12 Sep 2013, 09:47
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

24 Jun 2014, 18:19

Descriere plugin cerut: Aș dori un plugin care sa formeze un con playerului care are lanterna aprinsa
Alte informatii: - mentionez ca doresc ca pluginul sa fie pentru zombie pentru ca ceea ce e aici: https://forums.alliedmods.net/showthrea ... ?p=1454277 - nu imi merge decat pe clasic
Image
RoyalServer
Lux0R^
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 1222
Joined: 13 Jul 2013, 16:31
Detinator Steam: Da
Reputatie: Scripter eXtreamCS
Moderator ajutator
Has thanked: 15 times
Been thanked: 12 times

24 Jun 2014, 18:50

pune pluginul ala de pe allied printre primele in lista in plugins.ini si vezi daca are vreun efect.
Pauza pana in iulie... licenta ^^

Fara pm-uri pentru pluginuri de zm/furien + tot ce tine de vip.

Codul Scripterului: scripting/codul-scripterului-t362300.html#p2754224
User avatar
meNe
Membru, skill +1
Membru, skill +1
Posts: 177
Joined: 11 Jan 2013, 20:31
Detinator Steam: Da
CS Status: pending...
Detinator server CS: zm.lseplay.com
SteamID: levemsan
Has thanked: 7 times
Been thanked: 7 times
Contact:

24 Jun 2014, 19:32

Incearca sa faci ce s-a zis mai sus, posibil sa mearga.
cocoss
Membru, skill 0
Membru, skill 0
Posts: 9
Joined: 12 Sep 2013, 09:47
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

24 Jun 2014, 19:41

nu vrea, am incercat.
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

24 Jun 2014, 21:31

Pentru Zombie Plague 4.3 | Afiseaza codul
[code]
/*================================================================================
	
		****************************************
		********* [CSS Flashlight 2.0] *********
		****************************************
	
	----------------------
	-*- Licensing Info -*-
	----------------------
	
	CSS Flashlight
	by schmurgel1983(@msn.com)
	Copyright (C) 2011 Stefan "schmurgel1983" Focke
	
	This program is free software: you can redistribute it and/or modify it
	under the terms of the GNU General Public License as published by the
	Free Software Foundation, either version 3 of the License, or (at your
	option) any later version.
	
	This program is distributed in the hope that it will be useful, but
	WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
	Public License for more details.
	
	You should have received a copy of the GNU General Public License along
	with this program. If not, see <http://www.gnu.org/licenses/>.
	
	In addition, as a special exception, the author gives permission to
	link the code of this program with the Half-Life Game Engine ("HL
	Engine") and Modified Game Libraries ("MODs") developed by Valve,
	L.L.C ("Valve"). You must obey the GNU General Public License in all
	respects for all of the code used other than the HL Engine and MODs
	from Valve. If you modify this file, you may extend this exception
	to your version of the file, but you are not obligated to do so. If
	you do not wish to do so, delete this exception statement from your
	version.
	
	No warranties of any kind. Use at your own risk.
	
	-------------------
	-*- Description -*-
	-------------------
	
	This plugin add a lightcone. Version 2 has a new cone model,
	old model drawn polys ~90, new model ~48, but its smooth and
	looks great. New cone model as animations like a player model.
	
	--------------------
	-*- Requirements -*-
	--------------------
	
	* Mods: Counter-Strike 1.6, Condition-Zero
	* AMXX: Version 1.8.0 or later
	* Module: engine, fakemeta, hamsandwich
	
	----------------
	-*- Commands -*-
	----------------
	
	-----
	
	---------------------
	-*- Configuration -*-
	---------------------
	
	- none
	
	---------------
	-*- Credits -*-
	---------------
	
	.Dare Devil.: lightcone model (not used more)
	Hunter-Digital: lightcone base model (with non-animations)
	ot_207: for 4096 entity bitsum macro
	
	-----------------
	-*- Changelog -*-
	-----------------
	
	* v1.0:
		- initial release
	
	* v1.1:
		- Supports original game flashlight
		- Supports ConnorMcLeod CustomFlashLight
		- Supports Simon Logic Blinding Flashlight v0.2.3SL
		- Supports MeRcyLeZZ Zombie Plague Mod 4.3 flashlight
	
	* v2.0:
		- Added: better cone model
		- Re-write: for lower CPU usage
	
=================================================================================*/

#include <amxmodx>
#include <engine>
#include <fakemeta>

#if AMXX_VERSION_NUM < 180
	#assert AMX Mod X v1.8.0 or later library required!
#endif

#include <hamsandwich>

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

// only for testing :)
//#define TEST_3RD

// supports for zombie plague (need special queries -.-)
#define ZOMBIE_PLAGUE_MOD

/*================================================================================
 [Zombie Plague Compatibility Checking]
=================================================================================*/

// try include "zombieplague.inc"
#if defined ZOMBIE_PLAGUE_MOD
	#tryinclude <zombieplague>
	
	#if !defined _zombieplague_included
		#assert zombieplague.inc library required!
	#endif
#endif

/*================================================================================
 [Constants, Offsets, Macros]
=================================================================================*/

new const PLUGIN_VERSION[] = "2.0"

#define FM_PDATA_SAFE 2

new const model_lightcone[] = "models/css_lightcone2.mdl"

#if defined TEST_3RD
new const model_3rd_person[] = "models/rpgrocket.mdl"
#endif

new bs_Flashlight, bs_IsAlive, bs_IsBot
new g_iLightConeIndex[33]

new g_bHamCzBots, cvar_BotQuota

#if defined _zombieplague_included
new Float:g_fLastFlashTime[33]
new g_iZombiePlague, cvar_iZombiePlague, cvar_iZpCustomFL, cvar_iZpShowAll
new bs_IsZombie, bs_IsSurvivor
#endif

#define add_bitsum(%1,%2) (%1 |= (1<<(%2-1)))
#define del_bitsum(%1,%2) (%1 &= ~(1<<(%2-1)))
#define get_bitsum(%1,%2) (%1 & (1<<(%2-1)))

/*================================================================================
 [Precache, Init]
=================================================================================*/

public plugin_precache()
{
	engfunc(EngFunc_PrecacheModel, model_lightcone)
	
	#if defined TEST_3RD
	engfunc(EngFunc_PrecacheModel, model_3rd_person)
	#endif
}

public plugin_init()
{
	register_plugin("CSS Flashlight", PLUGIN_VERSION, "schmurgel1983")
	
	RegisterHam(Ham_Spawn, "player", "fwd_PlayerSpawn_Post", 1)
	RegisterHam(Ham_Killed, "player", "fwd_PlayerKilled")
	
	#if defined _zombieplague_included
	register_impulse(100, "fwd_Impulse_100")
	#endif
	
	register_message(get_user_msgid("Flashlight"), "message_flashlight")
	
	#if defined TEST_3RD
	register_clcmd("say 1st", "clcmd_1st")
	register_clcmd("say 3rd", "clcmd_3rd")
	#endif
	
	cvar_BotQuota = get_cvar_pointer("bot_quota")
	register_cvar("css_flashlight", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY)
	set_cvar_string("css_flashlight", PLUGIN_VERSION)
}

#if defined _zombieplague_included
public plugin_cfg()
{
	cvar_iZombiePlague = get_cvar_pointer("zp_on")
	cvar_iZpCustomFL = get_cvar_pointer("zp_flash_custom")
	cvar_iZpShowAll = get_cvar_pointer("zp_flash_show_all")
	
	g_iZombiePlague = get_pcvar_num(cvar_iZombiePlague)
}
#endif

/*================================================================================
 [Zombie Plague Forwards]
=================================================================================*/

#if defined _zombieplague_included
public zp_user_infected_post(id, infector, nemesis)
{
	add_bitsum(bs_IsZombie, id);
	del_bitsum(bs_IsSurvivor, id);
	
	remove_task(id)
	
	del_bitsum(bs_Flashlight, id);
	set_cone_nodraw(id)
}

public zp_user_humanized_post(id, survivor)
{
	del_bitsum(bs_IsZombie, id);
	del_bitsum(bs_IsSurvivor, id);
	
	remove_task(id)
	
	if (survivor) add_bitsum(bs_IsSurvivor, id);
	
	del_bitsum(bs_Flashlight, id);
	set_cone_nodraw(id)
	
	if (get_bitsum(bs_IsBot, id))
		set_lightcone(id)
}
#endif

/*================================================================================
 [Main Forwards]
=================================================================================*/

public register_ham_czbots(id)
{
	if (g_bHamCzBots || !is_user_connected(id) || !get_pcvar_num(cvar_BotQuota)) return
	
	RegisterHamFromEntity(Ham_Spawn, id, "fwd_PlayerSpawn_Post", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fwd_PlayerKilled")
	
	g_bHamCzBots = true
	
	if (is_user_alive(id)) fwd_PlayerSpawn_Post(id)
}

#if defined _zombieplague_included
public fwd_Impulse_100(id)
{
	if (!get_bitsum(bs_IsAlive, id))
		return;
	
	if (g_iZombiePlague)
	{
		if (get_bitsum(bs_IsZombie, id) || get_bitsum(bs_IsSurvivor, id) || !get_pcvar_num(cvar_iZpCustomFL) || !get_pcvar_num(cvar_iZpShowAll))
			return;
	}
	else return;
	
	if (zp_get_user_batteries(id) > 2 && get_gametime() - g_fLastFlashTime[id] > 1.2)
	{
		g_fLastFlashTime[id] = get_gametime()
		
		get_bitsum(bs_Flashlight, id) ? del_bitsum(bs_Flashlight, id) : add_bitsum(bs_Flashlight, id);
		
		set_lightcone(id)
	}
}
#endif

public fwd_PlayerSpawn_Post(id)
{
	if (!is_user_alive(id) || !fm_cs_get_user_team(id))
		return;
	
	add_bitsum(bs_IsAlive, id);
	
	remove_task(id)
	
	#if defined _zombieplague_included
	del_bitsum(bs_Flashlight, id);
	#endif
	
	#if defined TEST_3RD
	clcmd_1st(id)
	client_print(id, print_chat, "Test: first persion view say ^"1st^" for third persion view ^"3rd^"")
	#endif
	
	set_cone_nodraw(id)
	
	#if defined _zombieplague_included
	if (get_bitsum(bs_IsBot, id))
		set_lightcone(id)
	#endif
}

public fwd_PlayerKilled(victim, attacker, shouldgib)
{
	del_bitsum(bs_IsAlive, victim);
	
	remove_task(victim)
	
	#if defined _zombieplague_included
	del_bitsum(bs_Flashlight, victim);
	del_bitsum(bs_IsZombie, victim);
	del_bitsum(bs_IsSurvivor, victim);
	#endif
	
	set_cone_nodraw(victim)
}

public client_putinserver(id)
{
	if (!is_user_bot(id))
		return
	
	add_bitsum(bs_IsBot, id);
	
	if (!g_bHamCzBots && cvar_BotQuota)
		set_task(0.1, "register_ham_czbots", id)
}

public client_disconnect(id)
{
	del_bitsum(bs_IsAlive, id);
	del_bitsum(bs_IsBot, id);
	
	remove_task(id)
	
	#if defined _zombieplague_included
	del_bitsum(bs_Flashlight, id);
	del_bitsum(bs_IsZombie, id);
	del_bitsum(bs_IsSurvivor, id);
	#endif
	
	if (pev_valid(g_iLightConeIndex[id]))
		engfunc(EngFunc_RemoveEntity, g_iLightConeIndex[id])
	g_iLightConeIndex[id] = 0
}

/*================================================================================
 [Client Commands]
=================================================================================*/

#if defined TEST_3RD
public clcmd_1st(id)
{
	if (!get_bitsum(bs_IsAlive, id))
		return
	
	set_view(id, CAMERA_NONE)
}

public clcmd_3rd(id)
{
	if (!get_bitsum(bs_IsAlive, id))
		return
	
	set_view(id, CAMERA_3RDPERSON)
}
#endif

/*================================================================================
 [Message Hooks]
=================================================================================*/

public message_flashlight(msg_id, msg_dest, msg_entity)
{
	get_msg_arg_int(1) ? add_bitsum(bs_Flashlight, msg_entity) : del_bitsum(bs_Flashlight, msg_entity);
	
	set_lightcone(msg_entity)
}

/*================================================================================
 [Cone Logic]
=================================================================================*/

set_lightcone(id)
{
	#if defined _zombieplague_included
	if (get_bitsum(bs_IsSurvivor, id)) return
	#endif
	
	if (get_bitsum(bs_Flashlight, id) || get_bitsum(bs_IsBot, id))
	{
		#if defined _zombieplague_included
		remove_task(id)
		set_task(0.2, "zp_have_battery", id, _, _, "b")
		#endif
		
		if (!g_iLightConeIndex[id])
		{
			static info
			if (!info) info = engfunc(EngFunc_AllocString, "info_target")
			
			static iEntity
			iEntity = g_iLightConeIndex[id] = engfunc(EngFunc_CreateNamedEntity, info)
			
			if (pev_valid(iEntity))
			{
				engfunc(EngFunc_SetModel, iEntity, model_lightcone)
				set_pev(iEntity, pev_effects, 0)
				set_pev(iEntity, pev_owner, id)
				set_pev(iEntity, pev_movetype, MOVETYPE_FOLLOW)
				set_pev(iEntity, pev_aiment, id)
			}
		}
		else set_pev(g_iLightConeIndex[id], pev_effects, 0);
	}
	else
	{
		#if defined _zombieplague_included
		remove_task(id)
		#endif
		
		set_cone_nodraw(id)
	}
}

/*================================================================================
 [Other Functions and Tasks]
=================================================================================*/

#if defined _zombieplague_included
public zp_have_battery(id)
{
	if (!zp_get_user_batteries(id))
	{
		remove_task(id)
		del_bitsum(bs_Flashlight, id);
		set_cone_nodraw(id)
	}
}
#endif

set_cone_nodraw(id)
{
	if (g_iLightConeIndex[id])
		set_pev(g_iLightConeIndex[id], pev_effects, EF_NODRAW)
}

/*================================================================================
 [Stocks]
=================================================================================*/

stock fm_cs_get_user_team(id)
{
	return (pev_valid(id) == FM_PDATA_SAFE) ? get_pdata_int(id, 114, 5) : 0;
}
[/code]
Daca te-am ajutat apasa pe butonul Multumesc!
cocoss
Membru, skill 0
Membru, skill 0
Posts: 9
Joined: 12 Sep 2013, 09:47
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

24 Jun 2014, 21:52

Eu folosesc zpa 1.6.1, nu-mi merge ...:(
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

24 Jun 2014, 21:59

Seteaza :

Code: Select all

zp_flash_show_all 1
User avatar
Cristi. C
Membru, skill +1
Membru, skill +1
Posts: 345
Joined: 09 Feb 2013, 01:08
Detinator Steam: Da
CS Status: I'm currently playing CSGO
SteamID: Privat
Location: Bucuresti
Has thanked: 1 time
Been thanked: 27 times

25 Jun 2014, 00:47

Romania trebuie interzisa pe alliedmods...
Frate da ai citit ce scrie? Ca sa ruleze pe modul Zombie modifica linia asta

// supports for zombie plague (need special queries -.-)
//#define ZOMBIE_PLAGUE_MOD


cu asta

// supports for zombie plague (need special queries -.-)
#define ZOMBIE_PLAGUE_MOD
Last edited by Ulquiorra on 25 Jun 2014, 02:06, edited 1 time in total.
Reason: daca ar fi dupa mine.. as arde-o din temelii incluzandu-ma chiar si pe mine ;)

# Zombie Land Love Forever !! #
cocoss
Membru, skill 0
Membru, skill 0
Posts: 9
Joined: 12 Sep 2013, 09:47
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 1 time
Contact:

25 Jun 2014, 06:30

Exact asta am facut, ca doar nu sunt batut in cap dupa cum credeti voi ...am zis la inceput ca folosesc zpa 1.6.1 si ca aici nu merge ...totusi nu inteleg de ce unii dintre voi trebuie sa sariti cu gura cand cuiva nu ii merge ceva cum trebuie ...in fine, multumesc oricum.
User avatar
Cristi. C
Membru, skill +1
Membru, skill +1
Posts: 345
Joined: 09 Feb 2013, 01:08
Detinator Steam: Da
CS Status: I'm currently playing CSGO
SteamID: Privat
Location: Bucuresti
Has thanked: 1 time
Been thanked: 27 times

25 Jun 2014, 06:43

add skype: cristi.c94 si te ajut eu azi.

# Zombie Land Love Forever !! #
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 21:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 128 times
Been thanked: 142 times
Contact:

25 Jun 2014, 10:30

Adventx eXtream wrote:Seteaza :

Code: Select all

zp_flash_show_all 1
Ai setat cvarul asta asa? :|
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests