Guest User

Untitled

a guest
May 12th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. enum MisLocationsEnum
  2. {
  3. ID,
  4. Commodity[128],
  5. LoadName[128],
  6. Float:UnloadX,
  7. Float:UnloadY,
  8. Float:UnloadZ,
  9. Pay,
  10. PayScore
  11. }
  12.  
  13. new MisLocations[][MisLocationsEnum] =
  14. {
  15. {0, "Commodity_1", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2},
  16. {1, "Commodity_2", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  17. {2, "Commodity_3", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  18. {3, "Commodity_4", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  19. {4, "Commodity_5", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  20. {5, "Commodity_6", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  21. {6, "Commodity_7", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  22. {7, "Commodity_8", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  23. {8, "Commodity_9", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  24. {9, "Commodity_10", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 2}
  25. };
  26.  
  27. CMD:z(playerid, params[])
  28. {
  29. new MisRand = random(sizeof(MisLocations));
  30.  
  31. new LoadText[1000];
  32. format(LoadText, 1000, "Commodity\tPoint\tPrize\n\
  33. {008000}%s\t{FFFF00}%s\t{FF0000}%d $\n", MisLocations[MisRand][Commodity], MisLocations[MisRand][LoadName], MisLocations[MisRand][Pay]);
  34. ShowPlayerDialog(playerid, DIALOG_ZLECENIE, DIALOG_STYLE_TABLIST_HEADERS, "Missions", LoadText, "OK", "Cancel");
  35.  
  36. return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment