Advertisement
Guest User

Help

a guest
Oct 2nd, 2021
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. new StartQuest[MAX_PLAYERS];
  2. new SpecialQuest; //Actor
  3.  
  4. CMD:startquest(playerid, params[])
  5. {
  6. if(StartQuest[playerid]) return SCM(playerid, COLOR_SPECIALMISSION, "Special Quest: Text.");
  7. StartQuest[playerid] = 1;
  8. if(!IsPlayerInRangeOfPoint(playerid, 3.5, 1123.0138, -1127.3977, 23.8047)) return SCM(playerid, COLOR_INFO, "Eroare: Nu esti la locatia potrivita.");
  9. if(pInfo[playerid][pCarLic] > 1) return SCM(playerid, COLOR_INFO, "Eroare: Nu ai licenta de condus!");
  10. SetPlayerRaceCheckpoint(playerid, 0, 2091.1172 ,-1278.4653, 26.1797, 2091.1172, -1278.4653, 26.1797, 3.5), CP[playerid] = 348;
  11. SCM(playerid, COLOR_SPECIALMISSION, "Special Quest: Text.");
  12. return 1;
  13. }
  14.  
  15. case 348: {
  16. SetPlayerRaceCheckpoint(playerid, 0, 2368.3386, -1674.7203, 2368.3386, -1674.7203, 14.1682, 3.5), CP[playerid] = 349;
  17. SCM(playerid, COLOR_SPECIALMISSION, "Bombe plantate: 1/3!");
  18. }
  19. case 349: {
  20. SetPlayerRaceCheckpoint(playerid, 0, 1684.7343, -2099.3076, 13.8343, 1684.7343, -2099.3076, 13.8343, 3.5), CP[playerid] = 350;
  21. SCM(playerid, COLOR_SPECIALMISSION, "Mergi la ultima casa pentru a termina cerintele!");
  22. SCM(playerid, COLOR_SPECIALMISSION, "Bombe plantate: 2/3!");
  23. }
  24. case 350: { //cand intra in cp sa dea astea
  25. StartQuest[playerid] = 0;
  26. SpawnPlayer(playerid), GiveMoney(playerid, 27750), pInfo[playerid][pDiamonds] += 7;
  27. new sString[100];
  28. format(sString, sizeof sString, "(( Special Quest: %s a terminat Text! ))", GetName(playerid));
  29. SCMTA(COLOR_SPECIALMISSION, sString);
  30. SCM(playerid, COLOR_SPECIALMISSION, "(( Special Quest: Text. ))");
  31. DisablePlayerRaceCheckpoint(playerid), CP[playerid] = 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement