#1

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..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)