Not showing textdraw
#6

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]);
 }
 else
 {
  // Show the remaining jailtime (only if the remaining time is below 200 seconds)
  if (APlayerData[playerid][PlayerJailed] < 200)
  {
   new RouteText[50];
   format(RouteText, 50, "Time Remaining: %s~r~%i~w~", JailMsg, APlayerData[playerid][PlayerJailed]);
   TextDrawSetString(APlayerData[playerid][MissionText], RouteText);
  }
  // Decrease the jailtime by 1 second
  APlayerData[playerid][PlayerJailed] = APlayerData[playerid][PlayerJailed] -1;
 }
}
Reply


Messages In This Thread
Not showing textdraw - by DerickClark - 19.05.2013, 04:40
Re: Not showing textdraw - by Black Wolf - 19.05.2013, 04:50
Re: Not showing textdraw - by DerickClark - 19.05.2013, 04:54
Re: Not showing textdraw - by Black Wolf - 19.05.2013, 05:00
Re: Not showing textdraw - by DerickClark - 19.05.2013, 05:11
Re: Not showing textdraw - by NathNathii - 19.05.2013, 16:04
Re: Not showing textdraw - by marsmubarak - 06.07.2013, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)