Raised This Month: $51 Target: $400
 12% 

UltimatePlugin v1.5.0b [Menu + API + ColorChat + Selectivity] (13-Aug-2014)


Post New Thread Reply   
 
Thread Tools Display Modes
nonserviam
Senior Member
Join Date: May 2013
Old 11-26-2013 , 12:16   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #331

Thank you, yes problem not from UP.
nonserviam is offline
nonserviam
Senior Member
Join Date: May 2013
Old 11-26-2013 , 14:17   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #332

Hello,

Server crashing day,

Host_Error: PF_MessageEnd_I: Refusing to send user message SayText of 193 bytes to client, user message size limit is 192 bytes

What is mean SayText
nonserviam is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 11-26-2013 , 14:55   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #333

I do not think this is caused from UP. Cause all messages are stopped at 191 characters in the code. It might be caused some other plugin.

When did this happen? What did you do that caused this error? Did you recently installed any new plugins that deals with capturing chat messages?
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
nonserviam
Senior Member
Join Date: May 2013
Old 11-26-2013 , 15:15   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #334

My settings

// #define GREEN_CHAT 1
// #define COLOR_CHAT 1

up_resetscore "1"
up_resetscore_display "0"

I'm just running the following plugin:

I done tests and everything run smoothly. After 13 hours starting new (now) crashs.

CRASH: Tue Nov 26 20:45:49 EET 2013
CRASH: Tue Nov 26 21:04:59 EET 2013
CRASH: Tue Nov 26 21:10:20 EET 2013
CRASH: Tue Nov 26 21:22:18 EET 2013
CRASH: Tue Nov 26 216:25 EET 2013

I disable UP temporary and not appear now crash.


Code:
/* AMX MOD X script.
* This file is provided as is with no warranty.
*
* Presenting: Slay Losers
*
* Effect: Losing the objective results in a random orgy of GFX destruction
*	   for the losing team (everyone on the losing team DIES).
*
* NOTE: The slaying will NOT remove frags.
*
* CVAR: Set mp_slaylosers to 0 if you want to turn it off.
*
* Written by: Denkkar Seffyd, now in a seperate WC3 independent package (no XP removal though)
*
* Install: compile then add slaylosers.amx to addons/amx/plugin.ini
*
*/

#include <amxmodx>

new white
new lightning
new g_sModelIndexSmoke

new mp_slaylosers

public plugin_init()
{
	register_plugin("AMX Slay Losers", "1.1", "[email protected]")
	register_event("SendAudio", "end_round", "a", "2=%!MRAD_terwin", "2=%!MRAD_ctwin", "2=%!MRAD_rounddraw")

	mp_slaylosers = register_cvar("mp_slaylosers", "1", FCVAR_SERVER)
}

public plugin_precache()
{
	g_sModelIndexSmoke = precache_model("sprites/steam1.spr")
	lightning = precache_model("sprites/lgtning.spr")
	white = precache_model("sprites/white.spr")
	precache_sound( "ambience/thunder_clap.wav")
	precache_sound( "weapons/headshot2.wav")
	precache_sound( "weapons/explode3.wav")
}


public end_round()
{
	// Only active if CVAR is not equal to 0
	new mode = get_pcvar_num(mp_slaylosers)
	if( mode )
	{
		new parm[32]
		new len = read_data(2, parm, charsmax(parm))
		set_task(0.1, "slay_those_losers", mode == 2, parm, len + 1)
	}
}

