SA-MP Forums Archive
[ajuda] Tenho aqui um grande Problema =S - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ajuda] Tenho aqui um grande Problema =S (/showthread.php?tid=294171)



[ajuda] Tenho aqui um grande Problema =S - SlingShot - 31.10.2011

Eu queria que o meu camiгo carrega-se um atrelado quando chega-se a um checkpoint:
Entгo fiz as seguintes linhas de cуdigo:

Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403) 
	 {
		 if(PlayerToPoint(5.0,playerid, -1770.6779,-1711.6221,29.4418))
     	 {
	          SetPlayerCheckpoint(playerid, -2616.7966,2263.2339,7.9196, 3.0);
			  AttachTrailerToVehicle(75,GetPlayerVehicleID(playerid));
O problema й que nгo funciona. Serб que me poderiam ajudar?


Re: [ajuda] Tenho aqui um grande Problema =S - SlingShot - 02.11.2011

Alguйm me pode ajudar?


Re: [ajuda] Tenho aqui um grande Problema =S - WLSF - 02.11.2011

Jб tentou escrever 'camiгo' correto pra ver se ele carrega o 'atrelado' ?

Tente isso aqui...
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
{
    if(IsPlayerInRangeOfPoint(playerid, 6.0, -1770.6779,-1711.6221,29.4418))
    {
        SetPlayerCheckpoint(playerid, -2616.7966,2263.2339,7.9196, 3.0);
        AttachTrailerToVehicle(75,GetPlayerVehicleID(playerid));
        return true;
    }
}
Verifique se esse trailler й vбlido, ou se vocк estб nas coordenadas corretas....


Re: [ajuda] Tenho aqui um grande Problema =S - SlingShot - 03.11.2011

Boas!

Amigo jб tentei fazer isso, coloquei o cуdigo como disse mas nгo funciona na mesma.
Jб vi as coordenada e estгo correctas.
Jб verifiquei o ID do Trailler e estб correcto tambйm.

Eu fico pasmado como nгo funciona. E eu necessitava que isto funcionasse. =S


Re: [ajuda] Tenho aqui um grande Problema =S - Lуs - 03.11.2011

Quote:
Originally Posted by SlingShot
Посмотреть сообщение
Boas!

Amigo jб tentei fazer isso, coloquei o cуdigo como disse mas nгo funciona na mesma.
Jб vi as coordenada e estгo correctas.
Jб verifiquei o ID do Trailler e estб correcto tambйm.

Eu fico pasmado como nгo funciona. E eu necessitava que isto funcionasse. =S
Aonde vocк colocou esse cуdigo?


Re: [ajuda] Tenho aqui um grande Problema =S - SlingShot - 03.11.2011

Coloquei como assim?


Re: [ajuda] Tenho aqui um grande Problema =S - Lуs - 03.11.2011

Quote:
Originally Posted by SlingShot
Посмотреть сообщение
Coloquei como assim?
Em qual public/callback estб utilizando para chamar a funзгo de obter a posiзгo do player?


Re: [ajuda] Tenho aqui um grande Problema =S - SlingShot - 03.11.2011

public OnPlayerStateChange


Re: [ajuda] Tenho aqui um grande Problema =S - Lуs - 03.11.2011

Crie uma public para essa funзгo e crie um timer para atualizar a cada tempo pra checar se tem algum player no raio.


Re: [ajuda] Tenho aqui um grande Problema =S - SlingShot - 03.11.2011

Eu vou ver entгo o que poderei fazer, quando tiver novidades postarei aqui se consegui fazer alguma coisa ou nгo. Desde jб obrigado pela ajuda.