View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 05-02-2014 , 12:23   Re: [TF2] Cannot Call Medic
Reply With Quote #3

Quote:
Originally Posted by friagram View Post
Return plugin handled when they use voicemenu command 0 0 or whatever it is?
Code:
#pragma semicolon 1
public OnPluginStart()
{
	AddCommandListener(MedicHook, "voicemenu");
}
public Action:MedicHook(client, const String:cmd[], args)
{
	new String:arg1[2],
		String:arg2[2];
	GetCmdArg(1, arg1, sizeof(arg1));
	GetCmdArg(2, arg2, sizeof(arg2));

	if (StrEqual(arg1, "0") && StrEqual(arg2, "0"))
		return Plugin_Handled;

	return Plugin_Continue;
}
not tested
Mitchell is offline