Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public CustomPickups()
- {
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new string[128];
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- GetPlayerPos(i, oldposx, oldposy, oldposz);
- new tmpcar = GetPlayerVehicleID(i);
- if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0)
- {
- for(new h = 0; h < sizeof(SBizzInfo); h++)
- {
- if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
- {
- format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",SBizzInfo[h][sbMessage],(SBizzInfo[h][sbMaxProducts]-SBizzInfo[h][sbProducts]),SBizzInfo[h][sbPriceProd],SBizzInfo[h][sbTill]);
- GameTextForPlayer(i, string, 5000, 3);
- return 1;
- }
- if(PlayerToPoint(2.0, i, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]))
- {
- if(SBizzInfo[h][sbOwned] == 1)
- {
- format(string, sizeof(string), "~w~%s~n~~r~Propietario:~n~~w~%s~n~~r~Entrada:~w~%d$",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbEntranceCost]);
- }
- else
- {
- format(string, sizeof(string), "~w~%s~n~~r~Precio:~w~%d$~n~~r~Nivel:~w~%d",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
- }
- GameTextForPlayer(i, string, 5000, 3);
- TextDrawShowForPlayer(i, HouseDraw[i]);
- TextDrawSetString(HouseDraw[i], string);
- return 1;
- }
- else
- {
- TextDrawHideForPlayer(i, HouseDraw[i]);
- }
- }
- for(new h = 0; h < sizeof(HouseInfo); h++) // SEGUIR AQUÍ
- {
- if(PlayerToPoint(2.0, i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]))
- {
- if(HouseInfo[h][hOwned] == 1)
- {
- if(HouseInfo[h][hRentabil] == 0)
- {
- format(string, sizeof(string), "~r~~h~Propiedad Privada~n~~y~%s",HouseInfo[h][hOwner]);
- }
- else
- {
- format(string, sizeof(string), "~r~~h~Propiedad Privada~n~~y~---------------~r~Renta: ~w~%d~g~$~n~~r~Dueño: ~w~%s~n~~y~---------------~n~~b~~h~/rcuarto",HouseInfo[h][hRent],HouseInfo[h][hOwner]);
- }
- GameTextForPlayer(i, string, 5000, 3);
- TextDrawShowForPlayer(i, HouseDraw[i]);
- TextDrawSetString(HouseDraw[i], string);
- return 1;
- }
- else
- {
- format(string, sizeof(string), "~g~~h~Casa en Venta~n~~y~---------------~r~Precio:~w~%d~n~~r~Nivel:~w~%d~n~~y~---------------~n~~b~~h~/comprarcasa",HouseInfo[h][hValue],HouseInfo[h][hLevel]);
- }
- GameTextForPlayer(i, string, 5000, 3);
- TextDrawShowForPlayer(i, HouseDraw[i]);
- TextDrawSetString(HouseDraw[i], string);
- return 1;
- }
- else
- {
- TextDrawHideForPlayer(i, HouseDraw[i]);
- }
- }
- for(new h = 0; h < sizeof(BizzInfo); h++)
- {
- if(IsATruck(tmpcar) && PlayerToPoint(10.0, i, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
- {
- format(string, sizeof(string), "~w~%s~n~~r~Products Required~w~: %d~n~~y~Price per Product: ~w~: $%d~n~~g~Funds: ~w~: $%d",BizzInfo[h][bMessage],(BizzInfo[h][bMaxProducts]-BizzInfo[h][bProducts]),BizzInfo[h][bPriceProd],BizzInfo[h][bTill]);
- GameTextForPlayer(i, string, 5000, 3);
- return 1;
- }
- if(PlayerToPoint(2.0, i, BizzInfo[h][bEntranceX],BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]))
- {
- if(BizzInfo[h][bOwned] == 1)
- {
- format(string, sizeof(string), "~w~%s~n~~r~Propietario:~n~~w~%s~n~~r~Entrada:~w~%d$",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bEntranceCost]);
- }
- else
- {
- format(string, sizeof(string), "~w~%s~n~~r~Precio:~w~%d$~n~~r~Nivel:~w~%d",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
- }
- GameTextForPlayer(i, string, 5000, 3);
- TextDrawShowForPlayer(i, HouseDraw[i]);
- TextDrawSetString(HouseDraw[i], string);
- return 1;
- }
- else
- {
- TextDrawHideForPlayer(i, HouseDraw[i]);
- }
- }
- }
- if (PlayerToPoint(2.0, i, 246.7753,126.0478,1003.2188))
- {
- GameTextForPlayer(i, "~w~Equipo De policia SFPD ~b~/equipo u /duty", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 259.2224,108.2240,1003.2188))
- {
- GameTextForPlayer(i, "~w~Ascensor ~b~SFPD ~w~Pretona Enter", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, -1606.2228,672.5144,-5.2422))
- {
- GameTextForPlayer(i, "~w~Ascensor ~b~SFPD ~w~Pretona Enter", 5000, 3);
- }
- else if (PlayerToPoint(3.0, i, 53.22926, -1526.183, 5.044313))
- {
- GameTextForPlayer(i, "~w~Peaje LS/SF ~g~Costo 20$ ~p~/peaje", 5000, 3);
- }
- else if (PlayerToPoint(3.0, i, 49.68357, -1535.63, 5.14347))
- {
- GameTextForPlayer(i, "~w~Peaje SF/LS ~g~Costo 20$ ~p~/peaje", 5000, 3);
- }
- else if (PlayerToPoint(3.0, i, -889.5368,-1106.9081,98.9554))
- {
- GameTextForPlayer(i, "~w~Bienvenido a la ciudad de ~p~San Fierro", 5000, 3);
- }
- else if (PlayerToPoint(3.0, i, -1302.2960,439.8679,7.4157))
- {
- GameTextForPlayer(i, "~w~Armamento Fuerzas Armadas SA. ~p~/fequipo", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 1625.0872,-2150.8733,13.6528) || PlayerToPoint(2.0,i,-1504.0095,744.4131,7.3706))
- {
- GameTextForPlayer(i, "~b~Uniforme de mecanico ~p~/mequipo", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 308.2764,-141.2257,999.6016) || PlayerToPoint(2.0,i,312.5481,-165.7466,999.6010))
- {
- GameTextForPlayer(i, "~b~Armunnation Store Of Armas ~p~/lap", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 1516.8812,-1611.6029,13.7969))
- {
- GameTextForPlayer(i, "~b~Binco Tienda SA ~p~/binco", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 1257.1499,-790.5883,1084.0078))
- {
- GameTextForPlayer(i, "~y~utiliza ~p~/beber ~w~para tomarte un trago...", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i, 1488.6949,-1721.7136,8.2067))
- {
- GameTextForPlayer(i, "~w~Black ~r~Market", 5000, 3);
- }
- else if (PlayerToPoint(3, i,1083.5182,-1226.3958,15.8203) || PlayerToPoint(2.0, i,2172.2944,-2263.5789,13.3339))
- {
- GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Use /materials deliver", 5000, 3);
- DisablePlayerCheckpoint(i);
- }
- else if (PlayerToPoint(2.0, i,2481.0830,-1332.0359,28.2079) || PlayerToPoint(2.0, i,1423.8865,-1319.1508,13.5547))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else {
- GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Use /materials get", 5000, 3);
- SetPlayerCheckpoint(i, 1083.5182,-1226.3958,15.8203, 5.0);
- }
- }
- else if (PlayerToPoint(2.0, i,-2022.2184,-116.6538,1035.1719))
- {
- GameTextForPlayer(i, "~r~Escuela de Conduccion~n~~w~ Type: /examen Para empezar el test de manejo~n~~g~Precio: $100", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i,1497.9254,-1640.7958,14.0469))
- {
- GameTextForPlayer(i, "~r~Yakuza ~b~BlackMarket ~n~~w~/bmbuy", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i,-2033.0465,-117.3363,1035.1719))
- {
- GameTextForPlayer(i, "~r~Tienda de Licencias~n~~w~/licencia", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1793.02,-1296.56,13.44))
- {
- if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pLeader] == 9) { GameTextForPlayer(i, "~w~Type ~r~/paper ~w~to create a newspaper",5000,3); }
- else if(PlayerInfo[i][pJob] == 15) { GameTextForPlayer(i, "~w~Type ~r~/papers ~w~to see all the made newspapers",5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2141.1472,-244.6000,36.5156))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Vendedor de armas~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2290.3542,-1795.9713,13.5469))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Vendedor de Drogas~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,766.0804,14.5133,1000.7004))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Boxer~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2109.2832,1.0447,35.3203))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Ladron~y~ aqui ~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,213.8549,-230.5761,1.7786))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Materials smuggler~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2072.5486,-1582.8029,13.4741))
- {
- if(PlayerInfo[i][pJob] > 0) {}
- else { GameTextForPlayer(i, "~g~Bienvenido,~n~~y~Usted puede hacerse ~r~Drugs Dealer~y~~n~~w~Escriba /empleo si desea este empleo", 5000, 3); }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,761.6419,5.8016,1000.7106))
- {
- GameTextForPlayer(i, "~p~desea mejorar su lucha? ~n~~w~/lucha", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,362.6689,173.5501,1008.3828) || PlayerToPoint(2.0, i,2643.1829,1216.4512,26.9233))
- {
- GameTextForPlayer(i, "~r~Ayuntamiento ~n~~w~Para Legalizarse ~n~~g~/legalizarme", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.4155,184.0848,1008.3828) ||PlayerToPoint(2.0, i,2645.0654,1208.0880,26.9233))
- {
- GameTextForPlayer(i, "~r~Ayuntamiento ~n~~w~Para Trabajar ~n~~g~/trabajo", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-2424.4548,503.0187,30.0781))
- {
- GameTextForPlayer(i, "~b~Equpo FBI~n~~w~Usalo Con Cuidado~n~~g~/gequipo", 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2549.2502,-1293.5389,1044.1250))
- {
- GameTextForPlayer(i, "~b~Fabrica de Drogas ~n~~w~/Recogerdrogas", 5000, 3);
- }
- else if (PlayerToPoint(2.0, i,379.1396,-114.2661,1001.4922))
- {
- if (PlayerInfo[i][pJob] != 17)
- {
- SendClientMessage(i, COLOR_GREY, "You are not a pizza stack worker");
- return 1;
- }
- if (sPizza[i] != 1)
- {
- SendClientMessage(i, COLOR_WHITE, "You have picked a cooked pizza, wait for orders");
- sPizza[i] = 1;
- }
- }
- else if (PlayerToPoint(2.0, i,1174.9100,-1365.7330,13.9876))
- {
- if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) { SetTimerEx("elevator1", 1000, false, "i", i); }
- else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
- }
- else if (PlayerToPoint(2.0, i,1161.4622,-1343.2683,26.6235))
- {
- if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4) { SetTimerEx("elevator2", 1000, false, "i", i); }
- else { GameTextForPlayer(i, "~r~You can not use an elevator", 5000, 3); }
- }
- else if (PlayerToPoint(3.0, i,-38.8664,56.3031,3.1172))
- {
- if(PlayerInfo[i][pMember] == 6 || PlayerInfo[i][pLeader] == 6 || PlayerInfo[i][pJob] == 19)
- {
- format(string, sizeof(string), "~r~Drugs ammount: %d", drugsys[DrugAmmount]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- else if(PlayerInfo[i][pJob] == 4)
- {
- format(string, sizeof(string), "~w~Granja Ilegal~n~Exportacion de Drogas: Granjeros~n~Cantidad de Drogas:~r~ %d~n~~w~Puedes /importardrogas aqui", drugsys[DrugAmmount]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- else
- {
- GameTextForPlayer(i, "~r~Solo Personal!", 5000, 3);
- }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2022.1492,-1108.7837,26.2031))
- {
- if(PlayerInfo[i][pJob] == 4)
- {
- GameTextForPlayer(i, "~g~Bienvenido,~n~~y~you can become ~r~Drugs Smuggler~n~~w~Escriba /empleo si desea este empleo", 5000, 3);
- }
- else
- {
- GameTextForPlayer(i, "~r~Solo Personal", 5000, 3);
- }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i,242.7591,66.4315,1003.6406))
- {
- if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3)
- {
- GameTextForPlayer(i, "~g~Elevador LSPD~n~~w~Comandos: ~r~/pdup ~w~Para subir~n~ ~r~/pddown ~w~Para bajar", 5000, 3);
- }
- else
- {
- GameTextForPlayer(i, "~r~No eres miembro LSPD!", 5000, 3);
- }
- }
- else if (GetPlayerState(i) == 2 && PlayerToPoint(3, i,2073.2979,-1831.1228,13.5469) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,1024.9756,-1030.7930,32.0257) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,488.3819,-1733.0563,11.1752) || GetPlayerState(i) == 2 && PlayerToPoint(3, i,719.8940,-464.8272,16.3359))
- {
- format(string, sizeof(string), "~y~Pay ~r~& ~g~Spray~w~~n~Dueno : %s~n~Costo entrada : ~g~$%d ~w~~n~Para entrar /entrar",SBizzInfo[5][sbOwner],SBizzInfo[5][sbEntranceCost]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(1.5, i, 248.4994,-33.1366,1.5781))
- {
- if(PlayerInfo[i][pJob] == 22)
- {
- GameTextForPlayer(i, "~w~Materials factory~n~You can ~r~/smugglemats ~w~here", 5000, 3);
- }
- else
- {
- GameTextForPlayer(i, "~r~Solo Personal !", 5000, 3);
- }
- }
- else if (GetPlayerState(i) == 1 && PlayerToPoint(1.0, i, 2230.3579,-2286.2107,14.3751))
- {
- if(PlayerInfo[i][pJob] == 22)
- {
- format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d", matssys[MatsAmmount]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- else if(PlayerInfo[i][pJob] == 23)
- {
- format(string, sizeof(string), "~w~Materials Bank~n~Materials ammount: ~r~%d ~n~~w~You can ~g~/buymats ~w~here", matssys[MatsAmmount]);
- GameTextForPlayer(i, string, 5000, 3);
- }
- else
- {
- GameTextForPlayer(i, "~r~Solo Personal !", 5000, 3);
- }
- }
- else if(PlayerToPoint(2.0, i,1911.8004,154.1942,37.2079))
- {
- if(OrderReady[i] > 0)
- {
- switch (OrderReady[i])
- {
- case 1:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 4, 1);
- SafeGivePlayerMoney(i, - 2000);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- case 2:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 31, 500); JB_GivePlayerWeapon(i, 4, 1);
- SafeGivePlayerMoney(i, - 2000);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- case 3:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 30, 500); JB_GivePlayerWeapon(i, 4, 1);
- SafeGivePlayerMoney(i, - 4000);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- case 4:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 31, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
- SafeGivePlayerMoney(i, - 5000);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- case 5:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 30, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
- SafeGivePlayerMoney(i, -5000);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- case 6:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 31, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
- SafeGivePlayerMoney(i, - 5500);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- case 7:
- {
- JB_GivePlayerWeapon(i, 24, 50); JB_GivePlayerWeapon(i, 29, 500); JB_GivePlayerWeapon(i, 25, 50); JB_GivePlayerWeapon(i, 30, 500); JB_GivePlayerWeapon(i, 4, 1); JB_GivePlayerWeapon(i, 34, 20);
- SafeGivePlayerMoney(i, - 5500);
- SendClientMessage(i, COLOR_WHITE, "* Has Pagado y Recogido tu pedido..");
- }
- }
- OrderReady[i] = 0;
- }
- }
- else if(PlayerOnMission[i] > 0 && PlayMission[kToggle] == 0)
- {
- if(MissionCheckpoint[i] == 1 && PlayerToPoint(10.0, i,PlayMission[kCP1][0],PlayMission[kCP1][1],PlayMission[kCP1][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText1]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText4]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText5]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText6]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- MissionCheckpoint[i] = 2;
- }
- else if(MissionCheckpoint[i] == 2 && PlayerToPoint(10.0, i,PlayMission[kCP2][0],PlayMission[kCP2][1],PlayMission[kCP2][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText2]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText7]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText8]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText9]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- MissionCheckpoint[i] = 3;
- }
- else if(MissionCheckpoint[i] == 3 && PlayerToPoint(10.0, i,PlayMission[kCP3][0],PlayMission[kCP3][1],PlayMission[kCP3][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText3]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText10]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText11]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText12]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- MissionCheckpoint[i] = 4;
- }
- else if(MissionCheckpoint[i] == 4 && PlayerToPoint(10.0, i,PlayMission[kCP4][0],PlayMission[kCP4][1],PlayMission[kCP4][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText4]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText13]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText14]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText15]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- MissionCheckpoint[i] = 5;
- }
- else if(MissionCheckpoint[i] == 5 && PlayerToPoint(10.0, i,PlayMission[kCP5][0],PlayMission[kCP5][1],PlayMission[kCP5][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText5]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "%s", PlayMission[kText16]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText17]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- format(string, sizeof(string), "%s", PlayMission[kText18]);
- SendClientMessage(i, COLOR_YELLOW2, string);
- MissionCheckpoint[i] = 6;
- }
- else if(MissionCheckpoint[i] == 6 && PlayerToPoint(10.0, i,PlayMission[kCP6][0],PlayMission[kCP6][1],PlayMission[kCP6][2]))
- {
- RingTone[i] = 20;
- format(string, sizeof(string), "%s", PlayMission[kGText6]);
- GameTextForPlayer(i, string, 8000, 3);
- format(string, sizeof(string), "..:: Mission Passed : %s | Reward received: $%d ::..", PlayMission[kTitle], PlayMission[kReward]);
- SendClientMessage(i, COLOR_GREEN, string);
- SafeGivePlayerMoney(i, PlayMission[kReward]);
- PlayerInfo[i][pMissionNr] = PlayerOnMission[i];
- MissionCheckpoint[i] = 0;
- PlayerOnMission[i] = 0;
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment