Problema plugin no_flash_team

Discutii legate de instalarea, configurarea si modificarea unui server de Counter-Strike.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

25 Apr 2015, 22:45

Am bagat sma in scripting,amxx in plugins am scris in plugins.ini no_team_flash.amxx ,am bagat si in amx.cfg no_team_flash 1
Am tastat amx_plugins si arata asa:
No Team Flash 0.2KRoTano_team_flash.a running
Deci functioneaza pluginul numai ca flashul se ia oricum de ambele parti.
Acesta este sma:

Code: Select all

/*************************************************************************************************************
                        	  		 AMX No Team Flash

  Version: 0.2
  Author: KRoT@L

  0.1    Release
  0.2    Bug fix


  You won't be flashed by your teammates.


  Cvar:

	no_team_flash "1"		-	0: Disables the plugin
                        1: Enables the plugin
                        

  Setup (AMX 0.9.9):

	Install the amx file.
  Enabled VexdUM (both in metamod/plugins.ini and amx/config/modules.ini)
  
  
  Credits:
  
  Requested by baldbobby
  Cluster Grenade by doomy

*************************************************************************************************************/

#include <amxmodx>

new g_msgScreenFade, grenade[32], last
new Float:g_gametime, g_owner

public plugin_init()
{
	register_plugin("No Team Flash", "0.2", "KRoTaL")
	register_cvar("no_team_flash", "1")
	register_event("ScreenFade", "eventFlash", "be", "4=255", "5=255", "6=255", "7>199")
	register_event("TextMsg", "fire_in_the_hole", "b", "2&#Game_radio", "4&#Fire_in_the_hole")
	register_event("TextMsg", "fire_in_the_hole2", "b", "3&#Game_radio", "5&#Fire_in_the_hole")
	register_event("99", "grenade_throw", "b")
	g_msgScreenFade = get_user_msgid("ScreenFade")
}

public eventFlash(id)
{
  new Float:gametime = get_gametime()
  if(gametime != g_gametime)
  {
    g_owner = get_grenade_owner()
    g_gametime = gametime
  }
  if(is_user_connected(g_owner) && g_owner != id && get_user_team(id) == get_user_team(g_owner))
  {
  	message_begin(MSG_ONE, g_msgScreenFade, {0,0,0}, id)
  	write_short(1)
  	write_short(1)
  	write_short(1)
  	write_byte(0)
  	write_byte(0)
  	write_byte(0)
  	write_byte(255)
  	message_end()
	}
}

public grenade_throw()
{
	if(read_datanum() < 2)
    return PLUGIN_HANDLED_MAIN

	if(read_data(1) == 11 && (read_data(2) == 0 || read_data(2) == 1))
	{
		add_grenade_owner(last)
	}

	return PLUGIN_CONTINUE
}

public fire_in_the_hole()
{
	new name[32]
	read_data(3, name, 31)
	last = get_user_index(name)

	return PLUGIN_CONTINUE
}

public fire_in_the_hole2()
{
	new name[32]
	read_data(4, name, 31)
	last = get_user_index(name)

	return PLUGIN_CONTINUE
}

add_grenade_owner(owner)
{
	for(new i = 0; i < 32; i++)
  {
		if(grenade[i] == 0)
    {
			grenade[i] = owner
			return
		}
	}
}

get_grenade_owner()
{
	new which = grenade[0]
	for(new i = 1; i < 32; i++)
  {
		grenade[i-1] = grenade[i]
	}
	grenade[31] = 0
	return which
}
Poate ma ajutati cu alt plugin de genul asta sau daca se poate modfica acesta.
Va multumesc.
Last edited by Jorj on 27 Apr 2015, 19:50, edited 1 time in total.
RoyalServer
User avatar
Jorj
Fost moderator
Fost moderator
Posts: 3494
Joined: 13 Aug 2013, 18:10
Detinator Steam: Da
Detinator server CS: Furien.LsZ.Ro
SteamID: clic_lsz
Reputatie: Fost eXtream Mod
Fost Membru Club eXtreamCS (patru luni)
Nume anterior: Clic
Location: Piatra Neamt
Has thanked: 1 time
Been thanked: 20 times
Contact:

26 Apr 2015, 22:31

Intermediez tranzactii cand am chef si timp ! :)

Image
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

27 Apr 2015, 16:30

Merge foarte bine multumesc frumos.
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

02 May 2015, 11:12

Revin din nou cu aceeasi problema.
Pluginul bagat mai sus a mers doar cateva zile .
Ce as putea sa fac sa mearga acest plugin ca deja incepe sa ma enerveze ca ma bat la cap playerii de pe server?
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

13 May 2015, 11:23

Nu stie nimeni?
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

14 May 2015, 09:54

Pluginul de mai sus a functionat prima zi cand l-am bagat si dupa aia nu a mai vrut.
Ma poate ajuta cineva cu acest plugin?
User avatar
Jorj
Fost moderator
Fost moderator
Posts: 3494
Joined: 13 Aug 2013, 18:10
Detinator Steam: Da
Detinator server CS: Furien.LsZ.Ro
SteamID: clic_lsz
Reputatie: Fost eXtream Mod
Fost Membru Club eXtreamCS (patru luni)
Nume anterior: Clic
Location: Piatra Neamt
Has thanked: 1 time
Been thanked: 20 times
Contact:

14 May 2015, 10:45

Posteaza plugins.ini
Intermediez tranzactii cand am chef si timp ! :)

Image
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

14 May 2015, 22:02

Acesta este plugins.ini:

Code: Select all

; Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx		; basic admin console commands
;adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
;multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands


; Map related
nextmap.amxx		; displays next map in mapcycle
mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
;miscstats.amxx		; bunch of events announcement for Counter-Strike
;stats_logging.amxx	; weapons stats logging (CSX Module required!)


; Custom - Add 3rd party plugins here

ultimate_who.amxx
allchat.amxx
advanced_gag.amxx
simple_no_team_flash.amxx
pingfaker2.amxx
auto_restart.amxx
amx_ss.amxx
admin_spec_esp.amxx
Exterminate.amxx
ora_data.amxx
resetscore.amxx
HowToBoostV1.amxx
auto_join_on_connect.amxx
block_name.amxx
;vip.amxx
activitate_admini.amxx
team-semiclip.amxx
amx_toggleimmune.amxx
User avatar
Madbrain
Membru, skill +1
Membru, skill +1
Posts: 259
Joined: 14 Aug 2009, 11:50
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com!
Detinator server CS: Da
Location: Birmingham

17 May 2015, 10:17

Nimeni?
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

17 May 2015, 15:25

pune-l mai sus in plugins.ini, e posibil sa se certe cu alt pugin, sau lasa doar pluginul de no_team_flash si vezi daca functioneaza
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
Post Reply

Return to “Probleme la servere dedicate de Counter-Strike”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 72 guests