Raised This Month: $ Target: $400
 0% 

[ANY MOD] SwapTeam v1.2.6 (Updated 30/09/12)


Post New Thread Reply   
 
Thread Tools Display Modes
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 09-01-2010 , 07:08   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #31

I got bored, started bashing my keyboard and magically an update appeared

v1.2.3 released, see first page for change log.
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 09-02-2010 , 03:21   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #32

Good to see this plugin updated.

You should change the command sm_spec to something like sm_spect or something, cause the other plugin is already using such command.

See my previous post: #29.

So when You type /spec <nick> in the chat it will exec two commands at the same time, which are mutually excluding themselfs.
GrO is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 09-02-2010 , 04:35   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #33

I am aware there is a clash and have tried to take it up with the author in the past however we are both unwilling to change lol.

I won't be changing my command, since it is replicating Mani Admin Plugin. You are welcome to edit the source of either plugins and change the command then recompile if you like.
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 09-02-2010 , 07:07   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #34

I see... Thanks for clearing up this unclear situation ^^.
GrO is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 09-06-2010 , 07:46   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #35

bobbobagan, could You make a support for SM's group prefixes (@all, @ct, @t etc.) ?

I.E.:

sm_spec @all

It would be very useful.
__________________
GrO is offline
Viper_Vicki
AlliedModders Donor
Join Date: Sep 2005
Location: USA
Old 09-10-2010 , 18:53   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #36

I run an empiresmod server and the plugin works on swapping teams but when we swap to spectate it crashes the server. Can it be fixed please?

Thank you
__________________
[VIPER]_Vicki

Viper_Vicki is offline
ffcfoo
Junior Member
Join Date: Oct 2009
Old 09-24-2010 , 03:31   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #37

So this no longer works? It crashes the server every time I move someone.

EDIT: Nvm I didn't read the whole post xD.

EDIT: Nope even with the new gamedata file it still crashes.
__________________

Last edited by ffcfoo; 09-24-2010 at 03:40.
ffcfoo is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 09-24-2010 , 08:20   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #38

ffcfoo: Unless this quit working some time in the last 24 hours, it is still working.

I use it on a regular basis. I used it probably 11 hours ago.
Mister_Magotchi is offline
krolus
Senior Member
Join Date: May 2009
Location: Russia, Omsk
Old 09-26-2010 , 10:25   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #39

I have 2 several suggestions:
1) remove PrintToChatAll(...,"ts switch by admin") in PerformSwitch() , there is no need to tell twice about teamchanging
2) hook event 'player_team' and set param 'silent' to 'true' if player's team was changed by plugin
PHP Code:
new bool:g_SwitchedByPlugin[MAXPLAYERS+1];

public 
OnPluginStart()
{
    
//cvar and other stuff
    
HookEvent("player_team",    Event_PlayerTeamEventHookMode_Pre);
    
//another stuff :)
}

public 
Action:Event_PlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client     GetClientOfUserId(GetEventInt(event"userid"));
    
    if (
client && g_SwitchedByPlugin[client]){
        
SetEventBool(event"silent"true);
        
g_SwitchedByPlugin[client] = false;
    }
    return 
Plugin_Changed;
}

void:PerformSwitch(clientbool:toSpec false)
{
    
g_SwitchedByPlugin[client] = true;
    
//other stuff

3) Use params in translation files
4) remove 'colour' variable, use CPrintToChat from [INC] Colors instead
__________________
kAmmomod is deprecated. Take a look at MGE Training

Last edited by krolus; 09-26-2010 at 10:48.
krolus is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 09-27-2010 , 01:54   Re: [ANY MOD] SwapTeam v1.2.3
Reply With Quote #40

Quote:
Originally Posted by ffcfoo View Post
So this no longer works? It crashes the server every time I move someone.

EDIT: Nvm I didn't read the whole post xD.

EDIT: Nope even with the new gamedata file it still crashes.
It is working fine for me on Windows Source Dedicated Server. Are you using Windows or Linux? What game are you running?


@ krolus: Thanks for the suggestions, I shall make the changes for the next release
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
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 13:43.


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