Код:
}
stock HouseTextDraws()
{
ExitSign = TextDrawCreate(150,350," ");
TextDrawLetterSize(ExitSign, 0.000000, 0.000000);
TextDrawTextSize(ExitSign,50.579788, 50.583330);
TextDrawFont(ExitSign, TEXT_DRAW_FONT_MODEL_PREVIEW);
TextDrawSetPreviewModel(ExitSign,1502);
TextDrawSetPreviewRot(ExitSign, 0.0, 0.0,0,1.0);
TextDrawBackgroundColor(ExitSign,40);
TextDrawAlignment(ExitSign, 1);
TextDrawColor(ExitSign, -1);
TextDrawSetShadow(ExitSign, 0);
TextDrawSetOutline(ExitSign, 0);
TextDrawSetSelectable(ExitSign,1);
Код:
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(GetPVarInt(playerid,"IsInHouse") == 1)
{
if(clickedid == ExitSign)
{
new file[256];
format(file,sizeof(file),FILEPATH,GetPVarInt(playerid,"LastHouseCP"));
SetPVarInt(playerid, "IsInHouse", 0);
SetPlayerPosEx(playerid, dini_Float(file, "SpawnOutX"), dini_Float(file, "SpawnOutY"), dini_Float(file, "SpawnOutZ"), dini_Int(file, "SpawnInterior"), dini_Int(file, "SpawnWorld"));
SetPlayerFacingAngle(playerid, dini_Float(file, "SpawnOutAngle"));
SetPlayerInterior(playerid, dini_Int(file, "SpawnInterior"));
SetPlayerVirtualWorld(playerid, dini_Int(file, "SpawnWorld"));
TextDrawHideForPlayer(playerid,ExitSign);
TextDrawHideForPlayer(playerid,GunSign);
TextDrawHideForPlayer(playerid,CarSign);
TextDrawHideForPlayer(playerid,WheelSign);
CancelSelectTextDraw(playerid);
return 1;
Код:
}
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "LastHouseCP",-1);
SetPVarInt(playerid, "InHouse",-1);
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid,ExitSign);
TextDrawHideForPlayer(playerid,GunSign);
TextDrawHideForPlayer(playerid,CarSign);
TextDrawHideForPlayer(playerid,WheelSign);
See Codes , I added TextDrawHide in playerconnect it still shows