Guest User

Untitled

a guest
May 13th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 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[5][MisLocationsEnum] =
  14. {
  15. {0, "Cure", "Hospital SF", -2047.2974, -96.1258, 35.7741, 6000, 3},
  16. {1, "Furniture", "Hospital LS", -2172.5371, -45.5348, 35.3125, 5000, 2},
  17. {2, "Toys", "Shop LS", -2172.5371, -45.5348, 35.3125, 5000, 2},
  18. {3, "Shirts", "Shop LS", -2172.5371, -45.5348, 35.3125, 5000, 2},
  19. {4, "Movies", "Shop LV", -2172.5371, -45.5348, 35.3125, 5000, 2}
  20. };
  21.  
  22. CMD:z(playerid, params[])
  23. {
  24. //new MisRand = random(sizeof(MisLocations));
  25. if(MissionStatus[playerid] == 0)
  26. {
  27. new LoadText[1000];
  28. ShuffleDeepArray(MisLocations);
  29. for (new i = 0; i < sizeof(MisLocations); i++)
  30. {
  31. format(LoadText, 1000, "Commadity\tPoint\tPrize\n\
  32. {008000}%s\t{FFFF00}%s\t{FF0000}%d $\n", MisLocations[i][Commadity], MisLocations[i][LoadName], MisLocations[i][Pay]);
  33. }
  34.  
  35. ShowPlayerDialog(playerid, DIALOG_MISSION, DIALOG_STYLE_TABLIST_HEADERS, "MISSION", LoadText, "OK", "Cancel");
  36. }
  37. else
  38. {
  39. SendClientMessage(playerid, COLOR_RED, "/cancel !");
  40. }
  41. return 1;
  42. }
Add Comment
Please, Sign In to add comment