SA-MP Forums Archive
[Ajuda] Mensagem Automatica! - 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] Mensagem Automatica! (/showthread.php?tid=375680)



Mensagem Automatica! - Aleex_Mason - 07.09.2012

Nao consigo colocar para aparecer a mensagem automaticamente, quando o Veiculo conecta ao trailer

Segue abaixo o codigo!

Код:
new vehicleid = GetPlayerVehicleID(playerid);
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
	{
	if(GetVehicleModel(GetVehicleTrailer(vehicleid)) == 584)
		{
		new string[256];
		format(string, sizeof(string), "{#32EDFF}| INFO | Seu Caminhao estб carregado, leve-o atй um posto para descarregar!.(/pdescarregar)");
		SendClientMessageToAll(outraadm, string);
		SendClientMessage(playerid, Vermelho, "Engatou.");	
		}
}
Agradeзo desde Jб!


Re: Mensagem Automatica! - Saw_BR - 07.09.2012

pode explicar melhor?
aparece algum erro ou nгo funciona?