Guest User

Untitled

a guest
Jun 17th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. public OnPlayerEnterCheckpoint(playerid)
  2. {
  3. new string[128];
  4. switch(Checkpoint[playerid]) {
  5. case 1: {
  6. DisablePlayerCheckpoint(playerid);
  7. Checkpoint[playerid] = 0;
  8. SCM(playerid, -1, "Foloseste /work.");
  9. return 1;
  10. }
  11. case 2: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0) Checkpoint[playerid] ++;
  12. case 3: SetPlayerCheckpoint(playerid, 2561.8125,1561.8441,10.8203, 3.0) Checkpoint[playerid] ++;
  13. case 4: SetPlayerCheckpoint(playerid, 2581.3254,1060.5686,11.7751, 3.0) Checkpoint[playerid] ++;
  14. case 5: SetPlayerCheckpoint(playerid, 2239.0520,1285.5895,10.8203, 3.0) Checkpoint[playerid] ++;
  15. case 6: SetPlayerCheckpoint(playerid, 1029.3654,2005.4865,11.4609, 3.0) Checkpoint[playerid] ++;
  16. case 7: SetPlayerCheckpoint(playerid, 1030.8094,2028.4299,11.4683, 3.0) Checkpoint[playerid] ++;
  17. case 8: SetPlayerCheckpoint(playerid, 984.5137,2030.2045,11.4688, 3.0) Checkpoint[playerid] ++;
  18. case 9: SetPlayerCheckpoint(playerid, 1084.3754,2032.0221,11.4683, 3.0) Checkpoint[playerid] ++;
  19. case 10: SetPlayerCheckpoint(playerid, 1085.4152,2000.8522,11.4609, 3.0) Checkpoint[playerid] ++;
  20. case 11: SetPlayerCheckpoint(playerid, 1084.5104,1976.9949,11.4688, 3.0) Checkpoint[playerid] ++;
  21. case 12: SetPlayerCheckpoint(playerid, 2556.8208,2022.3246,10.8176, 3.0) Checkpoint[playerid] ++;
  22. case 13: SetPlayerCheckpoint(playerid, 2018.5828,2766.5452,10.8265, 3.0) Checkpoint[playerid] ++;
  23. case 14: {
  24. DisablePlayerCheckpoint(playerid);
  25. Checkpoint[playerid] = 0;
  26. new money 50000 + random(70000);
  27. GivePlayerMoney(playerid, money);
  28. format(string, sizeof(string), "Salariul tau este de $%d", money);
  29. SCM(playerid, 0xD4FF00FF, string);
  30. FinishJob(playerid);
  31. }
  32. }
  33. return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment