Advertisement
ClockFPS

Check

Apr 9th, 2024 (edited)
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. new Float:RotasSedex[][4] =
  2. {
  3. {2347.5012,-1164.4919,27.4431, 3.0},
  4. {2095.0173,-1308.8472,24.0986, 3.0},
  5. {2001.0612,-1127.2688,25.5954, 3.0},
  6. {804.6202,-1455.2427,13.6652, 3.0}
  7. };
  8.  
  9. public OnPlayerEnterCheckpoint(playerid)
  10. {
  11. if(ServicoS[playerid] != 1)
  12. {
  13. DisablePlayerCheckpoint(playerid);
  14. }
  15. else
  16. {
  17. new monew = random(500);
  18. new local = random(sizeof(RotasSedex));
  19. SetPlayerCheckpoint(playerid, RotasSedex[local][0], RotasSedex[local][1], RotasSedex[local][2], RotasSedex[local][3]);
  20. new string[246];
  21. format(string, sizeof(string), "<!> Entrega Sedex Voce recebeu {00FF00}R$%d", monew);
  22. SCM(playerid, -1, string);
  23. Player[playerid][pDinheiro] +=monew;
  24. pCarga[playerid] -= 1;
  25. }
  26. return 1;
  27. }
  28.  
  29. //======= CMD
  30.  
  31. CMD:carregar(playerid)
  32. {
  33. if(Player[playerid][pEmprego] != 1) return SCM(playerid, Vermelho, "<!> Voce nao e entregador");
  34. if(!IsPlayerInRangeOfPoint(playerid, 3.0, 211.1068,24.8129,2.3410)) return SCM(playerid, Vermelho, "<!> Voce nao esta no local para carregar");
  35. if(pCarga[playerid] >= 1) return SCM(playerid, Vermelho, "<!> Veiculo ja esta carregado");
  36. {
  37. ServicoS[playerid] = 1;
  38. pCarga[playerid] = 3;
  39. new local = random(sizeof(RotasSedex));
  40. SetPlayerCheckpoint(playerid, RotasSedex[local][0], RotasSedex[local][1], RotasSedex[local][2], RotasSedex[local][3]);
  41. SCM(playerid, -1, "<!> Nao podera usar Gps em servico");
  42. SCM(playerid, Amarelo, "<!> Veiculo carregado");
  43. }
  44. return 1;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement