Money bag problem.
#2

Why can't you just use playerid in OnPlayerPickupPickup?
pawn Код:
if(pickupid == cash)
    {
            new string[120], name[MAX_PLAYER_NAME];
                GetPlayerName(playerid,name,sizeof(name));
        GivePlayerMoney(playerid,10000);
        format(string, sizeof(string), "%s found the Money Bag!", name);
        TextDrawSetString(notification, string);
        SetTimer("CloseTextdraw_notification", 2*1000, false);
       
                bagholder = playerid;
 
        SetPlayerAttachedObject(playerid, 1, 1550, 1, 0.1, -0.2, 0, 0, 90, 0.5, 0.8, 0.8, 0.8);
        DestroyPickup(cash);
    }
   
    return 1;
And just a tip, the money bag will be displaced on some skins because some skins are different than others.
Reply


Messages In This Thread
Money bag problem. - by bhaveshnande - 05.03.2011, 05:34
Re: Money bag problem. - by Th3Angel - 05.03.2011, 07:15
Re: Money bag problem. - by bhaveshnande - 05.03.2011, 07:38
Re: Money bag problem. - by bhaveshnande - 07.03.2011, 04:46
Re: Money bag problem. - by Loppa - 07.03.2011, 05:07
Re: Money bag problem. - by bhaveshnande - 07.03.2011, 05:12

Forum Jump:


Users browsing this thread: 1 Guest(s)