21.01.2011, 11:42
alguem poderia me ajudar,eu tenho um fs de gps sу q ele ta embolando com os outros menus alguem sabe arrumar isto ?
ve puder vlw ae
ve puder vlw ae
//==============================================================================
#include <a_samp>
#define FILTERSCRIPT
#define GPS_GPS 500
//==============================================================================
new id=-1;
new bool:InGPS[MAX_PLAYERS];
enum pgps
{
NomeRoubo[100],
Float:xp,
Float:yp,
Float:zp,
ID
};
new Gps[GPS_GPS][pgps];
//==============================================================================
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Sistema de GPS BY:JP");
print("--------------------------------------\n");
// Nome CORDENADAS
GPS( "loja 24-7", 1209.8090,-1751.8210,13.5937);
GPS( "DP Departamento de Policia", 1553.0898,-1675.0734,16.1953);
GPS( "concessionбria", 778.7900,-1383.0969,13.7006);
GPS( "Grove Street", 2490.4641,-1673.5659,13.3359);
GPS( "los aztecas", 1879.5417,-2030.1046,13.3906);
GPS( "loja 24-7", 1351.9508,-1757.9364,13.5078);
GPS( "loterica", 1631.9902,-1170.7217,24.0781);
GPS( "Banco", 1465.5543,-1013.2930,26.8438);
GPS( "posto de gasolina", 1944.9377,-1771.5295,13.2404);
GPS( "Exйrcito", -1330.0942,462.0670,7.1875);
GPS( "prefeitura", 1480.7633,-1766.3505,18.7958);
GPS( "rotam", 327.5769,-1519.9551,35.8672);
GPS( "hospital", 1192.5067,-1328.3260,13.3984);
GPS( "mafia russa", 1252.3024,-807.4869,84.1406);
GPS( "hitman", 1067.7107,-313.4359,73.9922);
GPS( "los vagos", 2353.2805,-1166.5171,27.4542);
GPS( "onibus", 1070.6620,-1764.1697,13.3740);
GPS( "FBI", -1544.5447,-429.6419,5.8916);
GPS( "alquaeda", 391.9772,2532.5344,16.5428);
GPS( "Ballas", 2257.4644,-1433.0898,24.0341);
return 1;
}
//==============================================================================
stock GPS(nomete[], Float:xxxxx, Float:yyyyy, Float:zzzzzzz)
{
id++;
format(Gps[id][NomeRoubo],100,"%s",nomete);
Gps[id][xp] = xxxxx;
Gps[id][yp] = yyyyy;
Gps[id][zp] = zzzzzzz;
Gps[id][ID] = id;
return 1;
}
//==============================================================================
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new msg[128];
if(listitem == Gps[listitem][ID])
{
if(!response) return false;
SetPlayerCheckpoint(playerid,Gps[listitem][xp],Gps[listitem][yp],Gps[listitem][zp]+1,2.0);
InGPS[playerid] = true;
format(msg, sizeof(msg), "Gps Esta localizando no mapa : %s", Gps[listitem][NomeRoubo]);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
return 1;
}
return 0;
}
//==============================================================================
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/gps", true)) {
new dados[1024];
format(dados, 1024, "");
for(new J=0;J<=id;J++) {
format(dados,1024, "%s%s\n",dados,Gps[J][NomeRoubo]);
}
ShowPlayerDialog(playerid,256,DIALOG_STYLE_LIST, "GPS",dados,"listitem", "Fechar");
}
return 0;
}
//==============================================================================
public OnPlayerEnterCheckpoint(playerid)
{
if(InGPS[playerid] == true)
{
DisablePlayerCheckpoint(playerid);
InGPS[playerid] = false;
}
return 1;
}