Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task CustomPickups[1000]() {
- if (PlayerToPoint(2.0, i, 1173.2563,-1323.3102,15.3943))
- {// Hospital near Ammu
- GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
- }
- else if (PlayerToPoint(2.0, i, 2029.5945,-1404.6426,17.2512))
- {// Hospital near speedway
- GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
- }
- else if (PlayerToPoint(3, i,1480.9103,-1770.3743,18.7958))
- {
- GameTextForPlayer(i, "~y~Welcome to the ~r~City Hall~n~~w~Type /enter to go in", 5000, 5);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i,242.7591,66.4315,1003.6406))
- {
- if(PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3)
- {
- GameTextForPlayer(i, "~g~Police Department elevator~n~~w~Type ~r~/pdup ~w~to go up~n~Type ~r~/pddown ~w~to go down", 5000, 3);
- }
- else
- {
- GameTextForPlayer(i, "~r~Staff only!", 5000, 3);
- }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1110.9738,-305.4099,73.9922))
- {
- GameTextForPlayer(i, "~g~Hitman Undercover Place,~n~~y~Use /disguise", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2752.7515,-1962.4762,13.5469))
- {
- GameTextForPlayer(i, "~g~LSV Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,690.5870,-1275.9880,13.5600))
- {
- GameTextForPlayer(i, "~g~VLA Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2146.2664,-1470.3286,25.7121))
- {
- GameTextForPlayer(i, "~g~Ballas Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2498.6650,-1687.3389,13.5035))
- {
- GameTextForPlayer(i, "~g~Grove Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1107.4956,-315.6171,74.7422))
- {
- GameTextForPlayer(i, "~g~Hitman Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1308.5664,-47.2725,1001.0313))
- {
- GameTextForPlayer(i, "~g~Russian Mafia Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2561.5168,-1305.3997,1060.9844))
- {
- GameTextForPlayer(i, "~g~Yakuza Training Place,~n~~y~Use /enter ~n~~w~Use /exittraining to exit", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2651.3530,638.9305,14.4531))
- {
- GameTextForPlayer(i, "~g~Medic HQ,~n~~y~Use /enter", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2060.3362,469.6569,35.1723))
- {
- GameTextForPlayer(i, "~g~News HQ,~n~~y~Use /enter", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 694.7092,-455.9879,16.3359))
- {
- GameTextForPlayer(i, "~r~Materials Shop~n~~w~To sell type /sellmats~n~To buy type /buymats", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1381.0413,-1088.8511,27.3906) || PlayerToPoint(2.0, i,-1963.6067,437.5748,35.1719))
- {
- GameTextForPlayer(i, "~g~Welcome,~n~~y~Use /mission to take on a Mission", 5000, 3);
- }
- else if (PlayerToPoint(3, i,2027.5966,1008.9321,10.8203) || PlayerToPoint(3, i,-2190.7061,641.7987,49.4375) || PlayerToPoint(3, i,2769.5718,-1953.5166,13.3783) || PlayerToPoint(3, i,679.4280,-1276.8392,13.5956) || PlayerToPoint(3, i,2156.3076,-1455.8517,25.5391) || PlayerToPoint(3, i,2494.8640,-1668.1879,13.3438))
- {
- GameTextForPlayer(i, "~g~Gang Seif,~n~~y~Scrie /depune ca sa depui si /retrage ca sa scoti", 5000, 5);
- }
- else if (PlayerToPoint(3, i,597.1277,-1248.6479,18.2734))
- {
- GameTextForPlayer(i, "~w~Type ~r~/Materials get ~w~ to get some materials", 5000, 5);
- }
- else if (PlayerToPoint(3, i,-2119.5469,-178.5679,35.3203))
- {
- GameTextForPlayer(i, "~w~Type ~g~/Materials deliver ~w~ to deliver materials", 5000, 5);
- }
- else if (PlayerToPoint(3, i,-1982.8839,164.2848,27.6875))
- {
- GameTextForPlayer(i, "~w~Type: ~r~/withdraw ~w~to withdraw your money", 5000, 5);
- }
- else if (PlayerToPoint(2, i,1080.9414,-344.6483,73.9815))
- {
- GameTextForPlayer(i, "~r~Order ~w~Place.", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i,-2640.9878,635.8196,14.4531) || PlayerToPoint(2.0, i,1179.4683,-1338.6075,13.8445))
- {
- GameTextForPlayer(i, "~w~Type /get healkit, to get ~r~HealKit", 5000, 3);
- SetPlayerHealthEx(i, 100);
- }
- }
- // ' Asta ramane aici
- if(strcmp(cmd,"/mk",true)==0) {
- if(PlayerInfo[playerid][pAdmin] < 4) return SendErrorMessage(playerid, AdminOnly);
- new x_mk[128];
- x_mk = strtok(cmdtext, idx);
- if(!strlen(x_mk)) {
- SendUsageMessage(playerid, "/mk [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: (/mk text [number] [text]) (/mk game [number] [text]) (/mk cp [number])");
- SendClientMessage(playerid, COLOR_GREY, "Available names: (/mk title [text]) (/mk reward [price]) (/mk usecp)");
- return 1;
- }
- if(strcmp(x_mk,"text",true) == 0) {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk)) {
- SendUsageMessage(playerid, "/mk text [number] [text]");
- return 1;
- }
- new number = strval(tmp);
- if(number < 1 || number > 18) { SendClientMessage(playerid, COLOR_GREY, " Number can't be below 1 or above 18 !"); return 1; }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' ')) {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result)) {
- SendUsageMessage(playerid, "(/mk text [number] [text]");
- return 1;
- }
- switch(number) {
- case 1: {
- strmid(MissionInfo[mText1], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 1st Text Line of the Mission.");
- }
- case 2: {
- strmid(MissionInfo[mText2], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 2nd Text Line of the Mission.");
- }
- case 3: {
- strmid(MissionInfo[mText3], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 3rd Text Line of the Mission.");
- }
- case 4: {
- strmid(MissionInfo[mText4], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 4th Text Line of the Mission.");
- }
- case 5: {
- strmid(MissionInfo[mText5], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 5th Text Line of the Mission.");
- }
- case 6: {
- strmid(MissionInfo[mText6], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 6th Text Line of the Mission.");
- }
- case 7: {
- strmid(MissionInfo[mText7], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 7th Text Line of the Mission.");
- }
- case 8: {
- strmid(MissionInfo[mText8], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 8th Text Line of the Mission.");
- }
- case 9: {
- strmid(MissionInfo[mText9], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 9th Text Line of the Mission.");
- }
- case 10: {
- strmid(MissionInfo[mText10], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 10th Text Line of the Mission.");
- }
- case 11: {
- strmid(MissionInfo[mText11], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 11th Text Line of the Mission.");
- }
- case 12: {
- strmid(MissionInfo[mText12], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 12th Text Line of the Mission.");
- }
- case 13: {
- strmid(MissionInfo[mText13], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 13th Text Line of the Mission.");
- }
- case 14: {
- strmid(MissionInfo[mText14], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 14th Text Line of the Mission.");
- }
- case 15: {
- strmid(MissionInfo[mText15], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 15th Text Line of the Mission.");
- }
- case 16: {
- strmid(MissionInfo[mText16], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 16th Text Line of the Mission.");
- }
- case 17: {
- strmid(MissionInfo[mText17], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 17th Text Line of the Mission.");
- }
- case 18: {
- strmid(MissionInfo[mText18], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 18th Text Line of the Mission.");
- }
- }
- }
- else if(strcmp(x_mk,"game",true) == 0) {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk)) return SendUsageMessage(playerid, "/mk game [number] [text]");
- new number = strval(tmp);
- if(number < 1 || number > 6) { SendClientMessage(playerid, COLOR_GREY, " Number can't be below 1 or above 6 !"); return 1; }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' ')) {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result)) return SendUsageMessage(playerid, "(/mk game [number] [text]");
- switch(number) {
- case 1:
- {
- strmid(MissionInfo[mGText1], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 1st GameText Line of the Mission.");
- }
- case 2:
- {
- strmid(MissionInfo[mGText2], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 2nd GameText Line of the Mission.");
- }
- case 3:
- {
- strmid(MissionInfo[mGText3], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 3rd GameText Line of the Mission.");
- }
- case 4:
- {
- strmid(MissionInfo[mGText4], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 4th GameText Line of the Mission.");
- }
- case 5:
- {
- strmid(MissionInfo[mGText5], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 5th GameText Line of the Mission.");
- }
- case 6:
- {
- strmid(MissionInfo[mGText6], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 6th GameText Line of the Mission.");
- }
- }
- }
- else if(strcmp(x_mk,"cp",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/mk cp [number]");
- return 1;
- }
- new number = strval(tmp);
- if(number < 1 || number > 6) { SendClientMessage(playerid, COLOR_GREY, " Number can't be below 1 or above 6 !"); return 1; }
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid, X,Y,Z);
- switch(number)
- {
- case 1:
- {
- MissionInfo[mCP1][0] = X; MissionInfo[mCP1][1] = Y; MissionInfo[mCP1][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 1st Checkpoint of the Mission.");
- }
- case 2:
- {
- MissionInfo[mCP2][0] = X; MissionInfo[mCP2][1] = Y; MissionInfo[mCP2][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 2nd Checkpoint Line of the Mission.");
- }
- case 3:
- {
- MissionInfo[mCP3][0] = X; MissionInfo[mCP3][1] = Y; MissionInfo[mCP3][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 3rd Checkpoint Line of the Mission.");
- }
- case 4:
- {
- MissionInfo[mCP4][0] = X; MissionInfo[mCP4][1] = Y; MissionInfo[mCP4][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 4th Checkpoint Line of the Mission.");
- }
- case 5:
- {
- MissionInfo[mCP5][0] = X; MissionInfo[mCP5][1] = Y; MissionInfo[mCP5][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 5th Checkpoint Line of the Mission.");
- }
- case 6:
- {
- MissionInfo[mCP6][0] = X; MissionInfo[mCP6][1] = Y; MissionInfo[mCP6][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 6th Checkpoint Line of the Mission.");
- }
- }
- }
- else if(strcmp(x_mk,"usecp",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/mk usecp [0/1]");
- return 1;
- }
- new toggle = strval(tmp);
- if(toggle == 0 || toggle == 1) { }
- else { SendClientMessage(playerid, COLOR_GREY, " CheckpointUse number must be 0 (OFF) or 1 (ON) !"); return 1; }
- MissionInfo[mToggle] = toggle;
- if(toggle == 0) { SendClientMessage(playerid, COLOR_WHITE, "You've set the Use of Checkpoints to 0 (OFF)."); }
- else if(toggle == 1) { SendClientMessage(playerid, COLOR_WHITE, "You've set the Use of Checkpoints to 1 (ON)."); }
- }
- else if(strcmp(x_mk,"title",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendUsageMessage(playerid, "(/mk title [text]");
- return 1;
- }
- strmid(MissionInfo[mTitle], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the Title of the Mission.");
- }
- else if(strcmp(x_mk,"reward",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/mk reward [price]");
- return 1;
- }
- new price = strval(tmp);
- if(price < 1 || price > 50000) { SendClientMessage(playerid, COLOR_GREY, " Reward Price can't be below 1 or above 50000 !"); return 1; }
- MissionInfo[mReward] = price;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the Reward Price for the Mission.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid Mission Making name !");
- return 1;
- }
- return 1;
- }
- if(strcmp(cmd,"/nrgmk",true)==0)
- {
- if(PlayerInfo[playerid][pClubLeader] != 1)
- {
- SendClientMessage(playerid, COLOR_GREY, " You are not a NRG CLUB Leader !");
- return 1;
- }
- new x_mk[128];
- x_mk = strtok(cmdtext, idx);
- if(!strlen(x_mk)) {
- SendUsageMessage(playerid, "/nrgmk [name]");
- SendClientMessage(playerid, COLOR_GREY, "Available names: (/nrgmk text [number] [text]) (/nrgmk game [number] [text]) (/nrgmk cp [number])");
- SendClientMessage(playerid, COLOR_GREY, "Available names: (/nrgmk title [text]) (/nrgmk reward [price]) (/nrgmk usecp)");
- return 1;
- }
- if(strcmp(x_mk,"text",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/nrgmk text [number] [text]");
- return 1;
- }
- new number = strval(tmp);
- if(number < 1 || number > 3) { SendClientMessage(playerid, COLOR_GREY, " Number can't be below 1 or above 3 !"); return 1; }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendUsageMessage(playerid, "(/nrgmk text [number] [text]");
- return 1;
- }
- switch(number)
- {
- case 1:
- {
- strmid(NRGMissionInfo[nrgmText1], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 1st Text Line of the NRG Mission.");
- }
- case 2:
- {
- strmid(NRGMissionInfo[nrgmText2], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 2nd Text Line of the NRG Mission.");
- }
- case 3:
- {
- strmid(NRGMissionInfo[nrgmText3], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 3rd Text Line of the NRG Mission.");
- }
- }
- }
- else if(strcmp(x_mk,"game",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/nrgmk game [number] [text]");
- return 1;
- }
- new number = strval(tmp);
- if(number < 1 || number > 6) { SendClientMessage(playerid, COLOR_GREY, " Number can't be below 1 or above 6 !"); return 1; }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendUsageMessage(playerid, "(/nrgmk game [number] [text]");
- return 1;
- }
- switch(number)
- {
- case 1:
- {
- strmid(NRGMissionInfo[nrgmGText1], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 1st GameText Line of the NRG Mission.");
- }
- case 2:
- {
- strmid(NRGMissionInfo[nrgmGText2], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 2nd GameText Line of the NRG Mission.");
- }
- case 3:
- {
- strmid(NRGMissionInfo[nrgmGText3], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 3rd GameText Line of the NRG Mission.");
- }
- case 4:
- {
- strmid(NRGMissionInfo[nrgmGText4], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 4th GameText Line of the NRG Mission.");
- }
- case 5:
- {
- strmid(NRGMissionInfo[nrgmGText5], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 5th GameText Line of the NRG Mission.");
- }
- case 6:
- {
- strmid(NRGMissionInfo[nrgmGText6], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 6th GameText Line of the NRG Mission.");
- }
- }
- }
- else if(strcmp(x_mk,"cp",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/nrgmk cp [number]");
- return 1;
- }
- new number = strval(tmp);
- if(number < 1 || number > 6) { SendClientMessage(playerid, COLOR_GREY, " Number can't be below 1 or above 6 !"); return 1; }
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid, X,Y,Z);
- switch(number)
- {
- case 1:
- {
- NRGMissionInfo[nrgmCP1][0] = X; NRGMissionInfo[nrgmCP1][1] = Y; NRGMissionInfo[nrgmCP1][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 1st Checkpoint of the NRG Mission.");
- }
- case 2:
- {
- NRGMissionInfo[nrgmCP2][0] = X; NRGMissionInfo[nrgmCP2][1] = Y; NRGMissionInfo[nrgmCP2][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 2nd Checkpoint Line of the NRG Mission.");
- }
- case 3:
- {
- NRGMissionInfo[nrgmCP3][0] = X; NRGMissionInfo[nrgmCP3][1] = Y; NRGMissionInfo[nrgmCP3][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 3rd Checkpoint Line of the NRG Mission.");
- }
- case 4:
- {
- NRGMissionInfo[nrgmCP4][0] = X; NRGMissionInfo[nrgmCP4][1] = Y; NRGMissionInfo[nrgmCP4][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 4th Checkpoint Line of the NRG Mission.");
- }
- case 5:
- {
- NRGMissionInfo[nrgmCP5][0] = X; NRGMissionInfo[nrgmCP5][1] = Y; NRGMissionInfo[nrgmCP5][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 5th Checkpoint Line of the NRG Mission.");
- }
- case 6:
- {
- NRGMissionInfo[nrgmCP6][0] = X; NRGMissionInfo[nrgmCP6][1] = Y; NRGMissionInfo[nrgmCP6][2] = Z;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the 6th Checkpoint Line of the NRG Mission.");
- }
- }
- }
- else if(strcmp(x_mk,"usecp",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/nrgmk usecp [0/1]");
- return 1;
- }
- new toggle = strval(tmp);
- if(toggle == 0 || toggle == 1) { }
- else { SendClientMessage(playerid, COLOR_GREY, " CheckpointUse number must be 0 (OFF) or 1 (ON) !"); return 1; }
- NRGMissionInfo[nrgmToggle] = toggle;
- if(toggle == 0) { SendClientMessage(playerid, COLOR_WHITE, "You've set the Use of Checkpoints to 0 (OFF)."); }
- else if(toggle == 1) { SendClientMessage(playerid, COLOR_WHITE, "You've set the Use of Checkpoints to 1 (ON)."); }
- }
- else if(strcmp(x_mk,"title",true) == 0)
- {
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendUsageMessage(playerid, "(/nrgmk title [text]");
- return 1;
- }
- strmid(NRGMissionInfo[nrgmTitle], result, 0, strlen(result), 255);
- SendClientMessage(playerid, COLOR_WHITE, "You've made the Title of the NRG Mission.");
- }
- else if(strcmp(x_mk,"reward",true) == 0)
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(x_mk))
- {
- SendUsageMessage(playerid, "/nrgmk reward [price]");
- return 1;
- }
- new price = strval(tmp);
- if(price < 1 || price > 1000) { SendClientMessage(playerid, COLOR_GREY, " Reward Price can't be below 1 or above 1000 !"); return 1; }
- NRGMissionInfo[nrgmReward] = price;
- SendClientMessage(playerid, COLOR_WHITE, "You've made the Reward Price for the NRG Mission.");
- }
- else
- {
- SendClientMessage(playerid, COLOR_GREY, " Invalid NRG Mission Making name !");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement