15.11.2010, 01:25
Im looking for the correct version of the include, "morphinc". I downloaded a bad copy. I keep gettign an error related to "NameTimer". This is the name timer section of the gamemode.
Im looking for a morphinc include to fit that. Please let me know if you can help. Thx.
pawn Код:
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string[128];
NameTimer();
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~g~~n~Owned by ~w~%s~n~Extortion by: %s~n~Entrance Fee: $%d~n~~y~(/enter)",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost]);
}
else
{
format(string, sizeof(string), "~g~For Sale~n~~w~%s~n~~w~$%d~n~%d Level~n~~y~(/buybiz)",SBizzInfo[h][sbMessage],SBizzInfo[h][sbBuyPrice],SBizzInfo[h][sbLevelNeeded]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
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), "~g~Owned by~n~~w~%s~n~%d Level",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
}
else
{
format(string, sizeof(string), "~g~Owned By~n~~w~%s~n~Rent: $%d Level: %d~n~~y~(/rentroom)",HouseInfo[h][hOwner],HouseInfo[h][hRent],HouseInfo[h][hLevel]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
else
{
format(string, sizeof(string), "~g~SALE~n~~w~%s~n~$%d~n~%d Level~n~~y~(/buyhouse)",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
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~g~~n~Owned by ~w~%s~n~Extortion by: %s~n~Entrance Fee: $%d ~n~~y~(/enter)",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost]);
}
else
{
format(string, sizeof(string), "~g~For Sale~n~~w~%s~n~~w~$%d~n~%d Level~n~~y~(/buybiz)",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice],BizzInfo[h][bLevelNeeded]);
}
GameTextForPlayer(i, string, 5000, 3);
return 1;
}
}
}//custompickups end
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(1.0, i, 349.5560,161.6693,1019.9912))
{// All Saints hospital
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if (PlayerToPoint(2.0, i, 1488.6949,-1721.7136,8.2067))
{
GameTextForPlayer(i, "~w~Black ~r~Market", 5000, 3);
}
else if (PlayerToPoint(2.0, i, 1555.5654,-1354.1886,329.4549))
{
SafeGivePlayerWeapon(i, 46, 1);
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,359.5408,206.7693,1008.3828))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Detective~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,347.7374,193.7241,1014.1875))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1215.1304,-11.8431,1000.9219))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~***~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1109.3318,-1796.3042,16.5938))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Jacker~y~ here ~n~~w~Type /takejob if you wish to become one", 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,2077.52,-2013.56,13.54))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Mechanic~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2226.1716,-1718.1792,13.5165))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Bodyguard~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,594.2437,-1249.4027,18.2232))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Dealer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,766.0804,14.5133,1000.7004))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Boxer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1154.2208,-1770.8203,16.5992))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Bus Driver~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2439.7710,-2120.9285,13.5469))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Trucker~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2101.7620,-1812.5922,13.5547))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Pizza Boy~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,-382.6660,-1426.5121,26.2410))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Farmer~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1784.58,-1297.52,13.37))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Paper Boy~y~ here ~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,213.8549,-230.5761,1.7786))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Materials smuggler~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
/*else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2146.3523,-2267.7498,14.2344))
{
GameTextForPlayer(i, "~y~You can get ~r~Materials~y~ from your packages here ~n~~w~Type /materials deliver", 5000, 3);
}*/
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2072.5486,-1582.8029,13.4741))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1611.5129,-1893.6997,13.5469))
{
if(PlayerInfo[i][pJob] > 0 || PlayerInfo[i][pMember] > 0) {}
else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Street Sweeper~n~~w~Type /takejob if you wish to become one", 5000, 3); }
}
else if (PlayerToPoint(2.0, i,379.1396,-114.2661,1001.4922))
{// Pizza Pickup
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,1174.9591,-1369.8761,23.9736))
{
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 (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1381.0413,-1088.8511,27.3906))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~Use /mission to take on a Mission", 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,1599.3876,-2334.0410,13.5394))
{
GameTextForPlayer(i, "~y~You found a guide book~n~ Type ~r~/guide ~y~to read it", 5000, 3);
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(3.0, i,1737.5134,-1270.8007,13.5446))
{
GameTextForPlayer(i, "~g~Advertisment business~w~~n~Owner: ABC Studio~n~Post your ~g~/ad~w~ here", 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][pMember] == 16 || PlayerInfo[i][pLeader] == 16 || PlayerInfo[i][pJob] == 20)
{
format(string, sizeof(string), "~w~Drugs Farm~n~Farm Owner: La Famiglia Sinatra~n~Drugs ammount:~r~ %d~n~~w~You can /smuggledrugs here", drugsys[DrugAmmount]);
GameTextForPlayer(i, string, 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only!", 5000, 3);
}
}
else if (GetPlayerState(i) == 1 && PlayerToPoint(2.0, i,2022.1492,-1108.7837,26.2031))
{
if(PlayerInfo[i][pMember] == 16 || PlayerInfo[i][pLeader] == 16)
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become ~r~Drugs Smuggler~n~~w~Type /takejob if you wish to become one", 5000, 3);
}
else
{
GameTextForPlayer(i, "~r~Staff only", 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)
{
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) == 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~Owner : %s~n~Entrance Fee : ~g~$%d ~w~~n~to enter type /enter",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~Staff only !", 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~Staff only !", 5000, 3);
}
}
else if(PlayerToPoint(2.0, i,1073.0619,-344.5148,73.9922))
{
if(OrderReady[i] > 0)
{
switch (OrderReady[i])
{
case 1:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 5000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 2:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 6000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 3:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1);
SafeGivePlayerMoney(i, - 6000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 4:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 5:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8000);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 6:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 31, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8500);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
case 7:
{
SafeGivePlayerWeapon(i, 24, 50); SafeGivePlayerWeapon(i, 29, 500); SafeGivePlayerWeapon(i, 25, 50); SafeGivePlayerWeapon(i, 30, 500); SafeGivePlayerWeapon(i, 4, 1); SafeGivePlayerWeapon(i, 34, 20);
SafeGivePlayerMoney(i, - 8500);
SendClientMessage(i, COLOR_WHITE, "* You picked up your Ordered Package.");
}
}
OrderReady[i] = 0;
}
}//Hitman delivery stuff
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;
}