Raised This Month: $ Target: $400
 0% 

Request:!giveup plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fazhu23
New Member
Join Date: Mar 2012
Old 03-13-2012 , 13:55   Request:!giveup plugin
Reply With Quote #1

So, I'm trying to find a plugin for a vsh map that I play frequently on, and this is where the problem occurs. The list of the next player to be Hale is random after 2rounds, and it will stay in the order if nothing occurs. However if a player is the hale and does not want to be, the first thing they'll do is to switch team. While that does end the round, the next hale is messed up, it'll skip the next person that was suppose to be Hale and go on to the 2nd person. This is what we're looking for, some kind of plugin where they could type "!giveup, or !lose" or something along that line that has the effect of "explode" when in console in the chat box, so that the player that is Hale stays on team and the list is not messed for the next round. Any help would be appreciated!! Thanks
fazhu23 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-13-2012 , 15:31   Re: Request:!giveup plugin
Reply With Quote #2

Quote:
Originally Posted by fazhu23 View Post
So, I'm trying to find a plugin for a vsh map that I play frequently on, and this is where the problem occurs. The list of the next player to be Hale is random after 2rounds, and it will stay in the order if nothing occurs. However if a player is the hale and does not want to be, the first thing they'll do is to switch team. While that does end the round, the next hale is messed up, it'll skip the next person that was suppose to be Hale and go on to the 2nd person. This is what we're looking for, some kind of plugin where they could type "!giveup, or !lose" or something along that line that has the effect of "explode" when in console in the chat box, so that the player that is Hale stays on team and the list is not messed for the next round. Any help would be appreciated!! Thanks
PHP Code:
#pragma semicolon 1

#include <sourcemod>

public OnPluginStart() {
    
RegConsoleCmd("giveup"Command_Suicide);
    
RegConsoleCmd("lose"Command_Suicide);
}

public 
Action:Command_Suicide(clientargs) {
    
FakeClientCommand(client"explode");
    return 
Plugin_Handled;

!giveup or !lose in chat will make a client explode.
__________________
Dr. McKay is offline
fazhu23
New Member
Join Date: Mar 2012
Old 03-14-2012 , 15:43   Re: Request:!giveup plugin
Reply With Quote #3

Thank you for your help!! Greatly appreciated.
fazhu23 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 04:25.


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