19.05.2013, 04:40
Not showing textdraw
pawn Код:
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]);
new RouteText[50];
format(RouteText, 50, "Time Remaining: %s%i~w~", JailMsg, APlayerData[playerid][PlayerJailed]);
TextDrawSetString(APlayerData[playerid][MissionText], RouteText);
APlayerData[playerid][PlayerJailed] = APlayerData[playerid][PlayerJailed] -1;
}
}