13.01.2010, 01:16
1є duvida й...
estou com problema em meu /serviзo onibus
Quer q privace os players a usa o /serviзo ONIBUS somente nas paradas. botei coordendas e tudo. mais ta indo em qualquer lugar
E outro que й sobre sistema de canзar
Tem como fazer por exemplo se a pessoa estб correndo ou andando por 3 minutos. ai ele й imobilizado para descanзar por 3 minutos
Tem como?
Obrigado =D
estou com problema em meu /serviзo onibus
Quer q privace os players a usa o /serviзo ONIBUS somente nas paradas. botei coordendas e tudo. mais ta indo em qualquer lugar
pawn Code:
else if(strcmp(x_nr,"onibus",true) == 0)
{
if (PlayerToPoint(10.0, playerid,1536.434,-1706.484,13.826) || PlayerToPoint(10.0, playerid,1522.709,-1698.255,13.826) || PlayerToPoint(10.0, playerid,2356.866,-1160.269,27.679) || PlayerToPoint(10.0, playerid,2358.271,-1147.826,27.716) || PlayerToPoint(10.0, playerid,2324.547,-1665.505,14.092) || PlayerToPoint(10.0, playerid,2320.463,-1652.461,14.195)
|| PlayerToPoint(10.0, playerid,1291.020,-2062.921,58.918) || PlayerToPoint(10.0, playerid,1291.020,-2062.921,58.918) || PlayerToPoint(10.0, playerid,1923.887,-1758.778,13.826) || PlayerToPoint(10.0, playerid,1923.845,-1745.847,13.701) || PlayerToPoint(10.0, playerid,1523.383,-1711.121,13.826) || PlayerToPoint(10.0, playerid,770.655,-1388.893,13.794)
|| PlayerToPoint(10.0, playerid,771.740,-1412.237,13.811) || PlayerToPoint(10.0, playerid,766.620,-1326.117,13.726) || PlayerToPoint(10.0, playerid,769.682,-1312.271,13.701) || PlayerToPoint(10.0, playerid,341.069,-1523.946,33.357) || PlayerToPoint(10.0, playerid,360.054,-1536.884,33.722) || PlayerToPoint(10.0, playerid,324.589,-1746.886,4.756)
|| PlayerToPoint(10.0, playerid,326.981,-1732.571,4.674) || PlayerToPoint(10.0, playerid,281.452,-1680.685,8.051) || PlayerToPoint(10.0, playerid,272.109,-1707.494,8.192) || PlayerToPoint(10.0, playerid,1828.893,-1650.735,13.522) || PlayerToPoint(10.0, playerid,1815.251,-1650.788,13.676) || PlayerToPoint(10.0, playerid,1933.369,-2173.619,13.772)
|| PlayerToPoint(10.0, playerid,1934.830,-2158.209,13.676) || PlayerToPoint(10.0, playerid,1508.685,-2311.788,13.622) || PlayerToPoint(10.0, playerid,1519.805,-2319.154,13.776) || PlayerToPoint(10.0, playerid,1779.615,-1177.846,23.903) || PlayerToPoint(10.0, playerid,1779.470,-1162.393,23.982) || PlayerToPoint(10.0, playerid,1436.365,-1040.176,24.082)
|| PlayerToPoint(10.0, playerid,1438.615,-1025.639,24.032) || PlayerToPoint(10.0, playerid,2156.740,-995.067,62.832) || PlayerToPoint(10.0, playerid,2152.383,-1009.219,62.718) || PlayerToPoint(10.0, playerid,2845.451,-1069.722,23.658) || PlayerToPoint(10.0, playerid,2832.011,-1070.168,23.659) || PlayerToPoint(10.0, playerid,1808.521,-1838.920,13.728)
|| PlayerToPoint(10.0, playerid,1805.395,-1825.090,13.675) || PlayerToPoint(10.0, playerid,1046.415,-1342.938,13.681) || PlayerToPoint(10.0, playerid,1069.022,-1340.408,13.709) || PlayerToPoint(10.0, playerid,1118.219,-962.787,42.951) || PlayerToPoint(10.0, playerid,1113.634,-939.186,43.307) || PlayerToPoint(10.0, playerid,1237.084,-1031.491,32.004)
|| PlayerToPoint(10.0, playerid,1237.631,-1045.928,32.104) || PlayerToPoint(10.0, playerid,1336.284,-1338.665,13.701) || PlayerToPoint(10.0, playerid,1364.707,-1352.055,13.751) || PlayerToPoint(10.0, playerid,2055.482,-1925.041,13.522) || PlayerToPoint(10.0, playerid,2052.717,-1943.958,13.701) || PlayerToPoint(10.0, playerid,1115.344,-1748.578,13.775)
|| PlayerToPoint(10.0, playerid,1112.671,-1732.670,14.003) || PlayerToPoint(10.0, playerid,889.170,-1792.479,13.963) || PlayerToPoint(10.0, playerid,883.639,-1763.147,13.801) || PlayerToPoint(10.0, playerid,1131.166,-1133.918,23.803) || PlayerToPoint(10.0, playerid,1128.925,-1155.724,23.907) || PlayerToPoint(10.0, playerid,2308.109,-2094.446,13.639)
|| PlayerToPoint(10.0, playerid,2297.978,-2103.814,13.526) || PlayerToPoint(10.0, playerid,2424.203,-1566.618,24.275) || PlayerToPoint(10.0, playerid,2437.351,-1571.806,24.104) || PlayerToPoint(10.0, playerid,2457.669,-1393.184,24.243) || PlayerToPoint(10.0, playerid,2444.258,-1382.097,24.279) || PlayerToPoint(10.0, playerid,2620.931,-1040.412,69.857)
|| PlayerToPoint(10.0, playerid,2617.610,-1054.317,69.858))
if(BusDrivers < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nao tem motorista de onibus online neste momento, espere um entrar !");
return 1;
}
if(TransportDuty[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " Voce nao pode chamar um onibus agora !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "** %s Necessita de um Onibus. (Use /aceitar onibus - Para aceitar a chamada)", sendername);
SendEmpregoMessage(14, TEAM_AZTECAS_COLOR, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Voce chamou um Onibus... Agora espere a resposta.");
BusCall = playerid;
return 1;
}
Tem como fazer por exemplo se a pessoa estб correndo ou andando por 3 minutos. ai ele й imobilizado para descanзar por 3 minutos
Tem como?
Obrigado =D