SA-MP Forums Archive
[Need Help]Fuel Script Help - 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)
+--- Thread: [Need Help]Fuel Script Help (/showthread.php?tid=444888)



[Need Help]Fuel Script Help - 5002 - 18.06.2013

I make a dialog for fuel

command is refull

and player when stay on Gas station spot a menu with offers

Full tank (20$)
Medium tank(10$)
Small tank(5$)

now i need a few offers for
timer for offers
for example
8s for full tank
5s for meduim tank
3s for small tank

and one think
Код:
if (strcmp(cmdtext, "/Refuel", true, 10) == 0)
   {

    if(IsPlayerInRangeOfPoint(playerid, 8.0, 1937.8898, -1769.1318, 13.3828))
    {
        ShowPlayerDialog(playerid,2, DIALOG_STYLE_LIST, "Choose Amount","big tank 100%(20$) \nMedium tank 50%(10$) \nSmall tank 20%(5$)","BUY","Cancel");
    }
        else
        {
        SendClientMessage(playerid, -1, "You must stay on "COLOR_YELLOW_EMBED"Gas Station"COLOR_WHITE_EMBED"to refuel");

        }
    }
 	return 1;
	}


DIALOG:
    if (strcmp(cmdtext, "/Refuel", true, 10) == 0)
   {

    if(IsPlayerInRangeOfPoint(playerid, 8.0, 1937.8898, -1769.1318, 13.3828))
    {
        ShowPlayerDialog(playerid,2, DIALOG_STYLE_LIST, "Choose Amount","big tank 100%(20$) \nMedium tank 50%(10$) \nSmall tank 20%(5$)","BUY","Cancel");
    }
        else
        {
        SendClientMessage(playerid, -1, "You must stay on "COLOR_YELLOW_EMBED"Gas Station"COLOR_WHITE_EMBED"to refuel");

        }
    }
 	return 1;
	}
i wait for your answers


Re: [Need Help]Fuel Script Help - 5002 - 20.06.2013

BUMPING POWER