ChooseTheRightWire

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
NuRoFeN [;x]
Membru, skill +2
Membru, skill +2
Posts: 828
Joined: 21 Aug 2012, 15:47
Detinator Steam: Da
CS Status: Inactiv !
Detinator server CS: DR.CS1.RO
SteamID: eualexandru
Reputatie: Fost moderator
Location: Rm.Valcea
Has thanked: 66 times
Been thanked: 61 times
Contact:

05 Feb 2014, 12:15

Descriere: Cand tero va pune bomba , il va intreba ce culoare sa aleaga la fir ! , cand ct da defuze il va intreba ce fir sa aleaga , daca il nimeste , bomba se dezamorseaza INSTANT !

Descarcare: - Varianta RO (Plugin tradus in romana de gloryous ) http://www55.zippyshare.com/v/61647674/file.html

-Varianta EN http://www3.zippyshare.com/v/5914369/file.html

Nume: ChooseTheRightWire
Versiune: 0.0.2
Link oficial: http://forums.alliedmods.net/showthread.php?t=47877 (este si alta varianta)

Instalare:
1. Fisierul ChooseTheRightWire.sma il puneti in addons/amxmodx/scripting
2. Fisierul ChooseTheRightWire.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

ChooseTheRightWire.amxx
4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): -


Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):-


Comenzi publice (se tasteaza in joc prin apasarea tastei Y):-


Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

Imagini:

Image
http://postimage.org/app.php

Image
http://postimage.org/app.php


Apasati butonul Image Daca v-a ajutat !
Last edited by NuRoFeN [;x] on 05 Feb 2014, 13:03, edited 8 times in total.
Reason: Sefu lui ( eu ) la ajutat la testare! :)
RoyalServer 2
TrrrQ
Fost moderator
Fost moderator
Posts: 2594
Joined: 04 Feb 2013, 00:31
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (3 luni)
Restrictie moderator!
Unban achitat (x2)
Fost moderator
Fond eXtream: 8
Has thanked: 135 times
Been thanked: 67 times
Contact:

05 Feb 2014, 12:48

super băi băieţi.Dar 4 fire parcă îs prea multe , o să câştige doar tero

măcar nişte bonsuri pentru ct - dacă are fraguri sau mai ştiu eu , să i dea să aleagă doar din 2
- sau să poată cumpăra să aleagă din 2
Filme Online HD subtitrate fără reclame automate: https://filmeonline-hd.com
Prezentarea site-ului: https://www.youtube.com/watch?v=k4K3tgEkYjw
User avatar
NuRoFeN [;x]
Membru, skill +2
Membru, skill +2
Posts: 828
Joined: 21 Aug 2012, 15:47
Detinator Steam: Da
CS Status: Inactiv !
Detinator server CS: DR.CS1.RO
SteamID: eualexandru
Reputatie: Fost moderator
Location: Rm.Valcea
Has thanked: 66 times
Been thanked: 61 times
Contact:

05 Feb 2014, 12:55

Cu 2 fire doar ?! , pai atunci la ce mai e defuze kit-u ?,tero munceste sa puna bomba si venim noi si alegem din 2 fire si poc ? .Nu prea e corect
User avatar
CsN^ ;x
Membru eXtream
Membru eXtream
Posts: 3560
Joined: 02 Apr 2012, 16:58
Detinator Steam: Nu
CS Status: Retras din domeniul Counter-Strike
Reputatie: Fost moderator
Location: Bucuresti
Has thanked: 797 times
Been thanked: 607 times

05 Feb 2014, 12:59

La link oficial pune linkul unde ai adaugat plugin :)
Pluginu e super dar era bun si niste bonusuri la plant si la defuse :)
Addons HNS level,gravity,xp DOWNLOAD ( e țeapă)
https://5filme.com/ - un simplu site de filme pentru timpul liber
User avatar
WishExec1
Membru, skill +1
Membru, skill +1
Posts: 177
Joined: 19 Jan 2014, 16:43
Detinator Steam: Da
CS Status: Inginer - Programator - Developer
Detinator server CS: Privat
SteamID: wishexec
Location: Bucuresti
Has thanked: 16 times
Been thanked: 11 times

05 Feb 2014, 13:04

vezi ca e source mod
- Developer - Creez sau Modific - AmxModX - Source
User avatar
NuRoFeN [;x]
Membru, skill +2
Membru, skill +2
Posts: 828
Joined: 21 Aug 2012, 15:47
Detinator Steam: Da
CS Status: Inactiv !
Detinator server CS: DR.CS1.RO
SteamID: eualexandru
Reputatie: Fost moderator
Location: Rm.Valcea
Has thanked: 66 times
Been thanked: 61 times
Contact:

