Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward OnItemSpawn();
- static Float:BoxItemPlace[][3] =
- {
- {-1791.2888, 1208.8975, 24.2469},
- {-3736.1692, -1781.7969, 4.4530},
- {-2538.9451, 47.6585, 7.7112},
- {-283.2101, -2151.9351, 27.6529},
- {-924.8263, -496.6608, 25.8673},
- {224.2276, 1923.1722, 16.7572},
- {-2492.5334, 2356.0469, 9.2019},
- {1965.1840, 1620.3276, 11.9959},
- {1122.7972, -2041.0688, 69.0107},
- {-2811.8206, -1515.3728, 139.9439}
- };
- public OnItemSpawn()
- {
- new randompos = random(sizeof(BoxItemPlace));
- DestroyObject(BoxItem);
- BoxItem = CreateObject(2969, BoxItemPlace[randompos][0], BoxItemPlace[randompos][1], BoxItemPlace[randompos][2], 0.0, 0.0, 0.0);
- Delete3DTextLabel(Box_text);
- Box_text = Create3DTextLabel("Box. Use /take", 0xFFBE00FF, BoxItemPlace[randompos][0], BoxItemPlace[randompos][1], BoxItemPlace[randompos][2], 10.0, 0, 1);
- return 1;
- }
- public OnGameModeInit()
- {
- SetTimer("OnItemSpawn", 120000, true);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment