Random Spawn with My Menu
#1

Hi guys, I need help with my menu, I was looking to add two random positions in this menu, can someone help me with the code??

Код:
enum SPAWN_INFO {
	eSkin,
	eTeam,
        Float: ePos[4],
	eWeapons[3],
	eAmmo[3]
	
};


new const SpawnInfo[][SPAWN_INFO] =
    {

	 // skin, team, x, y, z, a, wep1, ammo1, wep2, ammo2, wep3, ammo3
    {21,0,{-2636.9077,260.5389,4.3281,75.9486},{30,150,25},{50,29,150}},  <--- random position
    {21,0,{-2486.7871,257.4536,34.8855,75.9486},{30,150,25},{50,29,150}}, <---- random position
	{2,1,{-1762.0461,960.5403,24.8828,171.4048},{26,100,29},{150,24,20}},
	{124,2,{-2454.6692,139.8220,34.9609,313.0271},{30,150,25},{50,29,150}},
	{122,3,{-1678.2971,1359.7749,6.8045,314.8831},{30,150,32},{150,24,50}},
	{285,4,{-1635.0077,665.8105,7.1875,264.2244},{29,150,31},{150,16,8}},
	{108,5,{-2123.0313,-212.4085,34.9448,103.0335},{31,150,24},{20,27,100}},
    {248,6,{-2180.8606,706.7700,53.8906,188.5527},{30,150,25},{50,29,150}},
	{295,7,{-2667.5515,906.6794,79.6682,153.4801},{30,150,32},{150,24,50}},
	{159,8,{-1058.2749,-1162.2968,128.8435,169.9164},{29,150,31},{150,16,8}},
	{50,9,{-473.5201,-513.6721,25.0684,178.2461},{31,150,24},{20,27,100}},
    {296,10,{-2640.1396,1374.2184,7.1437,252.1212},{31,150,24},{20,27,100}},
	{287,11,{-1335.4381,506.1993,11.1953,83.7755},{30,150,25},{50,29,150}}

};
Reply
#2

@removed
Reply
#3

No one can help me??
Reply
#4

how you want to make it -
like by cmd /randomspawn [playerid] or what
Reply
#5

Quote:
Originally Posted by TadePoleMG
Посмотреть сообщение
how you want to make it -
like by cmd /randomspawn [playerid] or what
I have this menu and I'm looking to add a random spawn with "enum", can u help me??
Reply
#6

Just before you rip into this, you added both those lines by following the 'style' of the ones below it, and nothing more?

Like, there's a possible issue with what you are doing that you maybe aren't seeing.
Reply
#7

Giving you correct script after some time.
Reply
#8

If team 0 isn't used by the script normally, and has been added by these lines simply being thrown in, and the script checks for !team, then it will trigger unintentional issues if the script does anything with that check.
Reply
#9

Thx friend for help me
Reply
#10

It helps.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)