Advertisement
Guest User

Untitled

a guest
Mar 15th, 2020
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. YCMD:startmission(playerid, params[], help)
  2. {
  3. if(PlayerInfo[playerid][pMissionFinish] == 1)
  4. return SCM(playerid, COLOR_LGREEN, "Ai facut deja misiunea.");
  5.  
  6. if(gettime() < GetPVarInt(playerid, "missionDeelay")) return SCMEx(playerid, -1, "Asteapta %d secunde pentru a face misiunile din nou.", GetPVarInt(playerid, "missionDeelay") - gettime());
  7.  
  8. if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai level 3.");
  9. if(PlayerInfo[playerid][pBoatLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de licenta de barca pentru a incepe quest-ul.");
  10. if(StartMission[playerid] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai inceput deja misiunea.");
  11. if(IsPlayerInRangeOfPoint(playerid, 10, 162.2594,2470.6362,16.4780) == 0) return SCM(playerid, -1, "Nu esti la locul de unde poti incepe misiunea. Foloseste /gps -> Mission Place");
  12.  
  13. SetPVarInt(playerid, "missionDeelay", gettime() + 86400);
  14.  
  15. return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement