if(response == 0)
{
return SendClientMessage(playerid,COLOR_WHITE,"Vocк cancelou o menu do GPS.");
}
switch(listitem)
{
case 0:
{
SetPlayerCheckpoint(playerid,1538.2189,-1681.6970,5.8906);
}
case 1:
{
SetPlayerCheckpoint(playerid,298.4533,-1518.8646,24.5938);
}
case 2:
{
SetPlayerCheckpoint(playerid,-1347.0657,498.5268,11.1953);}
case 3:
{
SetPlayerCheckpoint(playerid,2003.4354,-1444.1321,13.5621);}
case 4:
{
SetPlayerCheckpoint(playerid,1691.0067,-2112.9229,13.3828);}
case 5:
{
SetPlayerCheckpoint(playerid,2748.6006,-2453.4863,13.8623);}
case 6:
{
SetPlayerCheckpoint(playerid,355.4489,162.4052,1025.7964);}
case 7:
{
SetPlayerCheckpoint(playerid,954.4877,-1533.4193,13.5780);}
case 8:
{
SetPlayerCheckpoint(playerid,740.3707,-1348.3239,13.5100);}
case 9:
{
SetPlayerCheckpoint(playerid,1001.5851,-1447.9072,13.5469);}
case 10:
{
SetPlayerCheckpoint(playerid,-49.8735,-274.2333,5.4297);}
case 11:
{
SetPlayerCheckpoint(playerid,309.4009,-1161.1469,80.9141);}
case 12:
{
SetPlayerCheckpoint(playerid,681.2902,-1274.3928,13.5805);}
case 13:
{
SetPlayerCheckpoint(playerid,2511.3423,-1671.1489,13.4475);}
case 14:
{
SetPlayerCheckpoint(playerid,404.9639,2535.7507,16.5460);}
case 15:
{
SetPlayerCheckpoint(playerid,939.5961,-1224.0160,16.2889);}
case 16:
{
SetPlayerCheckpoint(playerid,1145.1360,-1179.8810,32.0275);}
case 17:
{
SetPlayerCheckpoint(playerid,2814.3884,-1182.9852,25.2631);}
case 18:
{
SetPlayerCheckpoint(playerid,2185.1260,-1765.0551,13.3761);}
case 19:
{
SetPlayerCheckpoint(playerid,681.3267,-481.9659,16.1875);}
case 20:
{
SetPlayerCheckpoint(playerid,2794.2378,-1604.6234,10.9283);}
case 21:
{
SetPlayerCheckpoint(playerid,1620.6208,-1868.0526,13.3828);}
case 22:
{
SetPlayerCheckpoint(playerid,-395.0352,1746.6198,42.4297);}
case 23:
{
SetPlayerCheckpoint(playerid,1385.9492,-1648.4480,13.3787);
}
}
}
if(response == 0)
{
return SendClientMessage(playerid,COLOR_WHITE,"Vocк cancelou o menu do GPS.");
}
if( listitem == 0)
{
SetPlayerCheckpoint(playerid,1538.2189,-1681.6970,5.8906);
}
if( listitem == 1)
{
SetPlayerCheckpoint(playerid,298.4533,-1518.8646,24.5938);
}
if( listitem == 2)
{
SetPlayerCheckpoint(playerid,-1347.0657,498.5268,11.1953);}
if( listitem == 3)
{
SetPlayerCheckpoint(playerid,2003.4354,-1444.1321,13.5621);}
if( listitem == 4)
{
SetPlayerCheckpoint(playerid,1691.0067,-2112.9229,13.3828);}
if( listitem == 5)
{
SetPlayerCheckpoint(playerid,2748.6006,-2453.4863,13.8623);}
if( listitem == 6)
{
SetPlayerCheckpoint(playerid,355.4489,162.4052,1025.7964);}
if( listitem == 7)
{
SetPlayerCheckpoint(playerid,954.4877,-1533.4193,13.5780);}
if( listitem == 8)
{
SetPlayerCheckpoint(playerid,740.3707,-1348.3239,13.5100);}
if( listitem == 9)
{
SetPlayerCheckpoint(playerid,1001.5851,-1447.9072,13.5469);}
if( listitem == 10)
{
SetPlayerCheckpoint(playerid,-49.8735,-274.2333,5.4297);}
if( listitem == 11)
{
SetPlayerCheckpoint(playerid,309.4009,-1161.1469,80.9141);}
if( listitem == 12)
{
SetPlayerCheckpoint(playerid,681.2902,-1274.3928,13.5805);}
if( listitem == 13)
{
SetPlayerCheckpoint(playerid,2511.3423,-1671.1489,13.4475);}
if( listitem == 14)
{
SetPlayerCheckpoint(playerid,404.9639,2535.7507,16.5460);}
if( listitem == 15)
{
SetPlayerCheckpoint(playerid,939.5961,-1224.0160,16.2889);}
if( listitem == 16)
{
SetPlayerCheckpoint(playerid,1145.1360,-1179.8810,32.0275);}
if( listitem == 17)
{
SetPlayerCheckpoint(playerid,2814.3884,-1182.9852,25.2631);}
if( listitem == 18)
{
SetPlayerCheckpoint(playerid,2185.1260,-1765.0551,13.3761);}
if( listitem == 19)
{
SetPlayerCheckpoint(playerid,681.3267,-481.9659,16.1875);}
if( listitem == 20)
{
SetPlayerCheckpoint(playerid,2794.2378,-1604.6234,10.9283);}
if( listitem == 21)
{
SetPlayerCheckpoint(playerid,1620.6208,-1868.0526,13.3828);}
if( listitem == 22)
{
SetPlayerCheckpoint(playerid,-395.0352,1746.6198,42.4297);}
if( listitem == 23)
{
SetPlayerCheckpoint(playerid,1385.9492,-1648.4480,13.3787);
}
}
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}
Entгo pessoal, eu montei este gps aqui..
PHP код:
|
new GPSCP[MAX_PLAYERS];
if(response == 0)
{
return SendClientMessage(playerid,COLOR_WHITE,"Vocк cancelou o menu do GPS.");
}
switch(listitem)
{
case 0:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,1538.2189,-1681.6970,5.8906,8.0);
}
case 1:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,298.4533,-1518.8646,24.5938,8.0);
}
case 2:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,-1347.0657,498.5268,11.1953,8.0);
}
case 3:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,2003.4354,-1444.1321,13.5621,8.0);
}
case 4:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,1691.0067,-2112.9229,13.3828,8.0);
}
case 5:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,2748.6006,-2453.4863,13.8623,8.0);
}
case 6:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,355.4489,162.4052,1025.7964,8.0);
}
case 7:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,954.4877,-1533.4193,13.5780,8.0);
}
case 8:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,740.3707,-1348.3239,13.5100,8.0);
}
case 9:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,1001.5851,-1447.9072,13.5469,8.0);
}
case 10:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,-49.8735,-274.2333,5.4297,8.0);
}
case 11:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,309.4009,-1161.1469,80.9141,8.0);
}
case 12:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,681.2902,-1274.3928,13.5805,8.0);
}
case 13:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,2511.3423,-1671.1489,13.4475,8.0);
}
case 14:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,404.9639,2535.7507,16.5460,8.0);
}
case 15:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,939.5961,-1224.0160,16.2889,8.0);
}
case 16:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,1145.1360,-1179.8810,32.0275,8.0);
}
case 17:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,2814.3884,-1182.9852,25.2631,8.0);
}
case 18:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,2185.1260,-1765.0551,13.3761,8.0);
}
case 19:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,681.3267,-481.9659,16.1875,8.0);
}
case 20:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,2794.2378,-1604.6234,10.9283,8.0);
}
case 21:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,1620.6208,-1868.0526,13.3828,8.0);
}
case 22:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,-395.0352,1746.6198,42.4297,8.0);
}
case 23:
{
GPSCP[playerid] = SetPlayerCheckpoint(playerid,1385.9492,-1648.4480,13.3787,8.0);
}
}
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(GPSCP[playerid]);
return 1;
}
// Defina em MAX_PLAYERS para nгo bugar com outros players !
Eu tentei deste mesmo seu cуdigo Japa, e resultou.
Mas obrigado pela ajuda! ![]() |