[AJUDA]
#1

Olб galera, nгo sei como fazer essa parte, sou iniciante ainda e estou tentando fazer o sistema de Caixa eletronico, mas como tem muitos caixas eletronicos nгo sei como colocar. Olhem no cуdigo abaixo:

Код:
	if(strcmp(cmd, "/caixasacar", true) == 0)
		{
		    if(IsPlayerConnected(playerid))
		    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0,2243.02783203,-1665.10363770,15.11946201) || IsPlayerInRangeOfPoint(playerid, 1.5, 1873.20568848,-1627.91430664,12.97655773) || IsPlayerInRangeOfPoint(playerid, 1.5, 1466.45483398,-1749.91943359,15.08821201) || IsPlayerInRangeOfPoint(playerid, 1.5, 1928.56079102,-1782.86120605,13.18977451) || IsPlayerInRangeOfPoint(playerid, 1.5, 2105.46069336,-1808.02197266,13.19758701) || IsPlayerInRangeOfPoint(playerid, 1.5, 2139.38549805,-1175.26806641,23.63508606) || IsPlayerInRangeOfPoint(playerid, 1.5, 1779.01867676,-1295.24853516,13.19176197) || IsPlayerInRangeOfPoint(playerid, 1.5, 1748.98730469,-1107.92797852,23.72102356) || IsPlayerInRangeOfPoint(playerid, 1.5, 1192.80053711,-916.57373047,42.82126236) || IsPlayerInRangeOfPoint(playerid, 1.5, 1000.75360107,-921.93481445,41.97102356) || IsPlayerInRangeOfPoint(playerid, 1.5, 551.43713379,-1259.03955078,16.55875206) || IsPlayerInRangeOfPoint(playerid, 1.5, 475.80688477,-1499.29431152,20.13398743))		    
            else if(IsPlayerInRangeOfPoint(playerid, 5.0,475.80688477,-1499.29431152,20.13398743) || IsPlayerInRangeOfPoint(playerid, 1.5, 394.03515625,-2050.24316406,7.47883701) || IsPlayerInRangeOfPoint(playerid, 1.5, 485.31396484,-1733.69848633,10.73719406) || IsPlayerInRangeOfPoint(playerid, 1.5,1070.84411621,-1863.92980957,13.18977451) || IsPlayerInRangeOfPoint(playerid, 1.5, 1554.90234375,-1881.90075684,13.18977451) || IsPlayerInRangeOfPoint(playerid, 1.5, 1755.00903320,-1884.22412109,13.19968891) || IsPlayerInRangeOfPoint(playerid, 1.5, 1940.01049805,-2117.89672852,13.20205212)  || IsPlayerInRangeOfPoint(playerid, 1.5, 2055.07934570,-1897.58630371,13.19670010)  || IsPlayerInRangeOfPoint(playerid, 1.5, 2820.88964844,-1780.13305664,10.68977451)  || IsPlayerInRangeOfPoint(playerid, 1.5, 2797.41235352,-1077.88989258,30.36164856) || IsPlayerInRangeOfPoint(playerid, 1.5, 2806.39965820,-1371.71435547,22.12792587) || IsPlayerInRangeOfPoint(playerid, 1.5, 2418.87402344,-1219.50781250,25.15088272))            
            else if(IsPlayerInRangeOfPoint(playerid, 5.0,2232.91577148,-1339.05371094,23.62586975) || IsPlayerInRangeOfPoint(playerid, 1.5, 1102.24230957,-1455.98217773,15.43977451) || IsPlayerInRangeOfPoint(playerid, 1.5, 1319.15185547,-1367.52343750,13.25737572))
Como й muitos nгo sei se coloca na linha de baixo else if ou seu lб. Me ajudem por favor.



Desde jб obrigado
Reply
#2

espero que seja isto o que voce queira
pawn Код:
if(strcmp(cmd, "/caixasacar", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerInRangeOfPoint(playerid, 5.0,2243.02783203,-1665.10363770,15.11946201) || IsPlayerInRangeOfPoint(playerid, 1.5, 1873.20568848,-1627.91430664,12.97655773) || IsPlayerInRangeOfPoint(playerid, 1.5, 1466.45483398,-1749.91943359,15.08821201) || IsPlayerInRangeOfPoint(playerid, 1.5, 1928.56079102,-1782.86120605,13.18977451)
        || IsPlayerInRangeOfPoint(playerid, 1.5, 2105.46069336,-1808.02197266,13.19758701) || IsPlayerInRangeOfPoint(playerid, 1.5, 2139.38549805,-1175.26806641,23.63508606) || IsPlayerInRangeOfPoint(playerid, 1.5, 1779.01867676,-1295.24853516,13.19176197) || IsPlayerInRangeOfPoint(playerid, 1.5, 1748.98730469,-1107.92797852,23.72102356)
        || IsPlayerInRangeOfPoint(playerid, 1.5, 1192.80053711,-916.57373047,42.82126236) || IsPlayerInRangeOfPoint(playerid, 1.5, 1000.75360107,-921.93481445,41.97102356) || IsPlayerInRangeOfPoint(playerid, 1.5, 551.43713379,-1259.03955078,16.55875206) || IsPlayerInRangeOfPoint(playerid, 1.5, 475.80688477,-1499.29431152,20.13398743))
        {
            //aki
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0,475.80688477,-1499.29431152,20.13398743) || IsPlayerInRangeOfPoint(playerid, 1.5, 394.03515625,-2050.24316406,7.47883701) || IsPlayerInRangeOfPoint(playerid, 1.5, 485.31396484,-1733.69848633,10.73719406) || IsPlayerInRangeOfPoint(playerid, 1.5,1070.84411621,-1863.92980957,13.18977451)
        || IsPlayerInRangeOfPoint(playerid, 1.5, 1554.90234375,-1881.90075684,13.18977451) || IsPlayerInRangeOfPoint(playerid, 1.5, 1755.00903320,-1884.22412109,13.19968891) || IsPlayerInRangeOfPoint(playerid, 1.5, 1940.01049805,-2117.89672852,13.20205212)  || IsPlayerInRangeOfPoint(playerid, 1.5, 2055.07934570,-1897.58630371,13.19670010)
        || IsPlayerInRangeOfPoint(playerid, 1.5, 2820.88964844,-1780.13305664,10.68977451)  || IsPlayerInRangeOfPoint(playerid, 1.5, 2797.41235352,-1077.88989258,30.36164856) || IsPlayerInRangeOfPoint(playerid, 1.5, 2806.39965820,-1371.71435547,22.12792587) || IsPlayerInRangeOfPoint(playerid, 1.5, 2418.87402344,-1219.50781250,25.15088272))
        {
            //aki
        }
        else if(IsPlayerInRangeOfPoint(playerid, 5.0,2232.91577148,-1339.05371094,23.62586975) || IsPlayerInRangeOfPoint(playerid, 1.5, 1102.24230957,-1455.98217773,15.43977451) || IsPlayerInRangeOfPoint(playerid, 1.5, 1319.15185547,-1367.52343750,13.25737572))
        {
            //aki
        }
    }
    return 1;
}
Reply
#3

Era isso mesmo, muito obrigado mesmo!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)