Raised This Month: $ Target: $400
 0% 

plugin_end and talking name in side


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 08-18-2013 , 18:22   plugin_end and talking name in side
Reply With Quote #1

About the plugin_end, I run this code:
PHP Code:
public plugin_end()
{
    new 
players[32], numid
    get_players
(playersnum)
    for(--
numnum >= 0num--)
    {
        
id players[num]
        
reset_client(id)
        
log_amx("END")
    }

But I never see END in my console, I test it on local(new game) with bots. Why so and whats wrong?

Second thing, when someone is talking you can see his name in side of you screen with colors for teams, is there a way to alter these colors for specific players?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 08-18-2013 , 18:29   Re: plugin_end and talking name in side
Reply With Quote #2

Because when plugin_end is called, all players are disconnected from server. get_players returns zero players.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 08-19-2013 , 14:28   Re: plugin_end and talking name in side
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=189931
Quote:
Originally Posted by Exolent[jNr] View Post
Also, your message won't be seen in plugin_end() since the map is changing and it is called right before clients are disconnected and reconnected to the changed map.
Why would he lie? ;D

Also, any ideas about that name color?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 08-19-2013 , 15:34   Re: plugin_end and talking name in side
Reply With Quote #4

He told the same, just a little bit tricky.
plugin_end() should be the last forward called in plugin before map change or server shutdown.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)


Last edited by aaarnas; 08-19-2013 at 15:34.
aaarnas is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 08-21-2013 , 14:54   Re: plugin_end and talking name in side
Reply With Quote #5

How is that the same:
called right before clients are disconnected
and
plugin_end is called, all players are disconnected from server
?
Anyways, thats not the big problem I just wanted to know it for sure.
Can you give me any ideas about second question? Maybe by changing team offsets when pressing talk button, would that do anything? Haven't tested it yet, nor I can now, but it would be great gathering some ideas.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 08-24-2013 , 18:06   Re: plugin_end and talking name in side
Reply With Quote #6

Anyone?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 08-24-2013 , 18:11   Re: plugin_end and talking name in side
Reply With Quote #7

Quote:
Originally Posted by GuskiS View Post
Anyone?
As in your signature promoting nosteam community, also: http://heal.lv/users/4/guskis you're owner of no-steam community, hosting no-steam servers:

Quote:
meta list
Currently running plugins:
[ 1] AMX Mod X, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 2] dproto, v0.9.187, 2013-03-19, by Crock, see
[ 3] MySQL, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 4] Orpheu, v2.3, Mar 7 2010, by joaquimandrade, see http://forums.alliedmods.net/showthread.php?t=116393
[ 5] Fun, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 6] Engine, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 7] FakeMeta, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 8] CStrike, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 9] Ham Sandwich, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 10] CSX, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org/
10 plugins
[AMXX] [HEAL.LV] Demo recording has been started at 01:09:20
] status
hostname: Heal.lv | DeathRun
version : 48/1.1.2.6/Stdio 5787 insecure (10)
tcp/ip : 80.255.227.70:27015
map : deathrun_bieber at: 0 x, 0 y, 0 z
players : 17 active (21 max)

please don't request support here.

Last edited by seriousspot; 08-24-2013 at 18:12.
seriousspot is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 08-25-2013 , 04:23   Re: plugin_end and talking name in side
Reply With Quote #8

Removed, now I don't break any rules.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-25-2013 , 05:06   Re: plugin_end and talking name in side
Reply With Quote #9

If you call reset_client in client_disconnect, it should be ok.

Also, note that players are not disconnected in plugin_end, but amxx considers they are and sends client_disconnect forwards before plugin_end, so in plugin_end, get_players won't collect any players, is_user_connected won't return 1 with any players.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 15:55.


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