View Single Post
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 02-20-2018 , 15:12   Re: [TF2] Add a plugin to disable cloaking or disguising as spy?
Reply With Quote #5

Quote:
Originally Posted by timtam95 View Post
::
That plugin won't work since you hooked player_spawn instead of post_inventory_application.

post_inventory_application is called when the player touches resupply or receives a new set of weapons. The player hasn't received the weapons with the player_spawn event yet. Furthermore, since you are only attempting to remove the weapons on spawn, this means that if they touch resupply they will receive the weapons again. Also, I would recommend reading up on the new syntax. Here is a fixed version with the updated syntax. You also defined includes that aren't even used in the plugin.

Oh yeah, another tip, if the plugin doesn't use custom includes (ones that don't come with sourcemod), only upload the .sp file as it will compile on the forums.
Attached Files
File Type: sp Get Plugin or Get Source (nocloakordisguise.sp - 269 views - 934 Bytes)

Last edited by ThatKidWhoGames; 02-20-2018 at 15:15.
ThatKidWhoGames is offline