01.11.2009, 19:10
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == foodshop1)
{
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
ShowMenuForPlayer(foodshops, playerid);
TogglePlayerControllable(playerid, 0);
}
else if (pickupid == foodshop2)
{
PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
ShowMenuForPlayer(foodshops, playerid);
TogglePlayerControllable(playerid, 0);
}
return 0;
}