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[5][MisLocationsEnum] =
- {
- {0, "Cure", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 3},
- {1, "Furniture", "Hospital LS", -2172.5371, -45.5348, 35.3125, 5000, 2},
- {2, "Toys", "Shop LS", -2172.5371, -45.5348, 35.3125, 5000, 2},
- {3, "Shirts", "Shop LS", -2172.5371, -45.5348, 35.3125, 5000, 2},
- {4, "Movies", "Shop LV", -2172.5371, -45.5348, 35.3125, 5000, 2}
- };
- CMD:z(playerid, params[])
- {
- //new MisRand = random(sizeof(MisLocations));
- if(MissionStatus[playerid] == 0)
- {
- new LoadText[1000];
- ShuffleDeepArray(MisLocations);
- for (new i = 0; i < sizeof(MisLocations); i++)
- {
- format(LoadText, 1000, "Commadity\tPoint\tPrize\n\
- {008000}%s\t{FFFF00}%s\t{FF0000}%d $\n", MisLocations[i][Commadity], MisLocations[i][LoadName], MisLocations[i][Pay]);
- }
- ShowPlayerDialog(playerid, DIALOG_MISSION, DIALOG_STYLE_TABLIST_HEADERS, "MISSION", LoadText, "OK", "Cancel");
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED, "/cancel !");
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment