// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#include <zcmd> new PlayerText:Textdraw0[MAX_PLAYERS];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Blank Filterscript by your name here\");print(\"--------------------------------------\\n\");return 1;}public OnPlayerConnect(playerid){ Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 492.073242, 105.916679, \"usebox\");PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 27.912942);PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000);PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);PlayerTextDrawSetSelectable(playerid, Textdraw0[playerid], true);PlayerTextDrawShow(playerid,Textdraw0[playerid]);return 1;}public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){ if(playertextid == Textdraw0[playerid]) {SendClientMessage(playerid,-1,\"asdasdasd\");CancelSelectTextDraw(playerid);}return 1;}CMD:cz(playerid){ SelectTextDraw(playerid, 0xFF4040AA);return 1;}public OnFilterScriptExit(){return 1;}
először legyen a PlayerTextDrawShow, és csak utána a PlayerTextDrawSetSelectable
PlayerTextDrawSetSelectable MUST be used BEFORE the textdraw is shown to the player.[/quote]http://wiki.sa-mp.com/wiki/PlayerTextDrawTextSize This function defines the clickable area for use with PlayerTextDrawSetSelectable, whether a box is shown or not. [/quote]Nálad a kódban így néz ki: PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000); a 2. paraméter 0...ezt próbáld meg növelni...
This function defines the clickable area for use with PlayerTextDrawSetSelectable, whether a box is shown or not. [/quote]Nálad a kódban így néz ki: PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000); a 2. paraméter 0...ezt próbáld meg növelni...
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 159.671325, 0.000000);
LoginButton[playerid] = CreatePlayerTextDraw(playerid, 322.409973, 282.333312, \"Bejelentkezés\");PlayerTextDrawLetterSize(playerid, LoginButton[playerid], 0.425000, 1.541666);PlayerTextDrawAlignment(playerid, LoginButton[playerid], 2);PlayerTextDrawColor(playerid, LoginButton[playerid], -1);PlayerTextDrawSetShadow(playerid, LoginButton[playerid], 0);PlayerTextDrawSetOutline(playerid, LoginButton[playerid], 1);PlayerTextDrawBackgroundColor(playerid, LoginButton[playerid], 1711276058);PlayerTextDrawFont(playerid, LoginButton[playerid], 2);
Itt a kódja annak amin utoljára próbáltam: LoginButton[playerid] = CreatePlayerTextDraw(playerid, 322.409973, 282.333312, \"Bejelentkezés\");PlayerTextDrawLetterSize(playerid, LoginButton[playerid], 0.425000, 1.541666);PlayerTextDrawAlignment(playerid, LoginButton[playerid], 2);PlayerTextDrawColor(playerid, LoginButton[playerid], -1);PlayerTextDrawSetShadow(playerid, LoginButton[playerid], 0);PlayerTextDrawSetOutline(playerid, LoginButton[playerid], 1);PlayerTextDrawBackgroundColor(playerid, LoginButton[playerid], 1711276058);PlayerTextDrawFont(playerid, LoginButton[playerid], 2);
PlayerTextDrawTextSize(playerid, LoginButton[playerid], 50, 50);