Help Pleaseee URGENT
#4

Код:
}
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
Reply


Messages In This Thread
Help Pleaseee URGENT - by HaiderABbas - 22.06.2013, 15:50
Re: Help Pleaseee URGENT - by Kindred - 22.06.2013, 15:56
Re: Help Pleaseee URGENT - by HaiderABbas - 22.06.2013, 16:09
Re: Help Pleaseee URGENT - by HaiderABbas - 22.06.2013, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)