PHP код:
forward FirerocketTime(playerid);
public FirerocketTime(playerid)
{
if(firerockettime[playerid] == 2)
{
GetObjectPos(Firerocket[playerid], FRX[playerid], FRY[playerid], FRZ[playerid]);
explosionrocket[playerid] = CreateExplosion(FRX[playerid], FRY[playerid], FRZ[playerid], 6, 0);
SetTimerEx("splittime2", 100, 0, "i", playerid);
printf("firerockettime[playerid] == 2 >> SetTimerEx 'splittime2'")
return 1;
}
return 1;
}
forward splittime2( playerid );
public splittime2(playerid)
{
if(firerockettime[playerid] == 2)
{
CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid],FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 6, 0);
CreateExplosion(FRX[playerid],FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 6, 0);
Light[1][playerid] = CreateDynamicObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 0, 0,0);
Light[2][playerid] = CreateDynamicObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 0, 0,0);
Light[3][playerid] = CreateDynamicObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 0, 0,0);
Light[4][playerid] = CreateDynamicObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 0, 0,0);
Light[5][playerid] = CreateDynamicObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 0, 0,0);
Light[6][playerid] = CreateDynamicObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid],FRZ[playerid]-5, 0, 0,0);
Light[7][playerid] = CreateDynamicObject(354,FRX[playerid],FRY[playerid]-(0+(random(10))),FRZ[playerid]-5, 0, 0,0);
Light[8][playerid] = CreateDynamicObject(354,FRX[playerid],FRY[playerid]+(0+(random(10))),FRZ[playerid]-5, 0, 0,0);
new Float:X,Float:Y,Float:Z;
GetObjectPos(Light[1][playerid], X, Y, Z);
MoveObject(Light[1][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[2][playerid], X, Y, Z);
MoveObject(Light[2][playerid], X-6, Y+6, Z-20, 4);
GetObjectPos(Light[3][playerid], X, Y, Z);
MoveObject(Light[3][playerid], X-6, Y, Z-20, 4);
GetObjectPos(Light[4][playerid], X, Y, Z);
MoveObject(Light[4][playerid], X+6, Y-6, Z-20, 4);
GetObjectPos(Light[5][playerid], X, Y, Z);
MoveObject(Light[5][playerid], X+6, Y+6, Z-20, 4);
GetObjectPos(Light[6][playerid], X, Y, Z);
MoveObject(Light[6][playerid], X+6, Y, Z-20, 4);
GetObjectPos(Light[7][playerid], X, Y, Z);
MoveObject(Light[7][playerid], X, Y-6, Z-20, 4);
GetObjectPos(Light[8][playerid], X, Y, Z);
MoveObject(Light[8][playerid], X, Y+6, Z-20, 4);
SetTimerEx("splittime3", 3000, 0, "i", playerid);
DestroyObject(rocketsmoke[playerid]);
DestroyObject(Firerocket[playerid]);
printf("firerockettime[playerid] == 2 >> SetTimerEx 'splittime3'")
return 1;
}
return 1;
}
forward splittime3( playerid );
public splittime3(playerid)
{
if(firerockettime[playerid] == 2)
{
new Float:X,Float:Y,Float:Z;
GetObjectPos(Light[1][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[2][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[3][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[4][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[5][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[6][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[7][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[8][playerid], X, Y, Z);
CreateExplosion(X, Y, Z, 6, 0);
GetObjectPos(Light[9][playerid], X, Y, Z);
Light[11][playerid] = CreateDynamicObject(1213,X-7,Y+7,Z+8, 0, 0,0);
Light[12][playerid] = CreateDynamicObject(1213,X-7,Y,Z+5, 0, 0,0);
Light[13][playerid] = CreateDynamicObject(1213,X,Y+7,Z-5, 0, 0,0);
Light[14][playerid] = CreateDynamicObject(1213,X,Y-7,Z-5, 0, 0,0);
GetObjectPos(Light[2][playerid], X, Y, Z);
Light[15][playerid] = CreateDynamicObject(1213,X,Y-7,Z+5, 0, 0,0);
Light[16][playerid] = CreateDynamicObject(1213,X-7,Y,Z-5, 0, 0,0);
Light[17][playerid] = CreateDynamicObject(1213,X,Y+7,Z-8, 0, 0,0);
Light[18][playerid] = CreateDynamicObject(1213,X,Y+7,Z-5, 0, 0,0);
GetObjectPos(Light[3][playerid], X, Y, Z);
Light[19][playerid] = CreateDynamicObject(1213,X+7,Y,Z-1, 0, 0,0);
Light[20][playerid] = CreateDynamicObject(1213,X-7,Y,Z-8, 0, 0,0);
Light[21][playerid] = CreateDynamicObject(1213,X+7,Y+7,Z-5, 0, 0,0);
Light[22][playerid] = CreateDynamicObject(1213,X,Y,Z+5, 0, 0,0);
GetObjectPos(Light[4][playerid], X, Y, Z);
Light[23][playerid] = CreateDynamicObject(1213,X+7,Y-7,Z-5, 0, 0,0);
Light[24][playerid] = CreateDynamicObject(1213,X-7,Y,Z-7, 0, 0,0);
Light[25][playerid] = CreateDynamicObject(1213,X+7,Y+7,Z+5, 0, 0,0);
Light[26][playerid] = CreateDynamicObject(1213,X,Y-7,Z, 0, 0,0);
GetObjectPos(Light[5][playerid], X, Y, Z);
Light[27][playerid] = CreateDynamicObject(1213,X,Y-7,Z-5, 0, 0,0);
Light[28][playerid] = CreateDynamicObject(1213,X-7,Y,Z+8, 0, 0,0);
Light[29][playerid] = CreateDynamicObject(1213,X+7,Y,Z-8, 0, 0,0);
Light[30][playerid] = CreateDynamicObject(1213,X,Y+7,Z+5, 0, 0,0);
GetObjectPos(Light[6][playerid], X, Y, Z);
Light[31][playerid] = CreateDynamicObject(1213,X-7,Y-7,Z-7, 0, 0,0);
Light[32][playerid] = CreateDynamicObject(1213,X,Y,Z-5, 0, 0,0);
Light[33][playerid] = CreateDynamicObject(1213,X+7,Y+7,Z+5, 0, 0,0);
Light[34][playerid] = CreateDynamicObject(1213,X+4,Y-7,Z-5, 0, 0,0);
GetObjectPos(Light[7][playerid], X, Y, Z);
Light[35][playerid] = CreateDynamicObject(1213,X-7,Y-7,Z-8, 0, 0,0);
Light[36][playerid] = CreateDynamicObject(1213,X-7,Y,Z+5, 0, 0,0);
Light[37][playerid] = CreateDynamicObject(1213,X,Y,Z-5, 0, 0,0);
Light[38][playerid] = CreateDynamicObject(1213,X,Y-7,Z+8, 0, 0,0);
GetObjectPos(Light[8][playerid], X, Y, Z);
Light[39][playerid] = CreateDynamicObject(1213,X-4,Y-7,Z-8, 0, 0,0);
Light[40][playerid] = CreateDynamicObject(1213,X+7,Y,Z+8, 0, 0,0);
Light[41][playerid] = CreateDynamicObject(1213,X+4,Y,Z+5, 0, 0,0);
Light[42][playerid] = CreateDynamicObject(1213,X,Y-7,Z-5, 0, 0,0);
GetObjectPos(Light[1][playerid], X, Y, Z);
MoveObject(Light[1][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[2][playerid], X, Y, Z);
MoveObject(Light[2][playerid], X-6, Y+6, Z-20, 4);
GetObjectPos(Light[3][playerid], X, Y, Z);
MoveObject(Light[3][playerid], X-6, Y, Z-20, 4);
GetObjectPos(Light[4][playerid], X, Y, Z);
MoveObject(Light[4][playerid], X+6, Y-6, Z-20, 4);
GetObjectPos(Light[5][playerid], X, Y, Z);
MoveObject(Light[5][playerid], X+6, Y+6, Z-20, 4);
GetObjectPos(Light[6][playerid], X, Y, Z);
MoveObject(Light[6][playerid], X+6, Y, Z-20, 4);
GetObjectPos(Light[7][playerid], X, Y, Z);
MoveObject(Light[1][playerid], X, Y-6, Z-20, 4);
GetObjectPos(Light[8][playerid], X, Y, Z);
MoveObject(Light[8][playerid], X, Y+6, Z-20, 4);
GetObjectPos(Light[11][playerid], X, Y, Z);
MoveObject(Light[11][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[12][playerid], X, Y, Z);
MoveObject(Light[12][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[13][playerid], X, Y, Z);
MoveObject(Light[13][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[14][playerid], X, Y, Z);
MoveObject(Light[14][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[15][playerid], X, Y, Z);
MoveObject(Light[15][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[16][playerid], X, Y, Z);
MoveObject(Light[16][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[17][playerid], X, Y, Z);
MoveObject(Light[17][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[18][playerid], X, Y, Z);
MoveObject(Light[18][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[19][playerid], X, Y, Z);
MoveObject(Light[19][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[20][playerid], X, Y, Z);
MoveObject(Light[20][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[21][playerid], X, Y, Z);
MoveObject(Light[21][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[22][playerid], X, Y, Z);
MoveObject(Light[22][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[23][playerid], X, Y, Z);
MoveObject(Light[23][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[24][playerid], X, Y, Z);
MoveObject(Light[24][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[25][playerid], X, Y, Z);
MoveObject(Light[25][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[26][playerid], X, Y, Z);
MoveObject(Light[26][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[27][playerid], X, Y, Z);
MoveObject(Light[27][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[28][playerid], X, Y, Z);
MoveObject(Light[28][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[29][playerid], X, Y, Z);
MoveObject(Light[29][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[30][playerid], X, Y, Z);
MoveObject(Light[30][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[31][playerid], X, Y, Z);
MoveObject(Light[31][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[32][playerid], X, Y, Z);
MoveObject(Light[32][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[33][playerid], X, Y, Z);
MoveObject(Light[33][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[34][playerid], X, Y, Z);
MoveObject(Light[34][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[35][playerid], X, Y, Z);
MoveObject(Light[35][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[36][playerid], X, Y, Z);
MoveObject(Light[36][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[37][playerid], X, Y, Z);
MoveObject(Light[37][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[38][playerid], X, Y, Z);
MoveObject(Light[38][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[39][playerid], X, Y, Z);
MoveObject(Light[39][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[40][playerid], X, Y, Z);
MoveObject(Light[40][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[41][playerid], X, Y, Z);
MoveObject(Light[41][playerid], X-6, Y-6, Z-20, 4);
GetObjectPos(Light[42][playerid], X, Y, Z);
MoveObject(Light[42][playerid], X-6, Y-6, Z-20, 4);
SetTimerEx("lighttimer2", 4000, 0, "i", playerid);
DestroyObject(Firerocket[playerid]);
DestroyObject(rocketsmoke[playerid]);
printf("firerockettime[playerid] == 2 >> SetTimerEx 'lighttimer2'")
return 1;
}
return 1;
}
forward lighttimer2( playerid );
public lighttimer2(playerid)
{
DestroyObject(Light[1][playerid]);
DestroyObject(Light[2][playerid]);
DestroyObject(Light[3][playerid]);
DestroyObject(Light[4][playerid]);
DestroyObject(Light[5][playerid]);
DestroyObject(Light[6][playerid]);
DestroyObject(Light[7][playerid]);
DestroyObject(Light[8][playerid]);
DestroyObject(Light[11][playerid]);
DestroyObject(Light[12][playerid]);
DestroyObject(Light[13][playerid]);
DestroyObject(Light[14][playerid]);
DestroyObject(Light[15][playerid]);
DestroyObject(Light[16][playerid]);
DestroyObject(Light[17][playerid]);
DestroyObject(Light[18][playerid]);
DestroyObject(Light[19][playerid]);
DestroyObject(Light[20][playerid]);
DestroyObject(Light[21][playerid]);
DestroyObject(Light[22][playerid]);
DestroyObject(Light[23][playerid]);
DestroyObject(Light[24][playerid]);
DestroyObject(Light[25][playerid]);
DestroyObject(Light[26][playerid]);
DestroyObject(Light[27][playerid]);
DestroyObject(Light[28][playerid]);
DestroyObject(Light[29][playerid]);
DestroyObject(Light[30][playerid]);
DestroyObject(Light[31][playerid]);
DestroyObject(Light[32][playerid]);
DestroyObject(Light[33][playerid]);
DestroyObject(Light[34][playerid]);
DestroyObject(Light[35][playerid]);
DestroyObject(Light[36][playerid]);
DestroyObject(Light[37][playerid]);
DestroyObject(Light[38][playerid]);
DestroyObject(Light[39][playerid]);
DestroyObject(Light[40][playerid]);
DestroyObject(Light[41][playerid]);
DestroyObject(Light[42][playerid]);
firerockettime[playerid] = 0;
printf("firerockettime[playerid] == 0 >> Deletar Objetos")
return 1;
}