SA-MP Forums Archive
Zone - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Zone (/showthread.php?tid=255616)



Zone - GrandMaa - 16.05.2011

I read from my service stations by db.
If someone is coming into a gas station = textdraw

stock ShowPlayerTextdrawGas(playerid)
{
for (new station = 0; station < MAX_PETROLS ; station++)
{
if(GetPlayerToPoint(playerid, petroInfo[station][infoPickupX], petroInfo[station][infoPickupY], petroInfo[station][infoPickupZ]) < 20)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
}
else
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
}
return 1;
}
}

Not work..