TogglePlayerControllable and cursor use
#1

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?
Reply
#2

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

on you skin command or whatever add

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

global text:

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

PHP код:
PlayerTextDrawSetSelectable(playeridPlayerText:textset); 
Reply
#4

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

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

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

global text:

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

PHP код:
PlayerTextDrawSetSelectable(playeridPlayerText:textset); 
Thanks, that's what i was looking for.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)