[Ajuda] Trancar porta motorista - 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] Trancar porta motorista (
/showthread.php?tid=250126)
[Ajuda] Trancar porta motorista -
douglasmonteiro - 22.04.2011
E ae pessoal, beleza.
Estava pensando aqui se seria possнvel fazer isto, trancar somente a porta do motorista e deixar as demais abertas.
Aguardo resposta.
Re: [DUVIDA] Trancar porta motorista -
Macintosh - 22.04.2011
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
SendClientMessage(playerid, COR, "A Aзгo nгo pode ser completa");
RemovePlayerFromVehicle(playerid);
return 1;
}
return 1;
}
Re: [DUVIDA] Trancar porta motorista -
DartakousLien - 22.04.2011
Quote:
Originally Posted by Shickcard
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_SECONDARY_ATTACK) { SendClientMessage(playerid, COR, "A Aзгo nгo pode ser completa"); RemovePlayerFromVehicle(playerid); return 1; } return 1; }
|
tambem podes usares SetVehicleParamsForPlayer para trancar o carro, em vez de remover o player
Re: [DUVIDA] Trancar porta motorista -
pGibson - 22.04.2011
Nгo, quando tranca o carro, tranca todas as portas. Preste atenзгo.
Re: [DUVIDA] Trancar porta motorista -
DartakousLien - 22.04.2011
у velho, mas se ele for inteligente tranca todo o carro quando tentar entrar como motorista, mas so tranca para o que esta a tentar entrar como motorista, por isso se outro tiver a entrar como passageiro entao o carro esta aberto e se o mesmo que tentou entrar como motorista tentar entrar como passageiro tbm da! entendeu?
Re: [DUVIDA] Trancar porta motorista -
pGibson - 22.04.2011
Ah dб й?
flw champs, volta pra sua pokebola vai
Re: [DUVIDA] Trancar porta motorista -
DartakousLien - 22.04.2011
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger == 0)
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
}
if(ispassenger == 1)
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
}
return 1;
}
leia isto para perceber melhor
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle