Problema render

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

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

28 Mar 2021, 19:35

Salut ,am o problema cu functia de render , si nu numai la un plugin, ci la toate..

Am de exemplu 2 clase de zombie , una de ghost ( face playerul invizibil ) si alta de boomer ( care da blind ). Problema e ca la cea de ghost invizibilitatea dureaza o secunda , iar la clasa de boomer la fel , blindul dat dureaza doar o secunda, si stiu sigur ca , clasele de zombie nu au nicio problema pe partea de cod .
Mai aveam in shop ceva de iti dadea invizibilitate , dar aceeasi problema o aveam , dupa o secunda nu mai erai invizibil.

plugins.ini

Code: Select all

NeoSecurity.amxx
ze_bans.amxx
;ze_aj.amxx
ze_maps.amxx
ze_afkslay.amxx
ze_lastip.amxx

; 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!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx	; AMX Mod backwards compatibility layer

ze_hpap.amxx
ze_mesaje.amxx
ze_nadesmodes.amxx
ze_teammenu.amxx

ze_slayteam.amxx
ze_time.amxx
ze_abd.amxx  // bullet damage
ze_harti.amxx
;ze_preturi.amxx
ze_who.amxx
ze_gag.amxx
ze_tags.amxx
ze_grab.amxx
ze_autoname.amxx
ze_rs.amxx

;ze_trail.amxx
;ze_paint.amxx

ze_injuraturi.amxx
ze_sky.amxx // seteaza sky pe sv
ze_showip.amxx

;ze_destroy.amxx
ze_pingfake.amxx

;ze_gg.amxx 
ze_invis.amxx
;ze_unstuck.amxx
ze_dmgtinta.amxx
;ze_health.amxx debug
ze_imune.amxx
ze_cam.amxx
; systeme noi
ze_ranksys.amxx
plugine-speciale.ini

Code: Select all

;Core
ze_core.amxx

a.amxx // plugin de arme la start
ze_button.amxx


;Setting API / Models
amx_settings_api.amxx
cs_weap_models_api.amxx




;Mod Addons
ze_block_events_messages.amxx // scoate radaru , banii , viata & armura din hud
;ze_effects_messages.amxx // escape leader 
ze_nightvision_lighting.amxx // lumina de pe harta
ze_effects_frags.amxx debug // efecte custom la fraguri
;ze_effects_weather.amxx // scoate ploaia / ceata / ninsoarea de pe harti


;vip stuffs
ze_vip_system.amxx

ze_meniu_custom.amxx
ze_items_manager.amxx
ze_items_escape_coins.amxx
ze_items_limit.amxx
ze_fire.amxx
ze_frost.amxx
ze_extra_fire_nade.amxx
ze_extra_frost_nade.amxx
ze_resources.amxx // sunetele de la mod , efectele ,
ze_countdown.amxx
ze_blind_bomb.amxx
ze_zombie_sounds.amxx
ze_adminmenu.amxx
;ze_first_round_restart.amxx
ze_get.amxx
ze_best_defender.amxx
ze_best_infector.amxx
ze_break_message.amxx // arata cine ce a spart
ze_special_models.amxx // seteaza modele pe CT si ADMIN
ze_moredmg.amxx
ze_antiblock.amxx

ze_spawn_auto_unstuck.amxx
ze_multijump.amxx
;ze_heroina.amxx

; cutite
;ze_knife_menu.amxx

ze_lanterna.amxx

; infects db si escapes db

;Enable if needed
ze_items_level.amxx	;Level System needed.
;ze_items_vip.amxx		;VIP System needed.



;arme nivel
ze_golden_m3.amxx
ze_golden_m4a1.amxx
ze_golden_mp5.amxx
ze_goldenak.amxx
ze_extra_sfgun.amxx
ze_weapon_awpz.amxx
ze_balrog_ethreal.amxx
ze_ak47paladin.amxx
ze_3uegun.amxx
ze_cyclon.amxx
;ze_heartrod.amxx


; extra items
ze_madness.amxx
ze_extra_bombjump.amxx
;ze_balorg11.amxx
;ze_janus.amxx
;ze_unicorn.amxx


ze_getthings.amxx debug

; clase zombie
ze_clase_zombie.amxx
ze_hunter.amxx
ze_deimos.amxx
ze_benshee.amxx
ze_boomer.amxx


Ma gandeam ca e vreun plugin ce ar putea influenta treaba asta
RoyalServer
Shadows Adi
Membru, skill +1
Membru, skill +1
Posts: 349
Joined: 26 Jan 2020, 18:52
Detinator Steam: Da
CS Status: 0x416469
SteamID: shadowsadi120
Fond eXtream: 0
Has thanked: 14 times
Been thanked: 50 times

28 Mar 2021, 20:10

Dezactiveaza plugin-uri pe rand, sau testeaza doar pe plugin-urile de baza rendering-ul jucatorilor.
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

28 Mar 2021, 20:19

Shadows Adi wrote:
28 Mar 2021, 20:10
Dezactiveaza plugin-uri pe rand, sau testeaza doar pe plugin-urile de baza rendering-ul jucatorilor.
Pai ideea e ca am dezactivat cam tot ce continea render , am lasat doar clasele alea 2 de zombie si cam atat , alte plugine nu sunt ..

EDIT : Singurul plg de folosea functia de render era asta :

Code: Select all

;ze_effects_messages.amxx // escape leader 
dar e oprit ..

SMA :

Code: Select all

#include <zombie_escape>

#define TASK_MESSAGE 2030

enum
{
	RANK_NONE = 0,
	RANK_FIRST,
	RANK_SECOND,
	RANK_THIRD
}

// Colors
enum
{
	Red = 0,
	Green,
	Blue
}

// Variables
new g_iMaxClients,
	g_iSpeedRank,
	g_iInfectionMsg,
	g_iEscapePoints[33],
	g_iEscapeRank[4],
	bool:g_bStopRendering[33]

// Cvars
new g_pCvarInfectNotice, 
	g_pCvarInfectColors[3],
	g_pCvarMode,
	g_pCvarRankColors[3],
	g_pCvarLeaderGlow,
	g_pCvarLeaderGlowColors[3],
	g_pCvarLeaderGlowRandom

public plugin_init()
{
	register_plugin("[ZE] Messages", ZE_VERSION, AUTHORS)
	
	// Cvars
	g_pCvarInfectNotice = register_cvar("ze_enable_infect_notice", "1")
	g_pCvarInfectColors[Red] = register_cvar("ze_infect_notice_red", "255")
	g_pCvarInfectColors[Green] = register_cvar("ze_infect_notice_green", "0")
	g_pCvarInfectColors[Blue] = register_cvar("ze_infect_notice_blue", "0")
	g_pCvarMode = register_cvar("ze_speed_rank_mode", "1")
	g_pCvarRankColors[Red] = register_cvar("ze_speed_rank_red", "0")
	g_pCvarRankColors[Green] = register_cvar("ze_speed_rank_green", "255")
	g_pCvarRankColors[Blue] = register_cvar("ze_speed_rank_blue", "0")
	g_pCvarLeaderGlow = register_cvar("ze_leader_glow", "1")
	g_pCvarLeaderGlowColors[Red] = register_cvar("ze_leader_glow_red", "255")
	g_pCvarLeaderGlowColors[Green] = register_cvar("ze_leader_glow_green", "0")
	g_pCvarLeaderGlowColors[Blue] = register_cvar("ze_leader_glow_blue", "0")
	g_pCvarLeaderGlowRandom = register_cvar("ze_leader_random_color", "1")
	
	// Messages
	g_iSpeedRank = CreateHudSyncObj()
	g_iInfectionMsg = CreateHudSyncObj()
	
	// Others
	g_iMaxClients = get_member_game(m_nMaxPlayers)
}

public plugin_natives()
{
	register_native("ze_get_escape_leader_id", "native_ze_get_escape_leader_id", 1)
	register_native("ze_stop_mod_rendering", "native_ze_stop_mod_rendering", 1)
}

public ze_user_infected(iVictim, iInfector)
{
	if (iInfector == 0) // Server ID
		return
		
	if (get_pcvar_num(g_pCvarInfectNotice))
	{
		new szVictimName[32], szAttackerName[32]
		get_user_name(iVictim, szVictimName, charsmax(szVictimName))
		get_user_name(iInfector, szAttackerName, charsmax(szAttackerName))
		set_hudmessage(get_pcvar_num(g_pCvarInfectColors[Red]), get_pcvar_num(g_pCvarInfectColors[Green]), get_pcvar_num(g_pCvarInfectColors[Blue]), 0.05, 0.45, 1, 0.0, 6.0, 0.0, 0.0)
		ShowSyncHudMsg(0, g_iInfectionMsg, "%L", LANG_PLAYER, "INFECTION_NOTICE", szAttackerName, szVictimName)
	}
}

public ze_game_started()
{
	remove_task(TASK_MESSAGE)
}

public ze_zombie_appear()
{
	// Show message when zombies appear to reduce lag
	set_task(0.3, "Show_Message", TASK_MESSAGE, _, _, "b") // 0.3 Is Enough Delay
	arrayset(g_iEscapePoints, 0, charsmax(g_iEscapePoints))
}

public Show_Message()
{
	for (new id = 1; id <= g_iMaxClients; id++)
	{
		if (!is_user_alive(id))
			continue
	
		// Add Point for Who is Running Fast
		if(!ze_is_user_zombie(id))
		{
			new Float:fVelocity[3], iSpeed
			
			get_entvar(id, var_velocity, fVelocity)
			iSpeed = floatround(vector_length(fVelocity))
			
			switch(iSpeed)
			{
				// Starting From Lowest Weapon speed, Finishing at Highest speed (Player maybe have more than 500)
				case 210..229: g_iEscapePoints[id] += 1
				case 230..249: g_iEscapePoints[id] += 2
				case 250..300: g_iEscapePoints[id] += 3
				case 301..350: g_iEscapePoints[id] += 4
				case 351..400: g_iEscapePoints[id] += 5
				case 401..450: g_iEscapePoints[id] += 6
				case 451..500: g_iEscapePoints[id] += 7
			}
		}
	
		if (get_pcvar_num(g_pCvarLeaderGlow) != 0)
		{
			// Set Glow For Escape Leader
			for (new i = 1; i <= g_iMaxClients; i++)
			{
				if (!is_user_alive(i) || g_bStopRendering[i])
					continue
			
				if (g_iEscapeRank[RANK_FIRST] == i) // The Leader id
				{
					if (get_pcvar_num(g_pCvarLeaderGlowRandom) == 0)
					{
						Set_Rendering(i, kRenderFxGlowShell, get_pcvar_num(g_pCvarLeaderGlowColors[Red]), get_pcvar_num(g_pCvarLeaderGlowColors[Green]), get_pcvar_num(g_pCvarLeaderGlowColors[Blue]), kRenderNormal, 40)
					}
					else
					{
						Set_Rendering(i, kRenderFxGlowShell, random(256), random(256), random(256), kRenderNormal, 40)
					}
					
				}
				else
				{
					Set_Rendering(i)
				}
			}
		}
		
		Show_Speed_Message(id)
	}
}

