22.01.2014, 09:47
Hola, bueno la cosa es que no puedo clickear en el TextDraw como deberia ser, Hago click y no pasa nada, he visto tutoriales pero tampoco funciona, les dejo el Fs para que puedan ver si pueden ver que pasa...
Код:
#include <a_samp> new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; new Text:Textdraw4; public OnFilterScriptInit() { print("Textdraw file generated by"); print(" Zamaroht's textdraw editor was loaded."); // Create the textdraws: Textdraw0 = TextDrawCreate(242.000000, 106.000000, "Hombre"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 5); TextDrawLetterSize(Textdraw0, 0.830000, 16.500000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 255); TextDrawTextSize(Textdraw0, -129.000000, 198.000000); TextDrawSetPreviewModel(Textdraw0, 60); TextDrawSetPreviewRot(Textdraw0, 0.000000, 0.000000, 0.000000, 1.000000); TextDrawSetSelectable(Textdraw0, 1); Textdraw1 = TextDrawCreate(521.000000, 106.000000, "Mujer"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 5); TextDrawLetterSize(Textdraw1, 0.830000, 16.500000); TextDrawColor(Textdraw1, -1); TextDrawSetOutline(Textdraw1, 0); TextDrawSetProportional(Textdraw1, 1); TextDrawSetShadow(Textdraw1, 1); TextDrawUseBox(Textdraw1, 1); TextDrawBoxColor(Textdraw1, 255); TextDrawTextSize(Textdraw1, -129.000000, 198.000000); TextDrawSetPreviewModel(Textdraw1, 193); TextDrawSetPreviewRot(Textdraw1, 0.000000, 0.000000, 0.000000, 1.000000); TextDrawSetSelectable(Textdraw1, 1); Textdraw2 = TextDrawCreate(142.000000, 302.000000, "HOMBRE"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 1); TextDrawLetterSize(Textdraw2, 0.509999, 1.800000); TextDrawColor(Textdraw2, 16777215); TextDrawSetOutline(Textdraw2, 1); TextDrawSetProportional(Textdraw2, 1); TextDrawSetSelectable(Textdraw2, 0); Textdraw3 = TextDrawCreate(431.000000, 302.000000, "MUJER"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 1); TextDrawLetterSize(Textdraw3, 0.509999, 1.800000); TextDrawColor(Textdraw3, -16711681); TextDrawSetOutline(Textdraw3, 1); TextDrawSetProportional(Textdraw3, 1); TextDrawSetSelectable(Textdraw3, 0); Textdraw4 = TextDrawCreate(317.000000, 192.000000, "ERES?..."); TextDrawAlignment(Textdraw4, 2); TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 1); TextDrawLetterSize(Textdraw4, 0.420000, 2.200000); TextDrawColor(Textdraw4, -1); TextDrawSetOutline(Textdraw4, 1); TextDrawSetProportional(Textdraw4, 0); TextDrawSetSelectable(Textdraw4, 0); return 1; } public OnFilterScriptExit() { TextDrawHideForAll(Textdraw0); TextDrawDestroy(Textdraw0); TextDrawHideForAll(Textdraw1); TextDrawDestroy(Textdraw1); TextDrawHideForAll(Textdraw2); TextDrawDestroy(Textdraw2); TextDrawHideForAll(Textdraw3); TextDrawDestroy(Textdraw3); TextDrawHideForAll(Textdraw4); TextDrawDestroy(Textdraw4); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/sexoxd")) { TextDrawShowForPlayer(playerid, Textdraw0); TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw3); TextDrawShowForPlayer(playerid, Textdraw4); SelectTextDraw(playerid, 0xA3B4C5FF); } return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(_:clickedid != INVALID_TEXT_DRAW) { if(clickedid == Textdraw0) { CancelSelectTextDraw(playerid); TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); TextDrawHideForPlayer(playerid, Textdraw2); TextDrawHideForPlayer(playerid, Textdraw3); TextDrawHideForPlayer(playerid, Textdraw4); PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); return 1; } if(clickedid == Textdraw1) { CancelSelectTextDraw(playerid); TextDrawHideForPlayer(playerid, Textdraw0); TextDrawHideForPlayer(playerid, Textdraw1); TextDrawHideForPlayer(playerid, Textdraw2); TextDrawHideForPlayer(playerid, Textdraw3); TextDrawHideForPlayer(playerid, Textdraw4); return 1; } } // Everything worked out perfectly, now stop the player to be able to select shizzle. return 1; }