2nd Problem :/
#1

How annoying can scripting get? xD

Hopefully once iv been helped i will learn

Okay so back to the subject on the DM.

top of the script
Quote:

new Float:area51random[][8] =
{
// Positions, (X, Y, Z and Facing Angle)
{155.7807,1903.4863,18.6700,268.1238},
{210.1140,1838.3635,17.6406,353.6646},
{221.7679,1860.6051,13.1470,50.0417},
{202.8862,1872.8151,13.1406,238.6468},
{244.7581,1933.3304,17.6481,147.8027},
{243.1046,1863.9373,11.4609,24.2361},
{246.9140,1860.9084,14.0840,351.8174},
{259.4326,1852.4431,8.7578,105.5351}
};

Code:
Quote:

if(GetPlayerMenu(playerid) == DM)
{
switch(row)
{
case 0:
{
GameTextForPlayer(playerid,"~r~Welcome to Area51 DM",3000,4);
TogglePlayerControllable(playerid, 1);
HideMenuForPlayer(DM, playerid);
new rand = random(sizeof(area51random));

// SetPlayerPos to the random spawn data
SetPlayerPos(playerid, area51random[rand][0], area51random[rand][1],area51random[rand][2]);

// SetPlayerFacingAngle to the random facing angle data
SetPlayerFacingAngle(playerid, ,area51random[rand][8]);
return 1;
}

I want to be able to make a random spawn for the Area51 dm anyhelp?

---------------------------------------------------------------------------------------------
Get used to me i aint a bad scripter but i am still learning
Reply


Messages In This Thread
2nd Problem :/ - by fie - 28.07.2011, 18:16
Re: 2nd Problem :/ - by Jay. - 28.07.2011, 18:25
Re: 2nd Problem :/ - by fie - 28.07.2011, 18:41
Re: 2nd Problem :/ - by Jay. - 28.07.2011, 18:43
Re: 2nd Problem :/ - by Laronic - 28.07.2011, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)