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

Can't teamswap dead players


Post New Thread Reply   
 
Thread Tools Display Modes
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-07-2022 , 14:21   Re: Can't teamswap dead players
Reply With Quote #11

Quote:
Originally Posted by Natsheh View Post
use the same amxx compiler version as your amxx mod in your server.
also use the latest amxx version which is 1.10 or 1.9
I think I am.
I downloaded the latest stable from: https://www.amxmodx.org/snapshots.php
It must have the latest version right?
I am running this and compiling with this.

Thanks for responding.

Last edited by GoldNux; 11-07-2022 at 14:22.
GoldNux is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-07-2022 , 14:51   Re: Can't teamswap dead players
Reply With Quote #12

Quote:
Originally Posted by GoldNux View Post
I think I am.
I downloaded the latest stable from: https://www.amxmodx.org/snapshots.php
It must have the latest version right?
I am running this and compiling with this.

Thanks for responding.
nah that an old dev build.

here's the latest builds of 1.10
https://www.amxmodx.org/downloads-new.php?branch=master
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-08-2022 , 11:34   Re: Can't teamswap dead players
Reply With Quote #13

Quote:
Originally Posted by Natsheh View Post
nah that an old dev build.

here's the latest builds of 1.10
https://www.amxmodx.org/downloads-new.php?branch=master
Ok I see thanks a lot.
Unfortunately it still does not work.

I downloaded the latest version for windows from your link.
I replaced the .dll in amxmodx/dlls
I replaced all three compile files in amxmodx/scripting
I am sure visual studio code is using that compiler.
I download the latest version for linux from your link. (same version as I used for linux not newer)
I replaced the amxmodx_mm_i386.so file on the server.
I then compiled the plugin on my windows machine and transferred the amxx plugin to the linux server.

The plugin loads, but dead people are not transferred.
I tried calling the plugin from these three events like I mentioned before.
Not at the same time ofc.

PHP Code:
    register_event("SendAudio""SwapTeams""a""2&%!MRAD_terwin")
    