05 Feb 2014, 13:06

WishExec wrote:vezi ca e source mod
Nu e deloc source mod , macar l-ai downloadat ? , data viitoare te alegi cu warn.
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:

05 Feb 2014, 13:44

Va pun eu bonusuri cand imi iau PC.
Frumos ! :D
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

05 Feb 2014, 14:13

Pune si sursa in topic
| Afiseaza codul
/* AMX Mod X script.
*   
*	Cut The Right Wire 
*      
*	by The Specialist 
*
*        Idea : TinLab
*
*  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 2 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, write to the Free Software Foundation,
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  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.
*/

#include <amxmodx>
#include <fakemeta>

#define TE_EXPLOSION 3

new keys = MENU_KEY_0|MENU_KEY_1|MENU_KEY_2 ;
new g_Switch;
new i;
new PlayerDefused[33];
new Sprite;
new Float:  Location[3];
new wire;
new g_AllTalk;

public plugin_init()
{
	register_plugin("Cut The Right Wire","0.4","The Specialist");
	g_Switch = register_cvar("ctrw_switch","1");
	g_AllTalk = register_cvar("ctrw_alltalk","1");
	register_dictionary("right_wire.txt");
	register_menucmd(register_menuid("menu_show"),1023,"menu_choose");
	register_event("ResetHUD","wire_call","be");
	register_logevent("bomb_defuse_no_kit", 3, "2=Begin_Bomb_Defuse_Without_Kit");
	register_logevent("bomb_defuse_no_kit", 3, "2=Begin_Bomb_Defuse_With_Kit");
	register_forward(FM_PlayerPreThink,"block_buttons");
}
// detect defusing
public bomb_defuse_no_kit()
{
	new id = get_loguser_index();
	
	if(get_pcvar_num(g_Switch)==0 || PlayerDefused[id] > 0 || is_user_bot(id)==1)
	{
		return PLUGIN_HANDLED;
	}else{
		new menu[192];
		format(menu,191,"%L",id,"CHOOSE");
		show_menu(id,keys,menu,-1,"menu_show");
		++PlayerDefused[id];
		all_talk();
		++i;
		return 0;
	}
	return 0;
}
// reset hud event 
public wire_call(id)
{
	PlayerDefused[id] = 0;
	wire = random_num(0,1);
}
// remove use button and show menu 
public menu_choose(id,key)
{
	switch(key)
	{
		case 0 :
		{
			if( wire == 0 )
			{
				--i;
				return PLUGIN_HANDLED;
			}else{
				bomb_explosion(id);
				PlayerDefused[id]  = 0;
				return 1
			}
		}
		case 1: 
		{
			if( wire == 1)
			{
				--i;
				return PLUGIN_HANDLED;
			}else{
				bomb_explosion(id);
				PlayerDefused[id] = 0;
				return 1
			}
		}
	}
	return PLUGIN_HANDLED;
}
// block the users use button
public block_buttons(id)
{
	if( i == 0 )
	{
		return 1;
	}else{
		set_pev( id, pev_button, pev(id,pev_button) & ~IN_USE);
	}
	return 1;
}
//bomb explosion 
public bomb_explosion(id)
{
	pev(id, pev_origin,Location);
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
	write_byte(TE_EXPLOSION);
	engfunc(EngFunc_WriteCoord,Location[0]);
	engfunc(EngFunc_WriteCoord,Location[1]);
	engfunc(EngFunc_WriteCoord,Location[2]);
	write_short(Sprite);
	write_byte(255);
	write_byte(0);
	write_byte(0);
	message_end();
	user_silentkill(id);
	PlayerDefused[id] = 0;	
	i = 0;
	return 1;
}
// turn all talk on 
public all_talk()
{
	if(get_pcvar_num(g_AllTalk)==0)
	{
		return PLUGIN_HANDLED;
	}else{
		set_cvar_string("sv_alltalk","1");
	}
	return PLUGIN_HANDLED;
}
// function to get index from log events
public get_loguser_index() 
{
	new loguser[80], name[32];
	read_logargv(0, loguser, 79);
	parse_loguser(loguser, name, 31);
	return get_user_index(name);
}
//precache sprites for exloasion
public plugin_precache()
{
	Sprite = precache_model("sprites/zerogxplode.spr");
}
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.

#RETIRED.
User avatar
WishExec1
Membru, skill +1
Membru, skill +1
Posts: 177
Joined: 19 Jan 2014, 16:43
Detinator Steam: Da
CS Status: Inginer - Programator - Developer
Detinator server CS: Privat
SteamID: wishexec
Location: Bucuresti
Has thanked: 16 times
Been thanked: 11 times

