10.12.2012, 20:24
pawn Код:
public CustomPickups()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GameTextForPlayer(i, "~w~ Pedagio Pago!~n~~r~ -20 Reais.", 3000, 1);
SendClientMessage(i, COLOR_YELLOW, "Pedбgio Pago! -R$-20!");
GivePlayerMoney(i, -20);
SBizzInfo[9][sbTill] += 20;
ExtortionSBiz(9, 500);
SetTimerEx("ReduzTempo", 20000, false, "i", i);
Reduzido[i] = 1;
}
}
else if (PlayerToPoint(15.0, i, -2672.4253, 1280.6934, 55.9456) || PlayerToPoint(15.0, i, -2690.4136, 1268.3032, 55.9456))
{
if (Reduzido[i] == 0)
{
GameTextForPlayer(i, "~w~ Pedagio Pago!~n~~r~ -20 Reais.", 3000, 1);
SendClientMessage(i, COLOR_YELLOW, "Pedбgio Pago! -R$-20!");
GivePlayerMoney(i, -20);
SBizzInfo[9][sbTill] += 20;
ExtortionSBiz(9, 20);
SetTimerEx("ReduzTempo", 20000, false, "i", i);
Reduzido[i] = 1;
}
}
else if (PlayerToPoint(22.0, i, 2514.2334, 292.2852, 29.3627) || PlayerToPoint(22.0, i, 2540.9075, 310.9224, 28.8231))
{
if (Reduzido[i] == 0)
{
GameTextForPlayer(i, "~w~ Pedagio Pago!~n~~r~ -20 Reais.", 3000, 1);
SendClientMessage(i, COLOR_YELLOW, "Pedбgio Pago! -R$-20!");
GivePlayerMoney(i, -20);
SBizzInfo[9][sbTill] += 20;
ExtortionSBiz(9, 20);
SetTimerEx("ReduzTempo", 20000, false, "i", i);
Reduzido[i] = 1;
}
}
else if (PlayerToPoint(15.0, i, 81.8500, -1259.7455, 14.3465) || PlayerToPoint(15.0, i, 96.9080, -1280.1302, 14.1135))
{
if (Reduzido[i] == 0)
{
GameTextForPlayer(i, "~w~ Pedagio Pago!~n~~r~ -20 Reais.", 3000, 1);
SendClientMessage(i, COLOR_YELLOW, "Pedбgio Pago! -R$-20!");
GivePlayerMoney(i, -20);
SBizzInfo[9][sbTill] += 20;
ExtortionSBiz(9, 20);
SetTimerEx("ReduzTempo", 20000, false, "i", i);
Reduzido[i] = 1;
}
}
else if (PlayerToPoint(15.0, i, 1745.8721, 525.1683, 27.6760) || PlayerToPoint(15.0, i, 1752.5485, 523.1072, 27.6667) || PlayerToPoint(15.0, i, 1734.7725, 529.1494, 27.6652) || PlayerToPoint(15.0, i, 1728.3962, 531.7761, 27.6392))
{
if (Reduzido[i] == 0)
{
GameTextForPlayer(i, "~w~ Pedagio Pago!~n~~r~ -20 Reais.", 3000, 1);
SendClientMessage(i, COLOR_YELLOW, "Pedбgio Pago! -R$-20!");
GivePlayerMoney(i, -20);
SBizzInfo[9][sbTill] += 20;
ExtortionSBiz(9, 20);
SetTimerEx("ReduzTempo", 20000, false, "i", i);
Reduzido[i] = 1;
}
}
else if (PlayerToPoint(15.0, i, 519.0666, 468.8470, 18.9297) || PlayerToPoint(15.0, i, 524.3035, 472.9212, 18.9297) || PlayerToPoint(15.0, i, -181.2493, 329.5744, 12.0781) || PlayerToPoint(15.0, i, -175.0119, 327.9676, 12.0781))
{
if (Reduzido[i] == 0)
{
GameTextForPlayer(i, "~w~ Pedagio Pago!~n~~r~ -20 Reais.", 3000, 1);
SendClientMessage(i, COLOR_YELLOW, "Pedбgio Pago! -R$-20!");
GivePlayerMoney(i, -20);
SBizzInfo[9][sbTill] += 20;
ExtortionSBiz(9, 20);
SetTimerEx("ReduzTempo", 20000, false, "i", i);
Reduzido[i] = 1;
}
}
else if (PlayerToPoint(2.0, i, 1544.0869, -1353.1323, 329.4746))
{ // Ganhar Paraquedas Prйdio
GivePlayerWeapon(i, 46, 1);
}
else if (PlayerToPoint(1, i, 822.0201, 4.2154, 1004.1797) || PlayerToPoint(1, i, 822.0099, 6.3927, 1004.1797) || PlayerToPoint(1, i, 822.0087, -0.1116, 1004.1797) || PlayerToPoint(1, i, 822.0237, 1.7826, 1004.1797))
{ //loterica
GameTextForPlayer(i, "~y~Digite ~r~/loteria ~y~para comprar um bilhete!", 5000, 5);
}
else if (PlayerToPoint(3.0, i, 256.0320, 84.5082, 1002.4453))
{
if (PlayerInfo[i][pEmprego] == 2)
{
GameTextForPlayer(i, "~g~PAGUE 5K e, ~n~ ~w~ | Digite ~y~/autorizacao |", 5000, 5);
}
}
else if (PlayerToPoint(1.5, i, 1535.5697, -1637.5358, 13.5469) || PlayerToPoint(1.5, i, 1710.8175, -1605.0188, 13.5469) || PlayerToPoint(1.5, i, 1808.1926, -1598.6720, 13.5469) || PlayerToPoint(1.5, i, 1611.2460, -1713.0765, 13.5469) || PlayerToPoint(1.5, i, 1362.9312, -1751.3467, 13.5244) || PlayerToPoint(1.5, i, 1804.5630, -1167.7408, 23.8281) || PlayerToPoint(1.5, i, 814.5628, -1355.5433, 13.5414) || PlayerToPoint(1.5, i, 839.7822, -1339.5476, 7.1719) || PlayerToPoint(1.5, i, 522.3236, -1515.9530, 14.5936) || PlayerToPoint(1.5, i, 523.9922, -1525.5927, 14.7482) || PlayerToPoint(1.5, i, 547.3288, -1498.3148, 14.4988) || PlayerToPoint(1.5, i, 637.4054, -1228.4910, 17.8721) || PlayerToPoint(1.5, i, 356.4761, -1365.3461, 14.4760) || PlayerToPoint(1.5, i, 338.9698, -1397.1982, 14.2238) || PlayerToPoint(1.5, i, 248.2463, -1448.8539, 13.5899) || PlayerToPoint(1.5, i, 2232.8149, -1165.7214, 25.8906) || PlayerToPoint(1.5, i, 2219.9551, -1154.7574, 1025.7969) || PlayerToPoint(1.5, i, 1723.9048, -1720.7859, 13.5437) || PlayerToPoint(1.5, i, 1720.4819, -1720.9020, 13.5442))
{
GameTextForPlayer(i, "~w~Orelhao, ~n~Digite ~b~/orelhao ~n~~w~Sem Agenda? ~b~~n~Digite ~y~/gps ~r~Mercado", 8000, 5);
}
else if (PlayerToPoint(3, i, 2224.9143, 2522.0771, 10.8203))
{
GameTextForPlayer(i, "~y~Casamento ~n~~r~Digite ~w~/ajudacasamento", 5000, 5);
}
else if (PlayerToPoint(3, i, 1991.7828, -1183.4724, 20.5116) || PlayerToPoint(3, i, 1948.1309, -1215.2512, 20.5019))
{
GameTextForPlayer(i, "~r~Pescaria, ~n~~r~Digite ~y~/ajudapescaria", 5000, 5);
}
else if (PlayerToPoint(2.0, i, 1007.9274, -1541.3163, 13.5671) && GetPlayerOrg(i) == 8 || PlayerToPoint(2.0, i, 1656.9484, -1793.7782, 13.5478) && GetPlayerOrg(i) == 22)
{
if (OrderReady[i] > 0)
{
switch (OrderReady[i])
{
case 1:
{
GivePlayerWeapon(i, 24, 50);
GivePlayerWeapon(i, 29, 300);
GivePlayerWeapon(i, 33, 50);
GivePlayerWeapon(i, 4, 1);
//SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 2:
{
GivePlayerWeapon(i, 24, 100);
GivePlayerWeapon(i, 29, 400);
GivePlayerWeapon(i, 34, 100);
GivePlayerWeapon(i, 4, 1);
//SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 3:
{
GivePlayerWeapon(i, 24, 200);
GivePlayerWeapon(i, 29, 500);
GivePlayerWeapon(i, 33, 200);
GivePlayerWeapon(i, 30, 200);
GivePlayerWeapon(i, 4, 1);
//SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 4:
{
GivePlayerWeapon(i, 24, 200);
GivePlayerWeapon(i, 29, 500);
GivePlayerWeapon(i, 34, 300);
GivePlayerWeapon(i, 31, 300);
GivePlayerWeapon(i, 4, 1);
GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 5:
{
GivePlayerWeapon(i, 24, 400);
GivePlayerWeapon(i, 29, 500);
GivePlayerWeapon(i, 33, 400);
GivePlayerWeapon(i, 30, 400);
GivePlayerWeapon(i, 4, 1);
GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 6:
{
GivePlayerWeapon(i, 24, 300);
GivePlayerWeapon(i, 29, 500);
GivePlayerWeapon(i, 34, 500);
GivePlayerWeapon(i, 31, 500);
GivePlayerWeapon(i, 4, 1);
GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 7:
{
GivePlayerWeapon(i, 24, 300);
GivePlayerWeapon(i, 29, 500);
GivePlayerWeapon(i, 34, 500);
GivePlayerWeapon(i, 30, 500);
GivePlayerWeapon(i, 4, 1);
GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 8:
{
GivePlayerWeapon(i, 24, 900);
GivePlayerWeapon(i, 29, 900);
GivePlayerWeapon(i, 27, 900);
GivePlayerWeapon(i, 30, 900);
GivePlayerWeapon(i, 4, 1);
GivePlayerWeapon(i, 34, 900);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100);
GivePlayerMoney(i, 1000);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu Bфnus Especial, Paranйns !");
}
}
OrderReady[i] = 0;
}
}
return true;
}