15.06.2014, 13:32
pawn Код:
enum E_giftboxforplayers
{
gb_location[25],
Float: gb_coords[4]
};
new giftboxforplayers[][E_giftboxforplayers] =
{
{"Bone County", {-517.3328, 1595.5092, -0.5358, 19.8932}},
{"Sherman Dam", {-483.8486, 2186.7073, 40.0462, 359.7931}}
};
public movegiftbox()
{
DestroyPickup(Giftboxpick);
new Random = random(sizeof(giftboxforplayers));
Giftboxpick = CreatePickup(1210,19,giftboxforplayers[Random][gb_coords][0],giftboxforplayers[Random][gb_coords][1],giftboxforplayers[Random][gb_coords][2],0);
// use "giftboxforplayers[Random][gb_location]" for the location's name
}