SA-MP Forums Archive
TogglePlayerControllable and cursor use - 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 and cursor use (/showthread.php?tid=651613)



TogglePlayerControllable and cursor use - Kampott - 23.03.2018

I'm trying to make skin selection using textdraws, i have my player freezed (toggle player controllable), and when i do so, i can't use my cursor to select textdraws. How can i fix this problems?


Re: TogglePlayerControllable and cursor use - FaLLenGirL - 23.03.2018

You must use "TogglePlayerSpectating( playerid, true );", not: "TogglePlayerControllable( playerid, true );"
Also you must set your camera to a new location that you want.


Re: TogglePlayerControllable and cursor use - Lokii - 23.03.2018

on you skin command or whatever add

PHP код:
SelectTextDraw(playerid, hovercolor); 
make sure you also made the td selectable it self

global text:

PHP код:
TextDrawSetSelectable(Text:text, set); 
player text:

PHP код:
PlayerTextDrawSetSelectable(playerid, PlayerText:text, set); 



Re: TogglePlayerControllable and cursor use - Kampott - 23.03.2018

Nope, that doesn't help. it just sends me into the air, even if i set after that the camera location.


Re: TogglePlayerControllable and cursor use - Kampott - 23.03.2018

Quote:
Originally Posted by Lokii
Посмотреть сообщение
on you skin command or whatever add

PHP код:
SelectTextDraw(playerid, hovercolor); 
make sure you also made the td selectable it self

global text:

PHP код:
TextDrawSetSelectable(Text:text, set); 
player text:

PHP код:
PlayerTextDrawSetSelectable(playerid, PlayerText:text, set); 
Thanks, that's what i was looking for.