Not showing Jail
#4

But it don't show the textdraw it go blank.

it show the textdraw box.


Edit:
It work but don't show the time


Код:
// This is the timer that runs for every player who's in jail
public UnjailPlayer(playerid)
{
	new JailMsg[20];

	// Check if the player is allowed to leave yet
	if (APlayerData[playerid][PlayerJailed] == 0)
	{
		// Set the player in the normal world
		SetPlayerVirtualWorld(playerid, 0);
		// Set player interior to the outside
		SetPlayerInterior(playerid, 0);
		// Put the player outside the jail (he should spawn at the location where he spawned after login or after choosing a rescue-point)
		SpawnPlayer(playerid);
		// Also, kill the jailtimer
		KillTimer(APlayerData[playerid][PlayerJailedTimer]);
	}
	else
	{
		// Show the remaining jailtime (only if the remaining time is below 60 seconds)
		if (APlayerData[playerid][PlayerJailed] < 60)
		{
			format(JailMsg, 20, "%s~w~Time Remaining:~r~%i~w~", APlayerData[playerid][PlayerJailed]);
			new RouteText[255];
            format(RouteText, 255, "%s", JailMsg, " ");
			TextDrawSetString(APlayerData[playerid][MissionText], RouteText);
			//GameTextForPlayer(playerid, JailMsg, 750, 4);
		}
		// Decrease the jailtime by 1 second
        APlayerData[playerid][PlayerJailed] = APlayerData[playerid][PlayerJailed] - 1;
	}
}
Reply


Messages In This Thread
Not showing Jail - by DerickClark - 10.05.2013, 02:32
Re: Not showing Jail - by mineralo - 10.05.2013, 06:52
Re: Not showing Jail - by [HiC]TheKiller - 10.05.2013, 07:17
Re: Not showing Jail - by DerickClark - 10.05.2013, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)