TogglePlayerControllable - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TogglePlayerControllable (
/showthread.php?tid=641066)
TogglePlayerControllable -
Aylan - 10.09.2017
Hello.
I've been having a little trouble with TogglePlayerControllable; what I was aiming for was to use this command in order to freeze a player in order to test for bulletproof hacks. However, I'm having slight problems with it as for some reason, once TogglePlayerControllable is disabled, the player also becomes invincible too.
Is there any way to remove this invincibility? I've looked all over the forum and I can't seem to find anything that helps me.
Re: TogglePlayerControllable -
Eoussama - 10.09.2017
Can you share the code snippet, make it easier for us to help you out.
Re: TogglePlayerControllable -
whooper - 10.09.2017
AFAIK theres no way to toggle invincibility on/off for TogglePlayerControllable.
Re: TogglePlayerControllable -
aoky - 10.09.2017
You're probably changing the players virtual world, look for:
PHP код:
SetPlayerVirtualWorld
remove it if you can find it.
Re: TogglePlayerControllable -
Aylan - 10.09.2017
*REMOVED*
Here's the code, the timer is used to enable player controllable.
Re: TogglePlayerControllable -
aoky - 10.09.2017
Remove SetPlayerInterior
Re: TogglePlayerControllable -
Pottus - 10.09.2017
Quote:
Originally Posted by whooper
AFAIK theres no way to toggle invincibility on/off for TogglePlayerControllable.
|
Bullshit. It is possible to make your own custom damage system.
https://sampforum.blast.hk/showthread.php?tid=563387
Re: TogglePlayerControllable -
whooper - 10.09.2017
Quote:
Originally Posted by Pottus
|
Gotcha. Bit out of touch on this side of things. Just trying to help.