si fuera para cualquier pickup puede valer, pero para los negocios tendria que estar poniendo coordenadas de todos, mira haz esto:
pawn Код:
forward SacarTextDraw(playerid);
public SacarTextDraw(playerid)
{
for(new b = 0; b < sizeof(BizzInfo); b++)
{
if(BizzInfo[b][bOwned] == 1)
{
TextDrawHideForPlayer(playerid,NegocioBuy1);
TextDrawHideForPlayer(playerid,NegocioBuy2);
TextDrawHideForPlayer(playerid,NegocioBuy3);
TextDrawHideForPlayer(playerid,NegocioBuy4);
TextDrawHideForPlayer(playerid,NegocioBuy5);
TextDrawHideForPlayer(playerid,NegocioBuy6);
}
else
{
TextDrawHideForPlayer(playerid,TextNegocio1);
TextDrawHideForPlayer(playerid,TextNegocio2);
TextDrawHideForPlayer(playerid,TextNegocio3);
TextDrawHideForPlayer(playerid,TextNegocio4);
TextDrawHideForPlayer(playerid,TextNegocio5);
}
}
}
Код:
Donde sale TextNegocio1, ETC, ai sustituye por como tienes definidos tus TextDraw
Y ahora ves donde tienes puesto los TextDrawString y TextDrawShowForPlayer y abajo de la funcion pon:
pawn Код:
ejemplo...
...
TextDrawShowForPlayer(i,TextCasa4);
}
SetTimerEx("SacarTextDraw", 3000, false, "d", i);
return 1;
}
}
Y asi se te ira a los 3 segundos