How i can do this???
#11

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Just a heads up:

$100 = 100 buck's.
Your post wasn't needed.

pawn Код:
new HasMoneyBag[MAX_PLAYERS];
new MONEYBAG;

public OnGameModeInit()
{
    MONEYBAG = CreatePickup(1550, 23, 0.0, 0.0, 0.0);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == MONEYBAG)
    {
        HasMoneyBag[playerid] = 1;
        DestroyPickup(MONEYBAG);
        GivePlayerMoney(playerid, 100);
    }
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(HasMoneyBag[playerid])
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        HasMoneyBag[playerid] = 0;
        MONEYBAG = CreatePickup(1550, 2, x + 1.0, y - 1.0, z);
    }
    return 1;
}
Was that hard?
Reply


Messages In This Thread
How i can do this??? - by Bilawal2050 - 18.04.2011, 18:02
Re: How i can do this??? - by maramizo - 18.04.2011, 18:09
Re: How i can do this??? - by Bilawal2050 - 18.04.2011, 18:14
Re: How i can do this??? - by park4bmx - 18.04.2011, 18:19
Re: How i can do this??? - by Bilawal2050 - 18.04.2011, 18:32
Re: How i can do this??? - by Mean - 18.04.2011, 18:47
Re: How i can do this??? - by Stigg - 18.04.2011, 18:50
Re: How i can do this??? - by Bilawal2050 - 18.04.2011, 18:52
Re: How i can do this??? - by Stigg - 18.04.2011, 18:57
Re: How i can do this??? - by Maftaca - 18.04.2011, 19:01
Re: How i can do this??? - by Emmet_ - 18.04.2011, 19:02
Re: How i can do this??? - by Stigg - 18.04.2011, 19:05
Re: How i can do this??? - by Emmet_ - 18.04.2011, 20:40
Re: How i can do this??? - by Stigg - 18.04.2011, 20:46
Re: How i can do this??? - by Emmet_ - 18.04.2011, 20:50
Re: How i can do this??? - by Mean - 19.04.2011, 12:47

Forum Jump:


Users browsing this thread: 4 Guest(s)