// Slays each player who failed to stop the other team from completing the objective.
// A random slay method is chosen for each player.
public slay_those_losers(parm[], effects)
{
	new origin[3], srco[3]
	new player[32], playersnum
	new id

	get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT" : "TERRORIST" )

	for(new i = 0; i < playersnum; ++i)
	{
		id = player[i]

		if( effects )
		{
			get_user_origin(id,origin)
			origin[2] -= 26
			srco[0]=origin[0]+150
			srco[1]=origin[1]+150
			srco[2]=origin[2]+800
			switch(random_num(1,3))
			{
				case 1:{
					slay_lightning(srco,origin)
					emit_sound(id,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
				}
				case 2:{
					slay_blood(origin)
					emit_sound(id,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
				}
				case 3:	{
					slay_explode(origin)
					emit_sound(id,CHAN_ITEM, "weapons/explode3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
				}
			}
		}
		set_hudmessage(178, 14, 41, -1.0, -0.4, 1, 0.5, 1.7, 0.2, 0.2, -1);
		show_hudmessage(id, "Objective Failed^nFailure Is Not An Option^nYou Die Now" );
		user_kill(id, 1)
	}
}

slay_explode(vec1[3])
{
	// blast circles
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1)
	write_byte( TE_BEAMCYLINDER )
	write_coord(vec1[0])
	write_coord(vec1[1])
	write_coord(vec1[2] + 16)
	write_coord(vec1[0])
	write_coord(vec1[1])
	write_coord(vec1[2] + 1936)
	write_short( white )
	write_byte( 0 ) // startframe
	write_byte( 0 ) // framerate
	write_byte( 2 ) // life
	write_byte( 16 ) // width
	write_byte( 0 ) // noise
	write_byte( 188 ) // r
	write_byte( 220 ) // g
	write_byte( 255 ) // b
	write_byte( 255 ) //brightness
	write_byte( 0 ) // speed
	message_end()
	//Explosion2
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte( TE_EXPLOSION2 )
	write_coord(vec1[0])
	write_coord(vec1[1])
	write_coord(vec1[2])
	write_byte( 188 ) // byte (scale in 0.1's)
	write_byte( 10 ) // byte (framerate)
	message_end()
	//Smoke
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1)
	write_byte( TE_SMOKE )
	write_coord(vec1[0])
	write_coord(vec1[1])
	write_coord(vec1[2])
	write_short( g_sModelIndexSmoke )
	write_byte( 2 )
	write_byte( 10 )
	message_end()
}

slay_blood(vec1[3])
{
	//LAVASPLASH
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte( TE_LAVASPLASH )
	write_coord(vec1[0])
	write_coord(vec1[1])
	write_coord(vec1[2])
	message_end()
}

slay_lightning(vec1[3],vec2[3])
{
	//Lightning
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte( TE_BEAMPOINTS )
	write_coord(vec1[0])
	write_coord(vec1[1])
	write_coord(vec1[2])
	write_coord(vec2[0])
	write_coord(vec2[1])
	write_coord(vec2[2])
	write_short( lightning )
	write_byte( 1 ) // framestart
	write_byte( 5 ) // framerate
	write_byte( 2 ) // life
	write_byte( 20 ) // width
	write_byte( 30 ) // noise
	write_byte( 200 ) // r, g, b
	write_byte( 200 ) // r, g, b
	write_byte( 200 ) // r, g, b
	write_byte( 200 ) // brightness
	write_byte( 200 ) // speed
	message_end()
	//Sparks
	message_begin( MSG_PVS, SVC_TEMPENTITY,vec2)
	write_byte( TE_SPARKS )
	write_coord( vec2[0] )
	write_coord( vec2[1] )
	write_coord( vec2[2] )
	message_end()
	//Smoke
	message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec2)
	write_byte( TE_SMOKE )
	write_coord(vec2[0])
	write_coord(vec2[1])
	write_coord(vec2[2])
	write_short( g_sModelIndexSmoke )
	write_byte( 10 )
	write_byte( 10 )
	message_end()
}
nonserviam is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 11-26-2013 , 15:19   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #335

Will check that on Friday. Tomorrow and the day after I have exams.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
nonserviam
Senior Member
Join Date: May 2013
Old 11-26-2013 , 15:23   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #336

Thank you.
nonserviam is offline
nonserviam
Senior Member
Join Date: May 2013
Old 11-28-2013 , 08:42   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #337

I found problem. If server online long names 7-8 admins and /admin command server crash.
nonserviam is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 11-28-2013 , 09:05   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #338

Yep found it and fixed. Thank you.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
nonserviam
Senior Member
Join Date: May 2013
Old 11-28-2013 , 09:57   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #339

How download fix version? Thank you.
nonserviam is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 11-28-2013 , 10:18   Re: UltimatePlugin v1.4.2 + Menu + API + ColorChat (6th November 2013) - tonykaram199
Reply With Quote #340

Tonight I will post the 1.4.3 version that includes those fixes. It will be beta, but it'll work fine.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode