Raised This Month: $ Target: $400
 0% 

TK Manager to CSGO !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bibby
Member
Join Date: Sep 2012
Location: Sweden
Old 11-20-2012 , 14:41   TK Manager to CSGO !
Reply With Quote #1

I wonder when you guys should do a plugin to CSGO since is been a long time after itīs release...

TK Manager is needed on almost every public servers so please hurry up !
Bibby is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 11-20-2012 , 14:45   Re: TK Manager to CSGO !
Reply With Quote #2

You posted in a wrong section, besides isn't there already some tk manager working with csgo?
Check these: http://www.sourcemod.net/plugins.php...tion=&search=1
__________________
Impossible is Nothing
Sylwester is offline
Bibby
Member
Join Date: Sep 2012
Location: Sweden
Old 11-20-2012 , 14:46   Re: TK Manager to CSGO !
Reply With Quote #3

nope non is working for CSGO..
Bibby is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-20-2012 , 16:42   Re: TK Manager to CSGO !
Reply With Quote #4

Dang it, I tried moving it to the right section but selected the wrong one. Hopefully someone else will move it again. Sorry

EDIT: And I can't type today... Or read.......
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 11-20-2012 at 16:57.
YamiKaitou is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-20-2012 , 16:44   Re: TK Manager to CSGO !
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
Dang it, I tried moving it to the right section but selected the wrong one. Hopefully someone else will move it again. Sorry
__________________
asherkin is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 11-20-2012 , 17:54   Re: TK Manager to CSGO !
Reply With Quote #6

this will mitigate friendly fire in all source-based games that support sdkhooks.
Attached Files
File Type: sp Get Plugin or Get Source (noff.sp - 571 views - 1.1 KB)
File Type: smx noff.smx (2.5 KB, 226 views)
Skyy is offline
Bibby
Member
Join Date: Sep 2012
Location: Sweden
Old 11-21-2012 , 04:42   Re: TK Manager to CSGO !
Reply With Quote #7

Quote:
Originally Posted by Skyy View Post
this will mitigate friendly fire in all source-based games that support sdkhooks.
I donīt wanna use that addon, this does just so you canīt shoot your teammate.
If I like to have friendly fire off I just do this in server.cfg

mp_friendlyfire 0



But I wanna have

mp_friendlyfire 1

so you can shoot your teammate but if you shoot your teammate down and he dies he gets a menu he can choose from.

like Burn, blind or take cash !
Bibby is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 11-21-2012 , 05:06   Re: TK Manager to CSGO !
Reply With Quote #8

I had something like this for gungame:

Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>

new String:KillerList[MAXPLAYERS+1][MAX_NAME_LENGTH+1];
new String:VictimList[MAXPLAYERS+1][MAX_NAME_LENGTH+1];
new KilledBy[MAXPLAYERS+1];

public PlayerDeathEvent(Handle:event, const String:name[], bool:dontBroadcast)
{
	new victim = GetClientOfUserId(GetEventInt(event,"userid"));
	new killer = GetClientOfUserId(GetEventInt(event,"attacker"));
	GetClientName(killer, KillerList[victim], sizeof(KillerList[]));
	GetClientName(victim, VictimList[victim], sizeof(VictimList[]));
	KilledBy[victim] = killer;
	if(victim > 0 && victim <= MaxClients && killer > 0 && killer <= MaxClients && GetClientTeam(victim) == GetClientTeam(killer) && victim != killer && !IsFakeClient(victim))
	{
		doTKMenu(victim);
	}
}

public doTKMenu(victim)
{
	decl String:menuTitle[64];
	Format(menuTitle, sizeof(menuTitle), "You were killed by %s, choose an action:", KillerList[victim]);
	new Handle:menu = CreateMenu(handleTKVoteMenu);
	SetMenuTitle(menu, menuTitle);
	AddMenuItem(menu, "0", "Forgive");
	AddMenuItem(menu, "1", "Firebomb");
	AddMenuItem(menu, "2", "Slay");
	DisplayMenu(menu, victim, MENU_TIME_FOREVER);
}

public handleTKVoteMenu(Handle:menu, MenuAction:action, param1, param2) 
{
	if (action == MenuAction_End) 
	{
		CloseHandle(menu);
	}
	else if (action == MenuAction_Select)
	{
		if(param2 == 0)
			PrintToChatAll("%s has forgiven %s for team killing", VictimList[param1], KillerList[param1]);
		else if(param2 == 1)
		{
			IgniteEntity(KilledBy[param1], 15.0);
		}
		else if(param2 == 2)
		{
			ForcePlayerSuicide(KilledBy[param1]);
		}
	}
}
etc.
__________________

Last edited by Sheepdude; 11-21-2012 at 05:26.
Sheepdude is offline
Bibby
Member
Join Date: Sep 2012
Location: Sweden
Old 11-21-2012 , 05:38   Re: TK Manager to CSGO !
Reply With Quote #9

Quote:
Originally Posted by Sheepdude View Post
I had something like this for gungame:

Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>

new String:KillerList[MAXPLAYERS+1][MAX_NAME_LENGTH+1];
new String:VictimList[MAXPLAYERS+1][MAX_NAME_LENGTH+1];
new KilledBy[MAXPLAYERS+1];

public PlayerDeathEvent(Handle:event, const String:name[], bool:dontBroadcast)
{
	new victim = GetClientOfUserId(GetEventInt(event,"userid"));
	new killer = GetClientOfUserId(GetEventInt(event,"attacker"));
	GetClientName(killer, KillerList[victim], sizeof(KillerList[]));
	GetClientName(victim, VictimList[victim], sizeof(VictimList[]));
	KilledBy[victim] = killer;
	if(victim > 0 && victim <= MaxClients && killer > 0 && killer <= MaxClients && GetClientTeam(victim) == GetClientTeam(killer) && victim != killer && !IsFakeClient(victim))
	{
		doTKMenu(victim);
	}
}

public doTKMenu(victim)
{
	decl String:menuTitle[64];
	Format(menuTitle, sizeof(menuTitle), "You were killed by %s, choose an action:", KillerList[victim]);
	new Handle:menu = CreateMenu(handleTKVoteMenu);
	SetMenuTitle(menu, menuTitle);
	AddMenuItem(menu, "0", "Forgive");
	AddMenuItem(menu, "1", "Firebomb");
	AddMenuItem(menu, "2", "Slay");
	DisplayMenu(menu, victim, MENU_TIME_FOREVER);
}

public handleTKVoteMenu(Handle:menu, MenuAction:action, param1, param2) 
{
	if (action == MenuAction_End) 
	{
		CloseHandle(menu);
	}
	else if (action == MenuAction_Select)
	{
		if(param2 == 0)
			PrintToChatAll("%s has forgiven %s for team killing", VictimList[param1], KillerList[param1]);
		else if(param2 == 1)
		{
			IgniteEntity(KilledBy[param1], 15.0);
		}
		else if(param2 == 2)
		{
			ForcePlayerSuicide(KilledBy[param1]);
		}
	}
}
etc.
yeah this one is perfect!! is this for csgo ?

can you do

.smx
.sp



files to this addon ? and Cvarlist if there is any ;)

Iīm a little noob ! ;)

Last edited by Bibby; 11-21-2012 at 05:41.
Bibby is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 11-21-2012 , 06:04   Re: TK Manager to CSGO !
Reply With Quote #10

Um, I guess if you give me a list of all the punishment options you want, I'll make it for you.
__________________
Sheepdude 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:21.


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