[Ajuda] Pickups
#1

Desculpa pelo tуpico mais eu comeзei a colocar interiores no meu servidor quando fui ver se estava pegando olha que aconteceu.

Clique aqui para visualizar vнdeo.

Codigos

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PickupInterior) {
    if(PlayerToPoint(1.0, playerid,328.7309,-1515.4921,35.8672)) //Aqui Aonde Ele Tenque tar para ser teleportado !
    SetPlayerPos(playerid, 288.745971,169.350997,1007.171875);
    SetPlayerInterior(playerid, 3); //o id dele !
        return 1;
    }
    if(pickupid == PickupSaida) { // Defini a pickup!
    if(PlayerToPoint(1.0, playerid, 288.745971,169.350997,1007.171875)) //Aqui Aonde Ele Tenque tar dentro do interior para sair!
    SetPlayerPos(playerid, 328.7309,-1515.4921,35.8672); //Da rua
    SetPlayerInterior(playerid, 0); //o id da rua !
        return 1;
    }

    return 1;
}
pawn Код:
PickupInterior = CreatePickup(1239, 2, 328.7309,-1515.4921,35.8672, 0);
    PickupSaida = CreatePickup(1239, 2, 288.745971,169.350997,1007.171875, 0);
pawn Код:
new PickupInterior;
new PickupSaida;
Reply


Messages In This Thread
Pickups - by streafrom - 19.12.2012, 12:23
Re: Pickups - by DrTHE - 19.12.2012, 12:25
Re: Pickups - by streafrom - 19.12.2012, 12:33
Re: Pickups - by Nice-.- - 19.12.2012, 12:58
Re: Pickups - by HeyHoLetsGo - 19.12.2012, 13:09
Re: Pickups - by streafrom - 19.12.2012, 13:11
Re: Pickups - by streafrom - 19.12.2012, 13:23
Re: Pickups - by HeyHoLetsGo - 19.12.2012, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)