Modificare plugin de zm in modul normal cs

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
Killer*Elite
Membru, skill 0
Membru, skill 0
Posts: 36
Joined: 28 Jul 2010, 00:53
Detinator Steam: Da
Detinator server CS: da
Location: ROMANIA
Has thanked: 1 time
Been thanked: 2 times
Contact:

26 Aug 2010, 12:36

Cine poate sa modifice acest plugin el este pentru zombi dar sal faciti pentru modul normal de servere, i rog pe cei mai buni de pe extreamcs sa modifice acest plugin, il rog si pe aNNakin sa modifice acest plugin poate el o putea

Image

sma
http://forums.alliedmods.net/attachment ... 1275493339
| Afiseaza codul
[code]/*
	[ZP] New Win Messages

	Plugin by Shidla [SGC] & xPaw & 93()|29!/<
	
	Idea & models:
	Koshak		| ICQ: 283-361-228	(zombie-mod.ru)

	Credits:
	xPaw									(Main code... My was worse... But it worked too :))
	93()|29!/<	| SkyPE: georgik_braila 	(Bug fixing)
				| Yahoo Messenger: george_stafie
	MeRcyLeZZ								(For his Zombie Plague)
	CHyCMyMpNk	| ICQ: 4-888-617			(forum.hlds.us)
	Fedcomp		| ICQ: 536020				(gm-community.net / forum.hlds.us / amx-x.ru / gscom.org)
	PomanoB		| ICQ: 147-919				(gm-community.net / forum.hlds.us / amx-x.ru)
	DJ_WEST		| ICQ: 634-866 				(For his amx-x.ru & reallite.cs2.ru)
	meTaLiCroSS								(For something, what ever... I know him - we steal something: his idea\code\constant\crap\brain\blablabla :))



	Shidla [SGC] | 2010 | ICQ: 312-298-513
	
	1.3 [Final Version]

	http://forums.alliedmods.net/showthread.php?t=128385		// Eng
	http://forum.hlds.us/showthread.php?p=84425					// Rus
*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

new Hands[33], MaxPlayers

new const MODELS[3][] =
{
	"",
	"models/zombie_plague/zombie_win.mdl",
	"models/zombie_plague/human_win.mdl"
};

new const MODELS_FLIP[3][] =
{
	"",
	"models/zombie_plague/zombie_win-f.mdl",
	"models/zombie_plague/human_win-f.mdl"
};


new g_iModelIndex[3], g_iWinTeam, g_iModelIndexFlip[3];

public plugin_init()
{
	register_plugin("[ZP] Sub-Plugin: New Win Messages", "1.3", "Shidla, xPaw, 93()|29!/<" );
	register_event("HLTV", "EventRoundStart", "a", "1=0", "2=0" );
	register_event("CurWeapon", "EventCurWeapon", "be", "1=1");

	MaxPlayers = get_maxplayers();

	register_cvar("Shidla", "[ZP] New Win Messages v.1.3", FCVAR_SERVER|FCVAR_SPONLY);
	register_cvar("zp_new_win_messages", "[ZP] New Win Messages v.1.3", FCVAR_SERVER|FCVAR_SPONLY);
}

public plugin_precache()
{
	for (new i = WIN_ZOMBIES; i <= WIN_HUMANS; i++)
	{
		precache_model(MODELS);
		g_iModelIndex = engfunc(EngFunc_AllocString, MODELS);
		precache_model(MODELS_FLIP);
		g_iModelIndexFlip = engfunc(EngFunc_AllocString, MODELS_FLIP);
	}
}

public client_connect(id)
{
	if(!is_user_bot(id))
		query_client_cvar(id , "cl_righthand" , "Hands_CVAR_Value");
}

public Hands_CVAR_Value(id, const cvar[], const value[])
{
	if(1 <= id <= MaxPlayers)	// Bug Fix
		Hands[id] = str_to_num(value)
}

public client_disconnect(id)
{
	Hands[id] = 0
}

public zp_round_ended(iTeam)
{
	if (iTeam == WIN_NO_ONE)
		return;
	g_iWinTeam = iTeam;
	new iPlayers[32], iNum;
	get_players(iPlayers, iNum, "ch");
	for (new i; i < iNum; i++)
	{
		client_cmd(iPlayers, "cl_righthand ^"1^"");
		zp_set_user_nightvision(iPlayers, 1);

		if (get_user_weapon(iPlayers) != CSW_KNIFE)
			set_pev(iPlayers, pev_viewmodel, g_iModelIndexFlip[iTeam]);
		else
			set_pev(iPlayers[i], pev_viewmodel, g_iModelIndex[iTeam]);
	}
}

public EventRoundStart()
{
	g_iWinTeam = WIN_NO_ONE;

	for (new i = 1; i <= MaxPlayers; i++)
	{
		if(!is_user_connected(i))
			continue;		// xPaw fix)))

		client_cmd(i, "cl_righthand ^"%d^"", Hands[i]);
		//client_print(i,print_chat,"[DEBUG] Значение данных '%d'***", Hands[i]);
	}
}

public EventCurWeapon(const id)
{
	if (g_iWinTeam > WIN_NO_ONE)
	{
		client_cmd(id, "cl_righthand ^"1^"");

		if (get_user_weapon(id) != CSW_KNIFE)
			set_pev(id, pev_viewmodel, g_iModelIndexFlip[g_iWinTeam]);
		else
			set_pev(id, pev_viewmodel, g_iModelIndex[g_iWinTeam]);
	}
}

// Yes, baby, its's Russia! xDD
// Thanks for all, who help me)))[/code]
Last edited by Ciprian on 28 Aug 2010, 15:38, edited 1 time in total.
Reason: Foloseste sursa in loc de code/quote pt. texte lungi.
Se dau STEAM GRATISE!
Apasa pe imaginea din dreapta
Image
User avatar
iLLuSsi0N
Membru, skill +1
Membru, skill +1
Posts: 125
Joined: 04 Aug 2010, 15:47
Detinator Steam: Da
CS Status: ^.^
Detinator server CS: inca nu e pornit :d
Has thanked: 8 times
Been thanked: 6 times
Contact:

26 Aug 2010, 14:16

aNNakin am auzit ca numai are net.
Nick CS : r0NaLd0*
Nick Forum-uri / Site-uri : iLLuSsi0N


Caut uploaderi, cat si un Moderator pentru trackerul http://www.GhostList.org [ Uploaderul lunii castiga 4 euro pe telefon in orice retea! ]

Vand conturi pe FileList , IPTorrents , DemonoID , SuperTorrents , XploR , SceneFZ , TorrentLeech + invitatii pe IPTorrents

Cine este interesat sa-mi dea add : iLLuSsi0N@Yahoo.Com

Daca te-am ajutat , apasa butonul Image !
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests