[Help (+REP)] OnPlayerClickPlayerTextDraw
#1

Hi Every Body
My Login And Register System Is With Textdraw But !
When Player's Mouse Is On Login Textdraw! Textdraw Will Be Green But The Register Textdraw Is Below The Login Textdraw And When Player's Mouse Is On The Register Textdraw Both Textdraw Will Be Green.
Some One Please Help !!! I Will Give Hem +Rep
This The All Code
pawn Код:
new PlayerText:TDLogin[MAX_PLAYERS];
new PlayerText:TDReg[MAX_PLAYERS];
//------------------------------
// In A Dialog
TextDrawShowForPlayer(playerid , UBConnect);
PlayerTextDrawSetSelectable(playerid,TDLogin[playerid], 1);
PlayerTextDrawSetSelectable(playerid,TDReg[playerid], 1);
SelectTextDraw(playerid, 0x008000AA);
PlayerTextDrawShow(playerid , TDLogin[playerid]);
PlayerTextDrawShow(playerid , TDReg[playerid]);
Reply
#2

TextDrawShowForPlayer(playerid , UBConnect);
PlayerTextDrawSetSelectable(playerid,TDLogin[playerid], 1);
PlayerTextDrawSetSelectable(playerid,TDReg[playerid], 1);
SelectTextDraw(playerid, 0x008000AA);
PlayerTextDrawShow(playerid , TDLogin[playerid]);
SelectTextDraw(playerid, (color u want));
PlayerTextDrawShow(playerid , TDReg[playerid]);


Try that out


EDIT: PS: dont post images on ur work in GTA people may copy it...
Reply
#3

Quote:
Originally Posted by GunZ75
Посмотреть сообщение
TextDrawShowForPlayer(playerid , UBConnect);
PlayerTextDrawSetSelectable(playerid,TDLogin[playerid], 1);
PlayerTextDrawSetSelectable(playerid,TDReg[playerid], 1);
SelectTextDraw(playerid, 0x008000AA);
PlayerTextDrawShow(playerid , TDLogin[playerid]);
SelectTextDraw(playerid, (color u want));
PlayerTextDrawShow(playerid , TDReg[playerid]);


Try that out


EDIT: PS: dont post images on ur work in GTA people may copy it...
Thanks. I Will Be Tested.
And Thanks About Don't Post Images, Next Time Tell Me What Do You Change.
Edit : Not Work
Reply
#4

No problem man
Reply
#5

Hum im sorry then but i dont know i never tried to change the color when u go with ur mouse hover it... Maybe u should just leave it like that i guess
Reply
#6

I know what's the problem. The Size of the Textdraw is Larger. First Off, when you're using Hover Colour, use Font 1 as it's the best size and all that...
Secondly, don't enlarge the Textdraws too much. Keep them simple, keep them small. If you still wanna make them big, then set the Hover Color to the colour of your TEXT.
Reply
#7

Do this dude these guys have absolutely no clue what they're talking about.

Turn on the box (Make sure you set the color to 0 so it doesn't show)
https://sampwiki.blast.hk/wiki/PlayerTextDrawUseBox

Set text textsize Y height this is the height of the clickable area
https://sampwiki.blast.hk/wiki/PlayerTextDrawTextSize
Reply
#8

Quote:
Originally Posted by JonathanW
Посмотреть сообщение
I know what's the problem. The Size of the Textdraw is Larger. First Off, when you're using Hover Colour, use Font 1 as it's the best size and all that...
Secondly, don't enlarge the Textdraws too much. Keep them simple, keep them small. If you still wanna make them big, then set the Hover Color to the colour of your TEXT.
Hi
Size Of 2 Textdraw Is 0.449999, 1.600000 And
I Use Font 1 And iPLEOMAX Textdraw Editor.
Reply
#9

This bug came to me too.When I used IPLEO To make my Counter Strike Sexy Class Menu.I fixed it by using Zacho Text Draw editor to make new text draws.Try that and tell me where it did work or not.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)