[Peidido] /gpstune -
Panico622 - 29.02.2012
Quero fazer um GPS pra garagem de tuning do meu serve como faзo

(com o cmd: /gpstune)
as posiзoes:
Код:
1613.6841,-1886.8828,13.1775,358.7490,6,6
Brasil Game Lost:94.23.98.52:7798
Re: [Peidido] /gpstune -
[uGd]vSilv4_. - 29.02.2012
pawn Код:
if(strcmp("/gpstune", cmdtext, true, 10) == 0)
{
SetPlayerCheckpoint(playerid,1613.6841,-1886.8828,13.1775,358.7490,6.0);
SendClientMessage(playerid, -1,"Siga o Check Point!");
return 1;
}
Re: [Peidido] /gpstune -
Panico622 - 29.02.2012
Deu esse Warning:
Код:
C:\Users\AsR\Servidores\Servidor para Testes\filterscripts\tuning.pwn(57) : warning 202: number of arguments does not match definition
Linha 57:
Код:
SetPlayerCheckpoint(playerid, 1613.6841,-1886.8828,13.1775,358.7490,6.0);
aquele circulo vermelho ta enorme! e nao some quando entra dentro
eu tambem costaria de fazer um sistema de anuncio, tipo a cada 5 minutos apareзa a mensagem
(cor:0xFF103FAA) Quer Tunar seu Carro?Use /ajudatune!
poderia fazer pra mim tbm?
Re: [Peidido] /gpstune -
[uGd]vSilv4_. - 29.02.2012
pawn Код:
if(strcmp("/gpstune", cmdtext, true, 10) == 0)
{
SetPlayerCheckpoint(playerid,1613.6841,-1886.8828,13.1775,6.0);
SendClientMessage(playerid, -1,"Siga o Check Point!");
return 1;
}
pawn Код:
new MSGs[3][256] = {
"Quer tunar seu carro? /ajudatune",
"Nгo sabe onde fica a loja de tunning? use: /gpstune",
"Quer tunar seu carro? /ajudatune"
};
new CORESMSGS[] = {
0xFF103FAA,
0x8F20FFAA
};
forward RandomMSGs();
public OnFilterScriptInit()
{
SetTimer("RandomMSGs",180000,1);
return 1;
}
public RandomMSGs()
{
new string[256];
new random1 = random(sizeof(MSGs));
new random2 = random(sizeof(CORESMSGS));
format(string, sizeof(string), "%s", MSGs[random1]);
SendClientMessageToAll(CORESMSGS[random2],string);
}
Re: [Peidido] /gpstune -
kinhobryant - 29.02.2012
Код:
if(response == 0) { return ShowPlayerDialog(playerid,2568,DIALOG_STYLE_LIST,"GPS","Locais em Geral\nHead Quarters\nTerritorios\nDesligar GPS","Aceitar","Cancelar"); }
Procura isso no seu gm , se nгo achar vai apgando ate achar
Код:
case 11:
{
SetPlayerCheckpoint(playerid,1613.6841,-1886.8828,13.1775,6.0);
}
Ai tu coloca o
vc muda pelo numero q ta em ultimo se tiver 10 vc coloca 11 etc...
depois vc vem aki e coloca aki
Код:
ShowPlayerDialog(playerid,2587,DIALOG_STYLE_LIST,"GPS Locais em Geral","Prefeitura\nDepartamento de Policia\n24-7(Mercado)\nLoja de Armas 1\nLoja de Armas 2\nBinco(Loja de Roupas)\nAluguel de Carros\nCentro de Licencas\nHospital\nPosto Sul\nBanco\nLoterica\nTunning","Selecionar","Voltar");
Se funfar +REP
Re: [Peidido] /gpstune -
histire - 29.02.2012
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 0;
}
para destruilo quando entrar.
Re: [Peidido] /gpstune -
Panico622 - 29.02.2012
[uGd]vSilv4_. Vlw funcionouu!!!!
Re: [Peidido] /gpstune -
histire - 29.02.2012
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
return 0;
}
Re: [Peidido] /gpstune -
Panico622 - 29.02.2012
histire
Vlw agora ele some quando entra
Re: [Peidido] /gpstune -
[uGd]vSilv4_. - 29.02.2012
Perai ja ja do edit

Nгo usa o do Histire ele vai desabilitar qualquer checkpoint q vc for emcima -.-'
@Edit
pawn Код:
// Topo \/
new InCheck[MAX_PLAYERS];
//-
public OnPlayerEnterCheckpoint(playerid)
{
if(InCheck[playerid] == 1)
{
InCheck[playerid] = 0;
DisablePlayerCheckpoint(playerid);
}
return 1;
}
//- Comando:
if(strcmp("/gpstune", cmdtext, true, 10) == 0)
{
SetPlayerCheckpoint(playerid,1613.6841,-1886.8828,13.1775,6.0);
SendClientMessage(playerid, -1,"Siga o Check Point!");
InCheck[playerid] = 1;
return 1;
}