05 Feb 2014, 14:52

NuRoFeN [;x] wrote:
WishExec wrote:vezi ca e source mod
Nu e deloc source mod , macar l-ai downloadat ? , data viitoare te alegi cu warn.
nu l-am descarcat , m-am uitat la poza , frumos plugin
Last edited by NuRoFeN [;x] on 05 Feb 2014, 14:56, edited 1 time in total.
Reason: Din poze ti-ai dat seama ca e source mod ? =))
- Developer - Creez sau Modific - AmxModX - Source
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

05 Feb 2014, 15:38

@WishExec zis "" : Asta am crezut si eu la inceput :)) !
@FaTzZu: Asta e sursa:
| Afiseaza codul
/*	Formatright © 2011, ConnorMcLeod

	This plugin 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.

	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 plugin; if not, write to the
	Free Software Foundation, Inc., 59 Temple Place - Suite 330,
	Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION "0.0.2"
#define PLUGIN "Cut the right wire"

#if !defined Ham_CS_Player_ResetMaxSpeed
	#define Ham_CS_Player_ResetMaxSpeed Ham_Item_PreFrame
#endif

#define m_iTeam 114
#define TEAM_CT 2
#define get_player_team(%0)	get_pdata_int(%0,m_iTeam)

new g_iMaxPlayers
#define IsPlayer(%0)	( 1 <= %0 <= g_iMaxPlayers )

const g_iKeys = MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5

const HasDefuser = (1<<16)
#define has_user_defuser(%0)	( get_pdata_int(%0,193) & HasDefuser )
const IsDefusing = (1<<8)
#define is_user_defusing(%0)	( get_pdata_int(%0,232) & IsDefusing )
#define m_pActiveItem 373

// c4 offsets, linux diff is default 5
#define m_fC4State 96
const C4_START_DEFUSE = (1<<0)
const C4_PLANTED = (1<<8)
#define is_c4_planted(%0)	( get_pdata_int(%0, m_fC4State) & C4_PLANTED )
#define is_c4_being_defused(%0)	get_pdata_int(%0, m_fC4State) & C4_START_DEFUSE
#define m_flDefuseCountDown 99
#define m_flC4Blow 100

// weapons(_c4) offsets
#define XO_WEAPON 4
#define m_pPlayer 41
#define m_fBombState 78
const C4_STARTED_ARMING = (1<<0)
#define is_c4_being_armed(%0)	get_pdata_int(%0,m_fBombState,XO_WEAPON) & C4_STARTED_ARMING
#define m_flArmedTime 79

new g_iBarTime
new g_iWire, g_iC4, g_iDefuser, g_iPlanter
new g_iPlantMenuIndex, g_iDefuseMenuIndex

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "ConnorMcLeod")

	register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
	register_event("BarTime", "Event_BarTime_Reset", "be", "1=0")

	RegisterHam(Ham_Use, "grenade", "CGrenade_Use", 1)
	RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_c4", "CC4_PrimaryAttack", 1)
	g_iMaxPlayers = get_maxplayers()
	g_iBarTime = get_user_msgid("BarTime")

	g_iDefuseMenuIndex = register_menuid("Cut a Wire" , 0)
	register_menucmd(g_iDefuseMenuIndex, g_iKeys, "DefuseWireMenuCallBack")
	g_iPlantMenuIndex = register_menuid("\wChoose a wire")
	register_menucmd(g_iPlantMenuIndex, g_iKeys, "PlantWireMenuCallBack")
}

public Event_HLTV_New_Round()
{
	g_iDefuser = 0
	g_iC4 = 0
	g_iPlanter = 0
}

public Event_BarTime_Reset( id )
{
	if( id == g_iDefuser )
	{
		g_iDefuser = 0

		new menuid, keys
		get_user_menu(id, menuid, keys)
		if( menuid == g_iDefuseMenuIndex )
		{
			show_menu(id, 0, " ", 1)
		}
	}
	if( id == g_iPlanter )
	{
		new menuid, keys
		get_user_menu(id, menuid, keys)
		if( menuid == g_iPlantMenuIndex )
		{
			show_menu(id, 0, " ", 1)
		}
	}
}

public CGrenade_Use(c4, id)
{
	if( !g_iDefuser && IsPlayer(id) && get_player_team(id) == TEAM_CT && is_c4_planted(c4) && is_c4_being_defused(c4) && is_user_defusing(id) )
	{
		g_iDefuser = id
		g_iC4 = c4
		show_menu
		(
			id, 
			g_iKeys, 
				"\wCut a Wire:^n\
				Ignore this to defuse normally^n^n\
				\
				Get it right and the bomb is defused^n\
				Get it wrong and the bomb normally explodes^n\
				With no defuse kit you have 50%%\
				chance of the bomb exploding^n\
				even if you choose the right wire^n^n\
				\
				\y1. Blue^n\
				2. Yellow^n\
				3. Red^n\
				4. Green^n^n\
				\
				5. Exit", 
			floatround( get_pdata_float(c4, m_flDefuseCountDown) - get_gametime() )
		)
	}
}

public DefuseWireMenuCallBack(id, key)
{
	if( key == 4 )
	{
		return PLUGIN_HANDLED
	}

	message_begin(MSG_ONE, g_iBarTime, .player=id)
	write_short(0)
	message_end()

	if( key != g_iWire || (!has_user_defuser(id) && random(100) < 50) )
	{
		set_pdata_float(g_iC4, m_flC4Blow, get_gametime())
		dllfunc(DLLFunc_Think, g_iC4)
	}
	else
	{
		set_pdata_float(g_iC4, m_flDefuseCountDown, 0.0)
		dllfunc(DLLFunc_Think, g_iC4)
	}

	new item = get_pdata_cbase(id, m_pActiveItem)
	if( item > 0 )
	{
		ExecuteHamB(Ham_Item_Deploy, item)
	}
	return PLUGIN_HANDLED
}

public CC4_PrimaryAttack( c4 )
{
	static id
	id = get_pdata_cbase(c4, m_pPlayer, XO_WEAPON)
	if( is_c4_being_armed( c4 ) )
	{
		if( id != g_iPlanter )
		{
			g_iPlanter = id
			new Float:flTime = get_pdata_float(c4, m_flArmedTime, XO_WEAPON) - get_gametime()
			show_menu
			(
				id, 
				g_iKeys, 
					"\wChoose a wire^n^n\
					\
					The CTs can try guess this for an instant defuse^n\
					Exit, or ignore this for a random wire^n^n\
					\
					\y1. Blue^n\
					2. Yellow^n\
					3. Red^n\
					4. Green^n^n\
					\
					5. Exit", 
				floatround(flTime)
			)
			set_task(flTime, "Task_ChooseForMe", id)
		}
	}
	else if( id == g_iPlanter )
	{
		g_iPlanter = 0
	}
}

public Task_ChooseForMe( id )
{
	if( id == g_iPlanter )
	{
		g_iWire = random_num(0, 3)
	}
}

public PlantWireMenuCallBack( id , key )
{
	if( key != 4 )
	{
		g_iWire = key
	}
	else
	{
		g_iWire = random_num(0, 3)
	}
	remove_task(id)
	return PLUGIN_HANDLED
}
Felicitari pentru plugin!
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
User avatar
Gabriel963
Fost moderator
Fost moderator
Posts: 1658
Joined: 03 Feb 2013, 13:03
Detinator Steam: Da
CS Status: Retried
Reputatie: Membru Club eXtreamCS (1 luna)
Fost Moderator
Location: Bucharest, Romania.
Has thanked: 20 times
Been thanked: 85 times

20 Mar 2014, 23:26

Frumos plugin ! :D
Image
User avatar
SkillartzHD
Membru, skill +3
Membru, skill +3
Posts: 1096
Joined: 08 Feb 2013, 19:43
Detinator Steam: Da
CS Status: HLDS Vulnerability
Detinator server CS: GoldSrc
SteamID: SkillartzHD_hlds
Reputatie: Fost Moderator ajutator
Location: Bucuresti
Has thanked: 14 times
Been thanked: 28 times
Contact:

21 Mar 2014, 00:16

Interesant , ai putea pune 1 sansa (adica sa nu bubuie instant) si cand a gresit firul sa pui mp_c4timer cu 10 secunde mai putin + sa aduagi niste mesaje hud/chat daca bagi asta cu o sansa ..
Project by HLDS-Project 2017
Static Emulator : Native | Random Emulator : SettiEmu/AVSMP1/AVSMP0/SteamEmu/oldRevEmu/RevEmu is done
KickASS-HLDS v2 (hlds)
KickASS-HLDS v1 (fakedetector)
HL-ClientSteam exploit (pure hlds)
PLCore exploit (dproto&hlds)
FakeConnect 2.0(reunion&rehlds)
KickASS-HLDS v3 in amxx(hlds&rehlds)
...... time passes and evidence are many
Special thanks to Spanwer and Magister
Skype : spyware.spyware1
Steam : Click

SV_CheckForDuplicateNames V2 download
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests