30.12.2014, 04:23
Well , my textdraw "Entrar" is still showing if i press the key "ESC" , here's my code
I don't know what is wrong
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == IconosEntradas[0])
{
TextDrawShowForPlayer(playerid,Caja);
TextDrawShowForPlayer(playerid,Entrada[0]);
SelectTextDraw(playerid, Color_Rojo);
}
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid != 65535)
{
if(clickedid == Entrada[0])
{
SetPlayerVirtualWorld( playerid, 5);
SetPlayerInterior( playerid, 5);
SetPlayerPos( playerid, 1409.53857, 1316.47266, 1501.04822);
}
TextDrawHideForPlayer(playerid, Caja);
TextDrawHideForPlayer(playerid, Entrada[0]);
CancelSelectTextDraw(playerid);
}
return 1;
}