Como Mostrar um textdraw ao entrar no carro
#1

ae galera me ajudem por favor eu queria saber como eu mostro um textdraw para o jogador quando ele entrar no carro codigo:

Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[256];
format(string, sizeof string, "~b~Local: ~w~ %d", ReturnPlayerZone(playerid));
TextDrawSetString(Textdraw8, string);
return 1;
}

public OnGameModeInit()
{
Textdraw8 = TextDrawCreate(20.000000, 319.000000, "__");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
}

Ajudem por favor
Reply
#2

falta o TextDrawShow...
Reply
#3

Quote:
Originally Posted by andmeida10
falta o TextDrawShow...
funfo n
Reply
#4

n pus a funзгo toda, usa Wiki, e no OnPlayerExitVehicle, poem o TextDrawHideForPlayer
Reply
#5

Quote:
Originally Posted by andmeida10
n pus a funзгo toda, usa Wiki, e no OnPlayerExitVehicle, poem o TextDrawHideForPlayer
por acaso meu public tem isso...
Quote:

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] >= 3)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3) {}
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Furto de carro policial"); }
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Furto de uma ambulancia"); }
}
}
new string[256];
format(string, sizeof string, "~b~Local: ~w~ %d", ReturnPlayerZone(playerid));
TextDrawSetString(Textdraw8, string);
TextDrawShowForPlayer(playerid, Text:;
return 1;
}

Reply
#6

pawn Код:
public OnGameModeInit()
{
  Textdraw8 = TextDrawCreate(20.000000, 319.000000, "%s",ReturnPlayerZone(playerid));
  TextDrawBackgroundColor(Textdraw8, 255);
  TextDrawFont(Textdraw8, 1);
  TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
  TextDrawColor(Textdraw8, -1);
  TextDrawSetOutline(Textdraw8, 0);
  TextDrawSetProportional(Textdraw8, 1);
  TextDrawSetShadow(Textdraw8, 1);
}


public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  TextDrawShowForPlayer(playerid, Textdraw8);
  return 1;
}
Reply
#7

Quote:
Originally Posted by Miic
pawn Код:
public OnGameModeInit()
{
  Textdraw8 = TextDrawCreate(20.000000, 319.000000, "%s",ReturnPlayerZone(playerid));
  TextDrawBackgroundColor(Textdraw8, 255);
  TextDrawFont(Textdraw8, 1);
  TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
  TextDrawColor(Textdraw8, -1);
  TextDrawSetOutline(Textdraw8, 0);
  TextDrawSetProportional(Textdraw8, 1);
  TextDrawSetShadow(Textdraw8, 1);
}


public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  TextDrawShowForPlayer(playerid, Textdraw8);
  return 1;
}
Deu!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)