18.06.2013, 15:58
i do it in this code
it work but when i type refull on gas station first spot wrong command
but after it i see my dialog about full
whats prob?
Код:
if (strcmp(cmdtext, "/Refull", 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 refull"); return 1; } } return 0; }
but after it i see my dialog about full
whats prob?