29.07.2010, 08:38
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]);
}
}