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

[CS:S/CS:GO] Jailbreak Warden


Post New Thread Reply   
 
Thread Tools Display Modes
ecca
Sexy Santa
Join Date: Jan 2011
Old 08-20-2014 , 10:52   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #171

It's in the zip file ?
__________________
ecca is offline
karnage60
New Member
Join Date: Sep 2014
Location: France
Old 09-30-2014 , 21:00   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #172

Hi, would it be possible to have a menu instead of writing !warden
karnage60 is offline
Meitis
Member
Join Date: Jan 2014
Old 10-01-2014 , 18:02   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #173

And when should that menu open? When you type something like !w? Or just as soon as you spawn as CT?

Last edited by Meitis; 10-01-2014 at 18:02.
Meitis is offline
karnage60
New Member
Join Date: Sep 2014
Location: France
Old 10-01-2014 , 20:47   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #174

just as soon as you spawn as CT, like that :

You want to become warden ?
-Yes
-No
karnage60 is offline
SlayeRbe
SourceMod Donor
Join Date: Mar 2011
Location: Belgium
Old 01-03-2015 , 16:08   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #175

Change the color of [Warden] and your name color. please.
SlayeRbe is offline
Darkness_
Veteran Member
Join Date: Nov 2014
Old 01-03-2015 , 20:17   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #176

Quote:
Originally Posted by karnage60 View Post
just as soon as you spawn as CT, like that :

You want to become warden ?
-Yes
-No
PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontbroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
    if (
GetClientTeam(client) == 3)
    {
        
ShowMenu(client);
    }
}

ShowMenu(client)
{
    if (!
IsClientInGame(client))
        return;
        
    new 
Handle:MenuHandle CreateMenu(WardenMenu);
    
SetMenuTitle(MenuHandle"Do you want to be Warden? \n");
    
AddMenuItem(MenuHandle"Yes""Yes");
    
AddMenuItem(MenuHandle"No""No");
    
    
DisplayMenu(MenuHandleclient15);
}

public 
WardenMenu(Handle:menuMenuAction:actionclientoption)
{
    switch (
action)
    {
        case 
MenuAction_Select:
        {
            new 
String:info[64];
            
GetMenuItem(menuoptioninfosizeof(info));
            if (
StrEqual(info"Yes"))
            {
                
FakeClientCommand(client"sm_warden");
            }
        }
        case 
MenuAction_End:
        {
            
CloseHandle(menu);
        }
    }

Attached Files
File Type: sp Get Plugin or Get Source (wmenu.sp - 324 views - 989 Bytes)
File Type: smx wmenu.smx (3.5 KB, 128 views)

Last edited by Darkness_; 01-05-2015 at 15:24.
Darkness_ is offline
SlayeRbe
SourceMod Donor
Join Date: Mar 2011
Location: Belgium
Old 01-05-2015 , 12:34   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #177

Can you maybe put everything in a .smx file pls so we just can download it??
SlayeRbe is offline
Wahsu
Junior Member
Join Date: Dec 2014
Old 01-10-2015 , 22:44   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #178

Quote:
Originally Posted by Darkness_ View Post
PHP Code:
#include <sourcemod>

public OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontbroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
    if (
GetClientTeam(client) == 3)
    {
        
ShowMenu(client);
    }
}

ShowMenu(client)
{
    if (!
IsClientInGame(client))
        return;
        
    new 
Handle:MenuHandle CreateMenu(WardenMenu);
    
SetMenuTitle(MenuHandle"Do you want to be Warden? \n");
    
AddMenuItem(MenuHandle"Yes""Yes");
    
AddMenuItem(MenuHandle"No""No");
    
    
DisplayMenu(MenuHandleclient15);
}

public 
WardenMenu(Handle:menuMenuAction:actionclientoption)
{
    switch (
action)
    {
        case 
MenuAction_Select:
        {
            new 
String:info[64];
            
GetMenuItem(menuoptioninfosizeof(info));
            if (
StrEqual(info"Yes"))
            {
                
FakeClientCommand(client"sm_warden");
            }
        }
        case 
MenuAction_End:
        {
            
CloseHandle(menu);
        }
    }

this is something I am glad to have.

Could it be revised so that when all players hit no a random player will recieve warden, when a warden dies the menu is brought back up, and when the round starts or the warden dies a random warden is picked after 20 seconds if no one has claimed warden? will pay $5-$7 if someone would.
Wahsu is offline
etox
Junior Member
Join Date: Oct 2014
Old 02-12-2015 , 10:15   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #179

Does warden support colors? Some reason it wont work for me
etox is offline
Robin955
Veteran Member
Join Date: Jun 2013
Old 03-23-2015 , 16:03   Re: [CS:S/CS:GO] Jailbreak Warden
Reply With Quote #180

seems download was removed. the github one.

someone still has this? i had this before but had to reinstall
Robin955 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 06:42.


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