[Need Help]Fuel Script Help
#1

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
Reply
#2

BUMPING POWER
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)