Raised This Month: $32 Target: $400
 8% 

TF2: Disable spy cloaking??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smity
Member
Join Date: May 2017
Old 05-02-2017 , 08:23   TF2: Disable spy cloaking??
Reply With Quote #1

i want to disable spy cloaking. so annoying! im working on deathrun maps! pls i need the plugin!
Smity is offline
XaH JoB
Junior Member
Join Date: Sep 2016
Old 05-02-2017 , 14:38   Re: TF2: Disable spy cloaking??
Reply With Quote #2

I didn't check it, so i don't know does it work.
Code:
#include <sourcemod>
#include <tf2>
#include <tf2_stocks>

#pragma semicolon 1
#pragma newdecls required
#pragma tabsize 0

public void OnPluginStart()
{
	HookEvent("teamplay_round_start", PreRoundStart);
}

public void PreRoundStart(Handle hEvent, char[] sName, bool bBroadcast)
{
	for (int i = 1; i <= MaxClients; i++)
	{
		if (IsPlayerAlive(i) && TF2_GetPlayerClass(i) == TFClass_Spy)
		{
			int cloak = GetPlayerWeaponSlot(i, 4);
			if (cloak != -1)
			{
				RemovePlayerItem(i, cloak);
				RemoveEdict(cloak);
			}
		}
	}
}
XaH JoB is offline
Smity
Member
Join Date: May 2017
Old 05-06-2017 , 04:33   Re: TF2: Disable spy cloaking??
Reply With Quote #3

dw. i already fix it. its because i have "advanced infinite ammo" on.
Smity 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 03:48.


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