textdraw not showing up and down
#1

how to fix this ?

i use /ls textdraw work

and i use/ls again textdraw not moved to the top



Код:
CMD:vstunt( playerid, params[ ] )
{
		SetPlayerPos(playerid, 2078.6533,-2543.2195,18.5390);
		SetPlayerFacingAngle(playerid, 0.0);
		SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[TELEPORT] {B7FF00}: {FFFFFF}You have teleported to Vortex Stunt");
  		new newtext[41], name[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    	format(newtext, sizeof(newtext), "%s has teleported to /vstunt", name);
	    TextDrawSetString(TeleportTextdraw0, newtext);
	    TextDrawShowForPlayer(playerid, TeleportTextdraw0);
		return 1;
}

CMD:ls( playerid, params[ ] )
{
	    if(IsPlayerInAnyVehicle(playerid))
	    {
		    new vehid = GetPlayerVehicleID(playerid);
	     	SetPlayerPos(playerid,2483.0735,-1669.1608,13.4763);
	      	SetVehiclePos(vehid,2483.0735,-1669.1608,13.4763);
	       	PutPlayerInVehicle(playerid,vehid,0);
	       	SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
	       	SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[TELEPORT] {B7FF00}: {FFFFFF}You have teleported to Los Santos");
       		new newtext[41], name[MAX_PLAYER_NAME];
	    	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	    	format(newtext, sizeof(newtext), "%s has teleported to /ls", name);
		    TextDrawSetString(TeleportTextdraw1, newtext);
		    TextDrawHideForPlayer(playerid, TeleportTextdraw0);
		    TextDrawShowForPlayer(playerid, TeleportTextdraw1);
		}
 		else
	    {
	        SetPlayerPos(playerid,2497.1946,-1669.4393,13.4763);
	        SetPlayerFacingAngle(playerid, 0.0);
	       	SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[TELEPORT] {B7FF00}: {FFFFFF}You have teleported to Los Santos");
       		new newtext[41], name[MAX_PLAYER_NAME];
	    	GetPlayerName(playerid, name, MAX_PLAYER_NAME);
	    	format(newtext, sizeof(newtext), "%s has teleported to /ls", name);
		    TextDrawSetString(TeleportTextdraw1, newtext);
		    TextDrawHideForPlayer(playerid, TeleportTextdraw0);
		    TextDrawShowForPlayer(playerid, TeleportTextdraw1);
		}
	    return 1;
}
Reply


Messages In This Thread
textdraw not showing up and down - by AgusZ - 13.01.2015, 07:36
Re: textdraw not showing up and down - by TheRaGeLord - 13.01.2015, 08:09
Re: textdraw not showing up and down - by Threshold - 13.01.2015, 08:24
Re: textdraw not showing up and down - by AgusZ - 13.01.2015, 08:55
Re: textdraw not showing up and down - by Threshold - 13.01.2015, 10:29
Re: textdraw not showing up and down - by AgusZ - 13.01.2015, 11:41
Re: textdraw not showing up and down - by Threshold - 13.01.2015, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)