Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:startmission(playerid, params[], help)
- {
- if(PlayerInfo[playerid][pMissionFinish] == 1)
- return SCM(playerid, COLOR_LGREEN, "Ai facut deja misiunea.");
- if(gettime() < GetPVarInt(playerid, "missionDeelay")) return SCMEx(playerid, -1, "Asteapta %d secunde pentru a face misiunile din nou.", GetPVarInt(playerid, "missionDeelay") - gettime());
- if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai level 3.");
- if(PlayerInfo[playerid][pBoatLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai nevoie de licenta de barca pentru a incepe quest-ul.");
- if(StartMission[playerid] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai inceput deja misiunea.");
- 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");
- SetPVarInt(playerid, "missionDeelay", gettime() + 86400);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement