Skripta koju koristim: SERP
Detaljan opis problema: E ovako pravim nesto za tune garazu...I sada kada ja kliknem na x da se zatvori to od textdrawowa sto sam radio ono nece da se zatvori nzm do cega je?
Dio skripte: TextDrawSetSelectable(Textdraw0, false);
TextDrawSetSelectable(Textdraw1, true);
TextDrawSetSelectable(Textdraw2, true);
TextDrawSetSelectable(Textdraw3, true);
TextDrawSetSelectable(Textdraw4, false);
TextDrawSetSelectable(Textdraw5, false);
TextDrawSetSelectable(Textdraw6, true);
TextDrawSetSelectable(Textdraw7, true);
TextDrawSetSelectable(Textdraw8, true);
TextDrawSetSelectable(Textdraw9, true);
TextDrawSetSelectable(Textdraw10, true);
TextDrawSetSelectable(Textdraw11, true);
TextDrawSetSelectable(Textdraw12, true);
if (!strcmp("/tuniraj", cmdtext, true))
{
TextDrawShowForPlayer(playerid, Textdraw0); // Show the box
TextDrawShowForPlayer(playerid, Textdraw1); // Show the LS option
TextDrawShowForPlayer(playerid, Textdraw2); // Show the SF option
TextDrawShowForPlayer(playerid, Textdraw3); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw4); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw5); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw6); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw7); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw8); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw9); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw10); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw11); // Show the LV option
TextDrawShowForPlayer(playerid, Textdraw12); // Show the LV option
TogglePlayerSpectating(playerid, 1)
SetPlayerCameraLookAt(playerid,1770.2292,-1779.2579,16.2882);
SelectTextDraw(playerid, 0xA3B4C5FF); // Allow the player to select textdraws.
// The second parameter is the colour to which the textdraw turns when you hover over it.
// You can use stuff like COLOR_RED as well, that's your choice.
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != 65535) // If the player clicked a valid textdraw, continue with the coding. (_:var removes the Text: tag, to avoid tag mismatch)
{
if(clickedid == Textdraw2)
{
//TogglePlayerSpectating(playerid, 1)
InterpolateCameraPos(playerid, 1782.8380,-1790.2469,16.2882, 1782.8179,-1778.2588,16.2882, 1000, CAMERA_MOVE);
SCM(playerid,COLOR_GRAD1,"{F81414}[TEST] {C0C0C0}KULER JE BOTINA!");
}
else if(clickedid == Textdraw3)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw8);
TextDrawHideForPlayer(playerid, Textdraw9);
TextDrawHideForPlayer(playerid, Textdraw10);
TextDrawHideForPlayer(playerid, Textdraw11);
TextDrawHideForPlayer(playerid, Textdraw12);
CancelSelectTextDraw(playerid);
SCM(playerid,COLOR_GRAD1,"{F81414}[TEST] {C0C0C0}KULER JE BOTINA!");
}
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
DP, Lock