public Show_Speed_Message(id)
{
	// Case 0 has nothing to do in case g_pCvarMode = 0
	switch (get_pcvar_num(g_pCvarMode))
	{
		case 1: // Leader Mode
		{
			Speed_Stats()
			new iLeaderID = g_iEscapeRank[RANK_FIRST]
			new szLeader[32]
			
			if (is_user_alive(iLeaderID) && !ze_is_user_zombie(iLeaderID) && g_iEscapePoints[iLeaderID] != 0)
			{
				get_user_name(iLeaderID, szLeader, charsmax(szLeader))
				
				set_hudmessage(get_pcvar_num(g_pCvarRankColors[Red]), get_pcvar_num(g_pCvarRankColors[Green]), get_pcvar_num(g_pCvarRankColors[Blue]), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
				ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szLeader)
			}
			else
			{
				formatex(szLeader, charsmax(szLeader), "%L", LANG_PLAYER, "RANK_INFO_NONE")
				set_hudmessage(get_pcvar_num(g_pCvarRankColors[Red]), get_pcvar_num(g_pCvarRankColors[Green]), get_pcvar_num(g_pCvarRankColors[Blue]), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
				ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO_LEADER", szLeader)
			}
		}
		case 2: // Rank Mode
		{
			Speed_Stats()
			
			new szFirst[32], szSecond[32], szThird[32]
			new iFirstID, iSecondID, iThirdID
			
			iFirstID = g_iEscapeRank[RANK_FIRST]
			iSecondID = g_iEscapeRank[RANK_SECOND]
			iThirdID = g_iEscapeRank[RANK_THIRD]
			
			if (is_user_alive(iFirstID) && !ze_is_user_zombie(iFirstID) && g_iEscapePoints[iFirstID] != 0)
			{
				get_user_name(iFirstID, szFirst, charsmax(szFirst))
			}
			else
			{
				formatex(szFirst, charsmax(szFirst), "%L", LANG_PLAYER, "RANK_INFO_NONE")
			}
			
			if (is_user_alive(iSecondID) && !ze_is_user_zombie(iSecondID) && g_iEscapePoints[iSecondID] != 0)
			{
				get_user_name(iSecondID, szSecond, charsmax(szSecond))
			}
			else
			{
				formatex(szSecond, charsmax(szSecond), "%L", LANG_PLAYER, "RANK_INFO_NONE")
			}
			
			if (is_user_alive(iThirdID) && !ze_is_user_zombie(iThirdID) && g_iEscapePoints[iThirdID] != 0)
			{
				get_user_name(iThirdID, szThird, charsmax(szThird))		
			}
			else
			{
				formatex(szThird, charsmax(szThird), "%L", LANG_PLAYER, "RANK_INFO_NONE")
			}
			
			set_hudmessage(get_pcvar_num(g_pCvarRankColors[Red]), get_pcvar_num(g_pCvarRankColors[Green]), get_pcvar_num(g_pCvarRankColors[Blue]), 0.015,  0.18, 0, 0.2, 0.4, 0.09, 0.09)
			ShowSyncHudMsg(id, g_iSpeedRank, "%L", LANG_PLAYER, "RANK_INFO", szFirst, szSecond, szThird)
		}
	}
}

public Speed_Stats()
{
	new iHighest, iCurrentID
	
	// Rank First
	iHighest = 0; iCurrentID = 0
	
	for(new id = 1; id <= g_iMaxClients; id++)
	{
		if(!is_user_alive(id) || ze_is_user_zombie(id))
			continue
			
		if(g_iEscapePoints[id] > iHighest)
		{
			iCurrentID = id
			iHighest = g_iEscapePoints[id]
		}
	}
	
	g_iEscapeRank[RANK_FIRST] = iCurrentID
	
	// Rank Second
	iHighest = 0; iCurrentID = 0
	
	for(new id = 1; id <= g_iMaxClients; id++)
	{
		if(!is_user_alive(id) || ze_is_user_zombie(id))
			continue
		
		if (g_iEscapeRank[RANK_FIRST] == id)
			continue
			
		if(g_iEscapePoints[id] > iHighest)
		{
			iCurrentID = id
			iHighest = g_iEscapePoints[id]
		}
	}
	
	g_iEscapeRank[RANK_SECOND] = iCurrentID		
	
	// Rank Third
	iHighest = 0; iCurrentID = 0
	
	for(new id = 1; id <= g_iMaxClients; id++)
	{
		if(!is_user_alive(id) || ze_is_user_zombie(id))
			continue
		
		if(g_iEscapeRank[RANK_FIRST] == id || g_iEscapeRank[RANK_SECOND] == id)
			continue
			
		if(g_iEscapePoints[id] > iHighest)
		{
			iCurrentID = id
			iHighest = g_iEscapePoints[id]
		}
	}
	
	g_iEscapeRank[RANK_THIRD] = iCurrentID	
}

public native_ze_get_escape_leader_id()
{
	return g_iEscapeRank[RANK_FIRST]
}

public native_ze_stop_mod_rendering(id, bool:bSet)
{
	if (is_user_connected(id))
	{
		g_bStopRendering[id] = bSet
		return true
    }
	
	return false
}
Shadows Adi
Membru, skill +1
Membru, skill +1
Posts: 349
Joined: 26 Jan 2020, 18:52
Detinator Steam: Da
CS Status: 0x416469
SteamID: shadowsadi120
Fond eXtream: 0
Has thanked: 14 times
Been thanked: 50 times

29 Mar 2021, 00:34

ze_block_events_messages.amxx
Poate acest plugin blocheaza si mesajul de tip ScreenFade, asta pentru blind, pentru rendering-ul jucatorilor, repet, dezactiveaza toate plugin-urile, lasa-le doar pe cele de baza, ze_core.amxx, etc si activeaza fiecare plugin pe rand. Ai sanse de mari sa gasesti plugin-ul cu probleme.
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

29 Mar 2021, 01:59

edit : rezolvat !
lexz
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 918
Joined: 02 Nov 2020, 01:57
Detinator Steam: Da
Fond eXtream: 0
Discord: lexzor#0630
Has thanked: 71 times
Been thanked: 136 times

29 Mar 2021, 23:20

posteaza rezolvarea ca sa nu fie inutil pentru altii topicul
User avatar
kidd0x
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 1054
Joined: 06 Oct 2018, 14:41
Detinator Steam: Da
SteamID: /id/kidd0x/
Reputatie: Utilizator neserios (tepar!)
Fond eXtream: 0
Location: Constangeles
Discord: kidd0x
Has thanked: 172 times
Been thanked: 81 times

29 Mar 2021, 23:22

lexz wrote:
29 Mar 2021, 23:20
posteaza rezolvarea ca sa nu fie inutil pentru altii topicul
Pai nu am ce posta ,am oprit pluginul de modifica lumina hartii si cam aia a fost
Post Reply

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

  • Information
  • Who is online

    Users browsing this forum: No registered users and 110 guests