register_event("SendAudio""SwapTeams""a""2&%!MRAD_ctwin"
PHP Code:
    register_logevent("SwapTeams"2"1=Round_End"
I did this to make sure there was no issue with testing only with one player.
I have also tried with two players and it still does not transfer dead players..

Not sure where to go from here.
I think I will try a single plugin that only transfer dead players to see if there is something else in my code that fuck things up.

Last edited by GoldNux; 11-08-2022 at 11:34.
GoldNux is offline
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-08-2022 , 11:46   Re: Can't teamswap dead players
Reply With Quote #14

Ok so I compiled this plugin and it does not work at all.
Not even on alive players now...

Is it the only running plugin right now so it cant be interference..
Maybe I installed the compiler or mod wrong, please check my last comment.

PHP Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    
//register_event("SendAudio", "Event_WinT", "a", "2&%!MRAD_terwin")
    //register_event("SendAudio", "Event_WinCT", "a", "2&%!MRAD_ctwin")
    
register_logevent("SwapTeams"2"1=Round_End"// I tried all three events..
}

public 
SwapTeams()
{
    new 
players[32];
    new 
playercount;
    
get_players(playersplayercount"h");
    
    new 
iid
    
for (i=0i<playercounti++)
    {
        
id players[i]

        if (
cs_get_user_team(id) != CS_TEAM_SPECTATOR && cs_get_user_team(id) != CS_TEAM_UNASSIGNED// You also check if he hasn't chosen any team yet, ie "unassigned".
        
{
            
cs_set_user_team(id, (cs_get_user_team(id) == CS_TEAM_T) ? CS_TEAM_CT CS_TEAM_T)
        }
    }


Last edited by GoldNux; 11-08-2022 at 11:46.
GoldNux is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-08-2022 , 12:09   Re: Can't teamswap dead players
Reply With Quote #15

That's weird i tested the code and it worked pretty fine are you sure you've the plugin installed correctly ?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-09-2022 , 12:08   Re: Can't teamswap dead players
Reply With Quote #16

Quote:
Originally Posted by Natsheh View Post
That's weird i tested the code and it worked pretty fine are you sure you've the plugin installed correctly ?
Ok so I re-installed the entire server with steamcmd.
Downloaded and installed amxmodx and metamod. (The latest version from the list you provided that supports both windows and linux)
Checked in console:

PHP Code:
meta version
Metamod v1.20  2013
-02-16 (5:13)
by Will Day <willday@metamod.org>
   
http://www.metamod.org/
compiledFeb 16 201317:11:35 +0100 (optimized)
ifvers5:13
Unknown command
meta
amxx version
AMX Mod X 1.10.0.5461
Authors

         
David "BAILOPAN" AndersonPavol "PM OnoTo" MarkoFelix "SniperBeamer" Geyer
         Jonny 
"Got His Gun" BergstromLukasz "SidLuke" Wlasinski
         Christian 
"Basic-Master" HammacherBorja "faluco" Ferrer
         Scott 
"DS" Ehlert
Compiled
Dec  5 202118:40:07
URL
:http://www.amxmodx.org/
Core modeJIT 
When I run the tiny plugin you tried, using round end event it does not move players.
The only trace from the plugin is that when you switch team as T or CT you just get thrown back to the same team after your corpse switch skin once.

Running it with the ctwin or twin sound as event, it does not work at all.
I am so fucking confused.

The only idea I have is that I somehow "installed" the compiler wrong.
I simply replaced these files in the scripting folder with the version used on the server. (AMX Mod X 1.10.0.5461)

amxxpc
amxxpc.exe
amxxpc32.dll

I placed these in the scripting folder on my windows machine.
My visual studio code is set to use the compiler in that folder.

Am I doing that part right??
Thanks for your replies.

edit: I tried doing a clean install on my windows machine where I compile the plugin.
No difference...
This is the last part that needs to be working in my big plugin.

Last edited by GoldNux; 11-09-2022 at 12:21.
GoldNux is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-09-2022 , 12:38   Re: Can't teamswap dead players
Reply With Quote #17

show amxx plugins

and you can use latest meta mod version

Code:
Metamod v1.21p38  2018/02/11 (5:13)
by Will Day
   http://www.metamod.org/
 Patch: Metamod-P (mm-p) v38
 by Jussi Kivilinna
    http://metamod-p.sourceforge.net/
compiled: Feb 11 2018, 11:05:06 EET (optimized)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-09-2022 at 12:39.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-09-2022 , 12:48   Re: Can't teamswap dead players
Reply With Quote #18

Quote:
Originally Posted by Natsheh View Post
show amxx plugins

and you can use latest meta mod version

Code:
Metamod v1.21p38  2018/02/11 (5:13)
by Will Day
   http://www.metamod.org/
 Patch: Metamod-P (mm-p) v38
 by Jussi Kivilinna
    http://metamod-p.sourceforge.net/
compiled: Feb 11 2018, 11:05:06 EET (optimized)
I'm confused, would it not be a good idea to keep the latest version of amxmodx on the https://www.amxmodx.org/downloads.php site?
And the same with metamod, where can I find the latest version if not http://metamod.org/?

I must be an idiot.
Where can I find it?

PHP Code:
rcon amxx plugins
Currently loaded plugins
:
       
id  name                    version     author            url                              file         status   
 
[  10   unknown                 unknown     unknown           unknown                          spawntest.a  running  
 
[  21   Admin Base              1.10.0.546  AMXX Dev Team                                      admin.amxx   running  
 
[  32   Admin Commands          1.10.0.546  AMXX Dev Team                                      admincmd.am  running  
 
[  43   Admin Help              1.10.0.546  AMXX Dev Team                                      adminhelp.a  running  
 
[  54   Slots Reservation       1.10.0.546  AMXX Dev Team                                      adminslots.  running  
 
[  65   Multi-Lingual System    1.10.0.546  AMXX Dev Team                                      multilingua  running  
 
[  76   Menus Front-End         1.10.0.546  AMXX Dev Team                                      menufront.a  running  
 
[  87   Commands Menu           1.10.0.546  AMXX Dev Team                                      cmdmenu.amx  running  
 
[  98   Players Menu            1.10.0.546  AMXX Dev Team                                      plmenu.amxx  running  
 
109   Maps Menu               1.10.0.546  AMXX Dev Team                                      mapsmenu.am  running  

 
1110  Plugin Menu             1.10.0.546  AMXX Dev Team                                      pluginmenu.  running  
 
1211  Admin Chat              1.10.0.546  AMXX Dev Team                                      adminchat.a  running  
 
1312  Anti Flood              1.10.0.546  AMXX Dev Team                                      antiflood.a  running  
 
1413  Scrolling Message       1.10.0.546  AMXX Dev Team                                      scrollmsg.a  running  
 
1514  InfoMessages          1.10.0.546  AMXX Dev Team                                      imessage.am  running  
 
1615  Admin Votes             1.10.0.546  AMXX Dev Team                                      adminvote.a  running  
 
1716  NextMap                 1.10.0.546  AMXX Dev Team                                      nextmap.amx  running  
 
1817  Nextmap Chooser         1.10.0.546  AMXX Dev Team                                      mapchooser.  running  
 
1918  TimeLeft                1.10.0.546  AMXX Dev Team                                      timeleft.am  running  
 
2019  Pause Plugins           1.10.0.546  AMXX Dev Team                                      pausecfg.am  running  
 
2120  Stats Configuration     1.10.0.546  AMXX Dev Team                                      statscfg.am  running  
21 plugins
21 running 
GoldNux is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-09-2022 , 12:57   Re: Can't teamswap dead players
Reply With Quote #19

You can find latest meta mod over here.

http://metamod-p.sourceforge.net/

Amxmodx project was long time dropped due the loose in the interest and people just moved on with their lives, most of amxx moderators are highly inactive and inaddition for the goldsrc engine to almost impossiblely to get updates and fixes.

even though most of the goldsrc games are purchasable instead they should be for free for the bugs the engine have and the lack of updates.

Most of the recent amxmodx updates are unofficial.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-09-2022 at 13:12.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
GoldNux
Senior Member
Join Date: Mar 2018
Old 11-09-2022 , 13:16   Re: Can't teamswap dead players
Reply With Quote #20

Quote:
Originally Posted by Natsheh View Post
You can find latest meta mod over here.

http://metamod-p.sourceforge.net/

Amxmodx project was long time dropped due the loose in the interest and people just moved on with their lives, most of amxx moderators are highly inactive and inaddition for the goldsrc engine to almost impossiblely to get updates and fixes.

even though most of the goldsrc games are purchasable instead they should be for free for the bugs the engine have and the lack of updates.

Most of the recent amxmodx updates are unofficial.
I see!
I downloaded the same version of meta mod for both the linux server and windows compile machine.
Installed these by changing the dll and so file.
Compiled plugin, transferred it and restarted the server.

Situation changed, now if I kill myself I get transferred.
If I change team I just pop back to the same team after skin switches once.

What's new now is that when the bomb kills me my corpse switches skin once.
That's all that happens.

This is the version output:

PHP Code:
rcon amxx version
AMX Mod X 1.10.0.5461 
(http://www.amxmodx.org)
Authors:
    
David "BAILOPAN" AndersonPavol "PM OnoTo" Marko
    Felix 
"SniperBeamer" GeyerJonny "Got His Gun" Bergstrom
    Lukasz 
"SidLuke" WlasinskiChristian "Basic-Master" Hammacher
    Borja 
"faluco" FerrerScott "DS" Ehlert
Compiled
Dec  6 2021 10:40:01
Built from
https://github.com/alliedmodders/amxmodx/commit/ec82e3f
Build ID5461:ec82e3f
Core mode
JIT+ASM32

meta version
Metamod v1.21p37  2013
/05/30 (5:13)
by Will Day
   http
://www.metamod.org/
 
PatchMetamod-(mm-pv37
 by Jussi Kivilinna
    http
://metamod-p.sourceforge.net/
compiledMay 30 201311:41:16 EET (optimized)
ifvers5:13
Unknown command
meta 
This is the plugin that is running alone:
PHP Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    
//register_event("SendAudio", "Event_WinT", "a", "2&%!MRAD_terwin")
    //register_event("SendAudio", "Event_WinCT", "a", "2&%!MRAD_ctwin")
    
register_logevent("SwapTeams"2"1=Round_End"
}

public 
SwapTeams()
{
    new 
players[32];
    new 
playercount;
    
get_players(playersplayercount"h");
    
    new 
iid
    
for (i=0i<playercounti++)
    {
        
id players[i]

        if (
cs_get_user_team(id) != CS_TEAM_SPECTATOR && cs_get_user_team(id) != CS_TEAM_UNASSIGNED// You also check if he hasn't chosen any team yet, ie "unassigned".
        
{
            
cs_set_user_team(id, (cs_get_user_team(id) == CS_TEAM_T) ? CS_TEAM_CT CS_TEAM_T)
        }
    }

GoldNux 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 12:28.


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