Raised This Month: $ Target: $400
 0% 

Swapteam - Donate plugin


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-02-2011 , 21:59   Re: Swapteam - Donate plugin
Reply With Quote #11

okay, good... because I'm going to use the new CS_DropWeapon and it requires SM 1.4

I need to do this because we're switching teams at the start of the round and if the player is a T and they have the bomb, they'll need to drop it

I might finish the code tonight, but I'm on a business trip and working on this laptop is a PITA!! might have to wait till tomorrow.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-02-2011 , 23:04   Re: Swapteam - Donate plugin
Reply With Quote #12

Okay... here's a new version 1.1a.

Only those players with CUSTOM6 access (or overridden with "allow_teamswap" in adminoverride) can use the commands - !teamswap or !stopteamswap

Players can only switch teams once per round. The switch will happen at the start of the round.
OLD CODE


Again, this can be compiled on the SourceMod web compiler - http://www.sourcemod.net/compiler.php

Also, being away from home, I'm unable to test functionality of this plugin... let me know if I need to fix anything

...:: TnT Edit ::...
See post 13 for latest code.

Last edited by TnTSCS; 11-04-2011 at 23:09.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-04-2011 , 23:12   Re: Swapteam - Donate plugin
Reply With Quote #13

I changed the command due to a conflict with AdvCommands plugin that uses the same command. New command is sm_swapteam or !swapteam

I added a notification to the VIP player when they join that they have access to the command. I had a PrintToChat that wasn't in the MessageClient so I fixed that too.

I tested it and it appears to work as expected. Let me know if you find something out of the ordinary

Version 1.1b code
Attached Files
File Type: sp Get Plugin or Get Source (teamswap.sp - 148 views - 5.6 KB)

Last edited by TnTSCS; 11-04-2011 at 23:14.
TnTSCS is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 11-05-2011 , 16:19   Re: Swapteam - Donate plugin
Reply With Quote #14

Hi, sorry I didin't responded I hadn't had much time latley.

Thanks for you hard work on this one! I'll let you know how it works.

Again, thanks!
Groger 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 13:36.


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