textdraw no se oculta :S - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: textdraw no se oculta :S (
/showthread.php?tid=201956)
textdraw no se oculta :S -
most - 22.12.2010
Hola, tengo esto asi:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerToPoint(2.0,playerid,1759.9247,-1924.5101,13.5753))
{
TextDrawShowForPlayer(playerid, alt);
}
else
{
TextDrawHideForPlayer(playerid, alt);
}
return 1;
}
y cuando entro al checkpoint si se ve el textdraw, pero cuando salgo no se oculta el textdraw :S
Respuesta: textdraw no se oculta :S -
GROVE4L - 22.12.2010
Mejor pone el CP sin funcion y en OnPLayerUpdate pones
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,2.0,CORDEANDAS DEL CP))
{
TextDrawShowForPlayer(playerid, alt);
}
else
{
TextDrawHideForPlayer(playerid, alt);
}
return 1;
}
Edit:
Sino usa asi:
pawn Код:
public OnPlayerLeaveCheckpoint(playerid)
{
TextDrawHideForPlayer(playerid, alt);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(PlayerToPoint(2.0,playerid,1759.9247,-1924.5101,13.5753))
{
TextDrawShowForPlayer(playerid, alt);
}
return 1;
}
Re: textdraw no se oculta :S -
most - 22.12.2010
ok gracias