17.09.2012, 01:13
Nao consegui identificar erro O.O
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(PlayerInfo[playerid][pAdmin] == 2000 || PlayerInfo[playerid][pVip] == 1)
{
new nos = GetPlayerVehicleID(playerid);
if(Nitro(nos) && (oldkeys & 1 || oldkeys & 4))
{
RemoveVehicleComponent(nos, 1010);
AddVehicleComponent(nos, 1010);
}
}
}
if(newkeys == 16)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1154.2256, -1772.0620, 16.5992)) //entrada agencia
{
SetPlayerPos(playerid, 2305.6873, -16.0981, 26.7496);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2306.6128,-16.2236,26.7496)) //saida de dentro da agencia
{
SetPlayerPos(playerid, 1154.2256, -1772.0620, 16.5992);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1554.9529, -1675.5452, 16.1953)) //DP Ls
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 246.7995, 65.9249, 1003.6406); //DP Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 246.9346, 62.4051, 1003.6406)) //DP Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1549.9392, -1676.1322, 15.1908);// DP Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1480.8795, -1771.4631, 18.7958)) //Prefeitura Ls
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 385.4674, 173.9319, 1008.3828); //Prefeitura Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 389.0495, 173.6506, 1008.3828)) //Prefeitura Ls
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1480.6866, -1768.7736, 18.7958); //Prefeitura Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2244.3225, -1665.3571, 15.4766)) //Loja De Roupas Ls
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 207.5845,-111.1646,1005.1328);// Loja De Roupas Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 207.5845,-111.1646,1005.1328)) //Loja De Roupas Ls
{
SetPlayerPos(playerid, 2244.3225, -1665.3571, 15.4766);// Loja De Roupas Ls
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2229.8640, -1721.4364, 13.5631)) //Menu Hospital Ls
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 772.2243, -1.5818, 1000.7274); //Menu Hospital Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 772.3262, -5.1436, 1000.7287)) //Menu Hospital Ls
{
SetPlayerPos(playerid, 2229.8640, -1721.4364, 13.5631); //Menu Hospital Ls
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1368.3270, -1279.8624, 13.5469)) //Loja De Armas Ls
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 315.5569, -141.2360, 999.6016);// Loja De Armas Ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 315.6995, -143.8061, 999.6016))// Loja De Armas Ls
{
SetPlayerPos(playerid, 1364.3126, -1279.5771, 13.5469);// Loja De Armas Ls
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1310.0844, -1367.5593, 13.5375)) //Auto Escola
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195, 1304.942871, 1093.289062);// Auto Escola
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1494.3741, 1303.8921, 1093.2891)) //Auto Escola saida
{
SetPlayerPos(playerid, 1310.0844, -1367.5593, 13.5375); //Auto Escola
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1836.5135,-1682.5038,13.3448))// Entrada Baile saida
{
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, 493.390991,-22.722799,1000.679687); //Entrada Baile
PlayerPlaySound(playerid,1097,0,0,0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 493.390991,-22.722799,1000.679687)) //Saida Baile
{
SetPlayerPos(playerid, 1836.5135, -1682.5038, 13.3448); //Saida Baile
PlayerPlaySound(playerid,1188,0,0,0);
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1778.9347, -1662.9976, 14.4377)) //Banco Lv
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 829.6920, 5.3135, 1004.1870); //Banco ls
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 834.0978, 7.4395, 1004.1797)) //Banco Ls
{
SetPlayerPos(playerid, 1778.9347, -1662.9976, 14.4377);// Banco Ls
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1352.2056,-1758.6322,13.5078)) //Utilidades
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); //Utilidades
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 6.091179,-29.271898,1003.549438))// Utilidades
{
SetPlayerPos(playerid, 1352.2056,-1758.6322,13.5078); //Utilidades
SetPlayerInterior(playerid, 0);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1382.1466,-1088.8184,28.2100)) // Banco T.Valores
{
SetPlayerPos(playerid, 1701.5903,-1667.8291,20.2188); // Banco T.Valores
SetPlayerInterior(playerid, 18);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1701.5903,-1667.8291,20.2188)) // Banco T.Valores
{
SetPlayerPos(playerid, 1382.1466,-1088.8184,28.2100); // Banco T.Valores
SetPlayerInterior(playerid, 0);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2232.7939,-1159.7489,25.8906))// Motel de Jefferson
{
SetPlayerPos(playerid, 2214.8516,-1150.6707,1025.7969); // Motel de Jefferson
SetPlayerInterior(playerid, 15);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2214.8516,-1150.6707,1025.7969)) // Motel de Jefferson
{
SetPlayerPos(playerid, 2232.7939,-1159.7489,25.8906); // Motel de Jefferson
SetPlayerInterior(playerid, 0);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1631.7772,-1171.7979,24.0781)) // Loteria
{
SetPlayerPos(playerid, -2159.122802,641.517517,1052.381713); // Loteria
SetPlayerInterior(playerid, 1);
}
if(IsPlayerInRangeOfPoint(playerid, 1.6, -2159.122802,641.517517,1052.381713))// Loteria
{
SetPlayerPos(playerid, 1631.7772,-1171.7979,24.0781);// Loteria
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2195.8300,1677.0400,12.3700)) //caligulas
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2233.8032, 1712.2303, 1011.7632); //caligulas
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2020.7900,1007.8600,10.8200))// four dragons
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2016.2699, 1017.7790, 996.8750);// four dragons
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2233.8032, 1712.2303, 1011.7632)) //caligulas
{
SetPlayerPos(playerid, 2195.8300,1677.0400,12.3700); //caligulas
SetPlayerInterior(playerid, 0);
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 2016.2699, 1017.7790, 996.8750)) //four dragons
{
SetPlayerPos(playerid, 2020.7900,1007.8600,10.8200); //four dragons
SetPlayerInterior(playerid, 0);
}
}
return 1;
}