AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   plugin_end and talking name in side (https://forums.alliedmods.net/showthread.php?t=223957)

GuskiS 08-18-2013 18:22

plugin_end and talking name in side
 
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?

aaarnas 08-18-2013 18:29

Re: plugin_end and talking name in side
 
Because when plugin_end is called, all players are disconnected from server. get_players returns zero players.

GuskiS 08-19-2013 14:28

Re: plugin_end and talking name in side
 
https://forums.alliedmods.net/showthread.php?t=189931
Quote:

Originally Posted by Exolent[jNr] (Post 1748955)
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?

aaarnas 08-19-2013 15:34

Re: plugin_end and talking name in side
 
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.

GuskiS 08-21-2013 14:54

Re: plugin_end and talking name in side
 
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.

GuskiS 08-24-2013 18:06

Re: plugin_end and talking name in side
 
Anyone?

seriousspot 08-24-2013 18:11

Re: plugin_end and talking name in side
 
Quote:

Originally Posted by GuskiS (Post 2020916)
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.

GuskiS 08-25-2013 04:23

Re: plugin_end and talking name in side
 
Removed, now I don't break any rules.

ConnorMcLeod 08-25-2013 05:06

Re: plugin_end and talking name in side
 
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.


All times are GMT -4. The time now is 15:55.

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