How can I count my pickups?
#3

I would use this way.

pawn Код:
new VCPickup[5];
new PlayerFindHidden[MAX_PLAYERS];

VCPickup[0] = CreatePickup..
VCPickup[1] = CreatePickup..
....

OnPlayerPickupPickup(playerid,pickupid)
for(new i = 0; i < sizeof(VCPickup); i++)
{
    if(pickupid == VCPickup[i])
    {
        new string[128];
        PlayerFindHidden[playerid]++;
        format(string,sizeof(string),"You found hidden packages %d/5",PlayerFindHidden[playerid]);
        GameTextForPlayer(playerid,string,3000,3);
        DestroyPickup(VCPickup[i]);

    }
}
Reply


Messages In This Thread
How can I count my pickups? - by taki5baj - 29.07.2010, 07:20
Re: How can I count my pickups? - by 3ventic - 29.07.2010, 08:20
Re: How can I count my pickups? - by ikey07 - 29.07.2010, 08:38
Re: How can I count my pickups? - by taki5baj - 29.07.2010, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)