26.01.2012, 19:29
Estava fazendo alguns pedбgios, mas nгo sei a quantia de "Chaves" que tenho que por em cada um..
Sei que sу um pedбgio funciona perfeitamente com apenas x3 "Chaves" no final..
Help me
Sei que sу um pedбgio funciona perfeitamente com apenas x3 "Chaves" no final..
Help me

pawn Code:
public Checkpedagio2()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected( i))continue;
if(PlayerToPoint(8.0, i,-158.1350,404.9151,12.0781) && !pedagyo[i])//pegadio 1
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-158.1350,404.9151,12.0781) && !pedagyo[i])//pegadio 1
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(8.0, i,-1519.2513,-818.3087,58.3869) && !pedagyo[i])//pegadio 2
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-1519.2513,-818.3087,58.3869) && !pedagyo[i])//pegadio 2
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(8.0, i,1760.3850,558.3580,25.4297) && !pedagyo[i])//pegadio 3
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,1760.3850,558.3580,25.4297) && !pedagyo[i])//pegadio 3
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(10.0, i,1742.8715,563.3571,25.4760) && !pedagyo[i]) //pegadio 3
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,1742.8715,563.3571,25.4760) && !pedagyo[i]) //pegadio 3
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(8.0, i,517.7004,476.6090,18.9296) && !pedagyo[i])//pegadio 4
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,517.7004,476.6090,18.9296) && !pedagyo[i])//pegadio 4
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(14.0, i,-2874.1379,-947.7515,9.4921) && !pedagyo[i])//pegadio 5
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-2874.1379,-947.7515,9.4921) && !pedagyo[i])//pegadio 5
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(9.0, i,-2690.5278,1269.3605,55.9455) && !pedagyo[i])//pegadio 6
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-2690.5278,1269.3605,55.9455) && !pedagyo[i])//pegadio 6
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(9.0, i,-2672.4221,1269.3739,55.9455) && !pedagyo[i])//pegadio 6
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-2672.4221,1269.3739,55.9455) && !pedagyo[i])//pegadio 6
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(7.0, i,-1419.8139,816.5017,47.2905) && !pedagyo[i])//pegadio 7
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-1419.8139,816.5017,47.2905) && !pedagyo[i])//pegadio 7
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(7.0, i,-1498.0595,805.8170,47.2931) && !pedagyo[i])//pegadio 7
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,-1498.0595,805.8170,47.2931) && !pedagyo[i])//pegadio 7
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(5.0, i,2767.1616,468.0519,8.2897) && !pedagyo[i])//pegadio 8
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,2767.1616,468.0519,8.2897) && !pedagyo[i])//pegadio 8
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(8.0, i,52.3699,-1525.1959,5.0452) && !pedagyo[i])//pegadio 9
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,52.3699,-1525.1959,5.0452) && !pedagyo[i])//pegadio 9
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
if(PlayerToPoint(8.0, i,49.0865,-1537.6782,5.1550) && !pedagyo[i])//pegadio 9
{
if(IsPlayerInAnyVehicle(i))
{
GivePlayerGP(i, -50);
GameTextForPlayer(i,"~r~Pagando Pedagio",2000,3);
TogglePlayerControllable( i, 0);
PlayerCuffed[i] = 1;
PlayerCuffedTime[i] = 4;
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 1;
}
} else if(!PlayerToPoint(8.0, i,49.0865,-1537.6782,5.1550) && !pedagyo[i])//pegadio 9
{
GameTextForPlayer(i,"~g~Pedagio Pago R$45",1000,3);
SendClientMessage(i, COLOR_YELLOW, "Pedagio Pago R$45.");
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
pedagyo[i] = 0;
}
}
}
}
}
}