How i can do this???
#6

He got 100 of what on every second, explain more, I don't understand.

EDIT: I think I understand:

pawn Код:
new pickup, timer;

public OnGameModeInit( )
{
    pickup = CreatePickup( 1550, 19, Float:X, Float:Y, Float:Z, 0 ) // change where you want the moneybag to be at beginning.
    return 1;
}

public OnPlayerPickUpPickup( playerid, pickupid )
{
    if( pickupid == pickup )
    {
        timer = SetTimerEx( "CashTimer", 1000, 1, "i", playerid );
        SetPVarInt( playerid, "HasBag", 1 );
    }
    return 1;
}

public OnPlayerDeath( playerid, killerid, reason )
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos( playerid, x, y, z );
    if( GetPVarInt( playerid, "HasBag" ) == 1 )
    {
        DestroyPickup( pickup );
        pickup = CreatePickup( 1550, 19, x, y + 3, z, 1 );
        SetPVarInt( playerid, "HasBag", 0 );
        KillTimer( timer );
    }
    return 1;
}

forward CashTimer( playerid )
{
    GivePlayerMoney( playerid, 100 );
    return 1;
}
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: 2 Guest(s)