#5

Quote:
Originally Posted by Grim_
Посмотреть сообщение
There is no native function for that. However, you can make one yourself.

Simply hook the function TogglePlayerControllable, and depending on the result, set a variable for the player. Then you can make a custom function "GetPlayerToggleControllable" to return that variable.

This thread would help you with hooking the function: https://sampforum.blast.hk/showthread.php?tid=187195

EDIT:

@Hayden: He's trying to get the toggle, not set it.
oh crap, didn't read the question properly.
Reply


Messages In This Thread
Get? - by Bogdanovic - 03.11.2010, 08:02
Re: Get? - by Haydz - 03.11.2010, 08:06
Re: Get? - by Grim_ - 03.11.2010, 08:07
Re: Get? - by Retardedwolf - 03.11.2010, 08:09
Re: Get? - by Haydz - 03.11.2010, 08:10
Re: Get? - by Grim_ - 03.11.2010, 08:11
Re: Get? - by Retardedwolf - 03.11.2010, 08:12
Re: Get? - by Simon - 03.11.2010, 08:17
Re: Get? - by Grim_ - 03.11.2010, 08:17
Re: Get? - by Bogdanovic - 03.11.2010, 08:18

Forum Jump:


Users browsing this thread: 9 Guest(s)