[Ajuda]Pickup Maldita - 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]Pickup Maldita (
/showthread.php?tid=191349)
[Ajuda]Pickup Maldita -
Andre_Elite - 18.11.2010
Pessoal , meu caso nгo sei ... Eu crio a pickup e tals tudo certo massssssss... Ele nгo consegue entrar na pickup da entrada ele nгo e teleportado, mas se eu vou na pickup da saida ele e teletransportado para a saida
ja fiz de tudo e nada HELP!
pawn Код:
//topo
new EntradaRestaurante;
new SaidaRestaurante;
//Public ongamemodeinit
EntradaRestaurante = AddStaticPickup(1318, 23, 379.9319,-1735.0350,7.7266);
SaidaRestaurante = AddStaticPickup(1318, 23, 370.3888,-1721.1550,17.0385);
//Public do Pickup
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == EntradaRestaurante)
{
SetPlayerPos(playerid,370.4763,-1717.1056,17.0385);//Entrada
SetPlayerInterior(playerid,0);
}
else if(pickupid == SaidaRestaurante)
{
SetPlayerPos(playerid,380.9114,-1735.1824,7.9943);//Saida
SetPlayerInterior(playerid,0);
}
}
Respuesta: [Ajuda]Pickup Maldita -
ipsBruno - 18.11.2010
Код:
EntradaRestaurante = CreatePickup(1318, 23, 379.9319,-1735.0350,7.7266);
SaidaRestaurante = CreatePickup(1318, 23, 370.3888,-1721.1550,17.0385);
Re: [Ajuda]Pickup Maldita -
Andre_Elite - 18.11.2010
Descobri que no meu gm й Diferente й Assim:
pawn Код:
//Public ongamemodeinit
AddStaticPickup(1318, 1, 379.9319,-1735.0350,7.7266); //PickUp Restaurante Entrada
AddStaticPickup(1318, 1, 370.3888,-1721.1550,17.0385); //PickUp Restaurante Saida
//OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
else if (PlayerToPoint(1, playerid,379.9319,-1735.0350,7.7266))//Restaurante New Entrar
{
GameTextForPlayer(playerid, "~b~Tecle F Para Entrar", 5000, 1);
SetPlayerPos( playerid,370.4933,-1719.0773,17.0385);
}
else if (PlayerToPoint(1, playerid,370.3888,-1721.1550,17.0385))//Restaurante New Sair
{
GameTextForPlayer(playerid, "~r~Tecle F Para Sair", 5000, 1);
SetPlayerPos( playerid,381.0520,-1734.9491,8.0306);
}
Funfou belesa