[FilterScript] Spectating System
#13

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Nevermind, but you didn't understand that you can directly use Hook_LinkVehicleToInterior instead of hooking.

But, i wonder why would anyone check for vehicle interior ids, if the spectate system is based on players. What happens if i change the interiorid from my gamemode, your hooking is just trash. You don't need to store vehicles interiorids but only use GetPlayerInterior and OnPlayerInteriorChange.
Hook_LinkVehicleToInterior nor LinkVehicleToInterior is used in the filterscript, and whether Hook_LinkVehicleToInterior or LinkVehicleToInterior is used, it wouldn't make a difference, both do the same thing in the filterscript.

I thought it would be better to get the vehicle's interior ID as sometimes people set their vehicle in another interior to make the vehicle invisible, but as the hook cannot be set to work in a filterscript and a gamemode at the same time (without remote calling), I updated the code to use your suggestion.

I also added some other things. But in all intentions, I didn't want to make something complete out of this. I am more of a guy that wants others to try, meaning that I tend to create script-bases more often than giving people everything done when it comes to helping others.

I created this for a guy in the scripting help section and just thought I'd release it here. It's very simple, but if one needs it, another one might need it too.

Thank you.
Reply


Messages In This Thread
Spectating System - by Kevln - 31.10.2015, 08:34
Re: Spectating System - by Ritzy2K - 31.10.2015, 08:50
Re: Spectating System - by SecretBoss - 31.10.2015, 08:52
Re: Spectating System - by jlalt - 31.10.2015, 08:52
Re: Spectating System - by Kevln - 31.10.2015, 09:09
Re: Spectating System - by SecretBoss - 31.10.2015, 09:41
Re: Spectating System - by Kevln - 31.10.2015, 14:36
Re: Spectating System - by Kapersky™ - 31.10.2015, 14:54
Re: Spectating System - by SecretBoss - 31.10.2015, 14:56
Re: Spectating System - by ahameed4755 - 31.10.2015, 17:25
Re: Spectating System - by Kevln - 31.10.2015, 23:07
Re: Spectating System - by Gammix - 01.11.2015, 01:37
Re: Spectating System - by Kevln - 01.11.2015, 03:04
Re: Spectating System - by Gammix - 01.11.2015, 03:54
Re: Spectating System - by Kevln - 01.11.2015, 04:29
Re: Spectating System - by SecretBoss - 01.11.2015, 08:55
Re: Spectating System - by DrMrMuma - 01.11.2015, 10:49
Re: Spectating System - by Kevln - 01.11.2015, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)