16.12.2014, 17:36
pawn Код:
new Picked[MAX_PLAYERS];
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == tiki)
{
if(!Picked[playerid])
{
PlayerInfo[playerid][pExp]++;
Picked[playerid] ++;
}
}
return 1;
}
// or you can do this
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == tiki)
{
PlayerInfo[playerid][pExp]++;
DestroyPickup(tiki);
}
return 1;
}