[Pedido] Ajuda
#3

nao sei se estou certo tenho quase certeza que estou errado mais tenta

pawn Код:
new PickupGrana;
new EntraAmmu1Fora;
new SaidaAmmu1Fora;

public OnGameModeInit()
{
    EntraAmmu1Fora = CreatePickup(1318,1,-1990.7518,885.4659,45.6437,-1);
    SaidaAmmu1Fora = CreatePickup(1318,1,286.1448,-41.6659,1001.5156,-1);
    return 1;
}


public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    PickupGrana = CreatePickup(1212,2,x,y,z,-1);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == EntraAmmu1Fora)
    {
        SetPlayerPos(playerid,288.4526,-39.1972,1001.5156);
        SetPlayerInterior(playerid,1);
    }
    if(pickupid == SaidaAmmu1Fora)
    {
        SetPlayerPos(playerid,-1995.1780,885.9145,45.4453);
        SetPlayerInterior(playerid,0);
    }
    if(pickupid == PickupGrana)
    {
        GivePlayerMoney(playerid,1000);
        DestroyPickup(PickupGrana);
    }
    return 1;
}
Reply


Messages In This Thread
Ajuda - by Zuiudгo - 26.09.2012, 15:11
Re: Ajuda - by Zuiudгo - 26.09.2012, 16:35
Re: Ajuda - by Q.I - 26.09.2012, 16:43
Re: Ajuda - by Zuiudгo - 26.09.2012, 19:17
Re: Ajuda - by Bruno Alves - 26.09.2012, 19:57
Re: Ajuda - by Zuiudгo - 26.09.2012, 20:00
Re: Ajuda - by Q.I - 26.09.2012, 20:01
Re: Ajuda - by Zuiudгo - 26.09.2012, 20:08
Re: Ajuda - by Q.I - 26.09.2012, 20:10
Re: Ajuda - by Ley - 26.09.2012, 21:11

Forum Jump:


Users browsing this thread: 2 Guest(s)