17.11.2013, 23:12
First of all, excuse my English.
He was using a fs I found here.
FS:Fireman
I was going to my gm.
But it gives me problems.
In the callback OnPlayerEnterCheckpoint
the first if if run, but the second and no, not the following.
If I put another gm works perfectly, use the gm of NGG, an older version.
This is the fs
https://sampforum.blast.hk/showthread.php?tid=468380
He was using a fs I found here.
FS:Fireman
I was going to my gm.
But it gives me problems.
In the callback OnPlayerEnterCheckpoint
the first if if run, but the second and no, not the following.
If I put another gm works perfectly, use the gm of NGG, an older version.
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
{
if(FiremanJob[playerid] == 1)
{
FiremanJob[playerid] = 2;
SetTimerEx("Descarca", 1000, 0, "i", playerid);
GameTextForPlayer(playerid, "~g~Subir agua...", 2000, 5);
SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//2
SendClientMessage(playerid,COLOR_AQUA,"* Sale del fuego!");
SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
}
else if(FiremanJob[playerid] == 2)
{
FiremanJob[playerid] = 3;
SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SetPlayerCheckpoint(playerid,2449.0610, -1274.9933, 23.4286,4);//1
SendClientMessage(playerid,COLOR_AQUA,"*Apaga el fuego y vuelve a la base!");
}
else if(FiremanJob[playerid] == 3)
{
FiremanJob[playerid] = 4;
SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//2
GameTextForPlayer(playerid, "~g~Llenando agua...", 2000, 5);
SendClientMessage(playerid,COLOR_AQUA,"* sale del fuego!");
SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2438.04688, -1271.21838, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2435.11060, -1270.86462, 23.22764,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.60400, -1274.67651, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2434.87476, -1278.60217, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.10645, -1279.20044, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2438.35132, -1275.54395, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
CreateExplosion(2433.57251, -1269.59546, 23.42864,1,100);
}
else if(FiremanJob[playerid] == 4)
{
FiremanJob[playerid] = 5;
SetPlayerCheckpoint(playerid,807.4693, -1690.9219, 12.3747,4);//3
SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid,COLOR_YELLOW,"* Dute stinge focu!");
}
else if(FiremanJob[playerid] == 5)
{
FiremanJob[playerid] = 6;
SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//3
SetTimerEx("busroutestoptimer", 3000, false, "i", playerid);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~g~Llenando agua...", 2000, 5);
SendClientMessage(playerid,COLOR_YELLOW,"*Apaga el feugo y ve a la base");
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(798.45123, -1689.74084, 13.06241,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(794.80164, -1690.99963, 13.78167,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(797.27179, -1694.94678, 13.16647,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(798.41132, -1687.45667, 13.06241,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(799.21808, -1691.95740, 12.75940,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(797.75031, -1693.45801, 13.06241,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
CreateExplosion(794.52057, -1687.30396, 13.78167,1,100);
}
else if(FiremanJob[playerid] == 6)
{
FiremanJob[playerid] = 0;
SetPlayerCheckpoint(playerid,1099.0345,-1194.4751,18.1079,4);//40
GameTextForPlayer(playerid, "~g~!!~w~Felicidades ~r~ganas 500~b~k ~g~!!!...", 2000, 5);
GivePlayerMoney(playerid, 500000); //You can edit this
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_AQUA,"* has ganado 500k $!");
}
}
return 1;
}
https://sampforum.blast.hk/showthread.php?tid=468380