Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum MisLocationsEnum
- {
- ID,
- Commodity[128],
- LoadName[128],
- Float:UnloadX,
- Float:UnloadY,
- Float:UnloadZ,
- Pay,
- PayScore
- }
- new MisLocations[][MisLocationsEnum] =
- {
- {0, "Commodity_1", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2},
- {1, "Commodity_2", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {2, "Commodity_3", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {3, "Commodity_4", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {4, "Commodity_5", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {5, "Commodity_6", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {6, "Commodity_7", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {7, "Commodity_8", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {8, "Commodity_9", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- {9, "Commodity_10", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
- };
- CMD:z(playerid, params[])
- {
- new MisRand = random(sizeof(MisLocations));
- new LoadText[1000];
- format(LoadText, 1000, "Commodity\tPoint\tPrize\n\
- {008000}%s\t{FFFF00}%s\t{FF0000}%d $\n", MisLocations[MisRand][Commodity], MisLocations[MisRand][LoadName], MisLocations[MisRand][Pay]);
- ShowPlayerDialog(playerid, DIALOG_ZLECENIE, DIALOG_STYLE_TABLIST_HEADERS, "Missions", LoadText, "OK", "Cancel");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment