20.03.2014, 10:04
Hola.
ї Alguien me puede decir cual es la funcion de este codigo ?
Gracias
ї Alguien me puede decir cual es la funcion de este codigo ?
Gracias

pawn Код:
RestartEveryThing();
RestartEveryThing ()
{
new xq, yq, zq;
new Number;
Speed_xy = 2000 / (HAY_Z + 1);
Speed_z = 1500 / (HAY_Z + 1);
for (new i=0 ; i<MAX_PLAYERS ; i++)
{
if (IsPlayerConnected (i))
{
WhatLevel[i] = 0;
}
}
for (xq=0 ; xq<HAY_X ; xq++)
{
for (yq=0 ; yq<HAY_Y ; yq++)
{
for (zq=0 ; zq<HAY_Z ; zq++)
{
Matrix[xq][yq][zq] = 0;
}
}
}
for (Number=0 ; Number<HAY_B ; Number++)
{
do
{
xq = random (HAY_X);
yq = random (HAY_Y);
zq = random (HAY_Z);
}
while (Matrix[xq][yq][zq] != 0);
Matrix[xq][yq][zq] = 1;
Hays[Number] = CreateObject (ID_HAY_OBJECT, xq*(-4), yq*(-4), (zq+1)*3, 0.0, 0.0, random (2)*180,50);
}
Center_x = (HAY_X + 1) * -2;
Center_y = (HAY_Y + 1) * -2;
CreateObject (ID_HAY_OBJECT, Center_x, Center_y, HAY_Z*3 + 3, 0, 0, 0,50);
SetTimer ("TimerMove", 100, 0);
SetTimer ("TDScore", 1000, 1);
}