[Ajuda] fogos
#1

PHP код:
if (strcmp("/fogos"cmdtrue ) == 0)
    {
        if( 
Playerplayerid ][ pAdmin ] > || Playerplayerid ][ pFogueteiro ] > )
        {
            if(
firerockettime[playerid] == 0)
            if(
Player[playerid][pFogos] >= 1)
            {
                new 
Float:X,Float:Y,Float:Z;
                 
Player[playerid][pFogos] -= 1;
                
firerockettime[playerid] = 2;
                
GetPlayerPos(playerid,X,Y,Z);
                
GetXYInFrontOfPlayer(playeridX,Y2);
                
Firerocket[playerid] = CreateObject(354X,Y,(Z), 000);
                
rocketsmoke[playerid] = CreateObject(2780X,Y,(Z), 000);
                
MoveObject(Firerocket[playerid], XYZ+5015);
                
MoveObject(rocketsmoke[playerid], XYZ+5015);
                
GetPlayerName(playeridsendernamesizeof (sendername));
                new 
str 128 ];
                for(new 
i=0<= MAX_PLAYERSi++)
                if(
GetDistanceBetweenPlayers(playeridi) <= 100)
                
PlayAudioStreamForPlayer(i"http://dl.dropbox.com/u/105457634/fogos.wav"XYZ100.01);
                
format(strsizeof str"{FF0000}O Fogueteiro %s avisa a todos de sua Facзгo que sua Favela estб sendo invadida!",sendername);
                
ProxDetector(20.0playeridstr,COR_ROXO,COR_ROXO,COR_ROXO,COR_ROXO,COR_ROXO);
                
format(strsizeof str"",sendername);
                
SetTimerEx("FirerocketTime"30000"i"playerid);
            }
        }
        else 
SendClientMessage(playeridCOR_ERRO"Vocк precisa ter '1' rojгo para usar!");
        return 
1;
    } 
OQUE TEM DE ERRADO? QUANDO NГO TEM FOGOS ELE NГO APARECE A MENSAGEM ACIMA.
Reply
#2

PHP код:
if (strcmp("/fogos"cmdtrue ) == 0

        if(
Player[playerid][pFogos] > 0)
        { 
            if( 
Playerplayerid ][ pAdmin ] > || Playerplayerid ][ pFogueteiro ] > 
            { 
                new 
Float:X,Float:Y,Float:Z
                 
Player[playerid][pFogos] -= 1
                
firerockettime[playerid] = 2
                
GetPlayerPos(playerid,X,Y,Z); 
                
GetXYInFrontOfPlayer(playeridX,Y2); 
                
Firerocket[playerid] = CreateObject(354X,Y,(Z), 000); 
                
rocketsmoke[playerid] = CreateObject(2780X,Y,(Z), 000); 
                
MoveObject(Firerocket[playerid], XYZ+5015); 
                
MoveObject(rocketsmoke[playerid], XYZ+5015); 
                
GetPlayerName(playeridsendernamesizeof (sendername)); 
                new 
str 128 ]; 
                for(new 
i=0<= MAX_PLAYERSi++) 
                if(
GetDistanceBetweenPlayers(playeridi) <= 100
                
PlayAudioStreamForPlayer(i"http://dl.dropbox.com/u/105457634/fogos.wav"XYZ100.01); 
                
format(strsizeof str"{FF0000}O Fogueteiro %s avisa a todos de sua Facзгo que sua Favela estб sendo invadida!",sendername); 
                
ProxDetector(20.0playeridstr,COR_ROXO,COR_ROXO,COR_ROXO,COR_ROXO,COR_ROXO); 
                
format(strsizeof str"",sendername); 
                
SetTimerEx("FirerocketTime"30000"i"playerid); 
            } 
        } 
        else 
SendClientMessage(playeridCOR_ERRO"Vocк precisa ter '1' rojгo para usar!"); 
        return 
1

Eu removi if(firerockettime[playerid] == 0) pois nгo sei pra que serve. Se me falar posso melhorar
Reply
#3

Valeu mano, ah, os fogos estouram de boa, mas a luz continua no ceu '- ela n some, pq isso?
Reply
#4

DestroyObject(rocketsmoke[playerid]);
DestroyObject(Firerocket[playerid])

Crie um timer e dentro adicione isso!
Reply
#5

ja tem, mas n sei se ta certo mano

Quote:

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);
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]);
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]);
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;
return 1;
}

Reply
#6

1є- DELETE 'server_log.txt' da pasta do GM;
2є- COPIE e COLE este code substituindo o que vc mandou agora;
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], 60);
    
SetTimerEx("splittime2"1000"i"playerid);
    
printf("firerockettime[playerid] == 2 >> SetTimerEx 'splittime2'")
    return 
1;
    }
    return 
1;
}
forward splittime2playerid );
public 
splittime2(playerid)
{
    if(
firerockettime[playerid] == 2)
    {
    
CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid]-(0+(random(10))),FRY[playerid],FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid]+(0+(random(10))),FRY[playerid],FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid],FRY[playerid]-(0+(random(10))),FRZ[playerid]-560);
    
CreateExplosion(FRX[playerid],FRY[playerid]+(0+(random(10))),FRZ[playerid]-560);
    
Light[1][playerid] = CreateDynamicObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-500,0);
    
Light[2][playerid] = CreateDynamicObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-500,0);
    
Light[3][playerid] = CreateDynamicObject(354,FRX[playerid]-(0+(random(10))),FRY[playerid],FRZ[playerid]-500,0);
    
Light[4][playerid] = CreateDynamicObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid]-(0+(random(10))),FRZ[playerid]-500,0);
    
Light[5][playerid] = CreateDynamicObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid]+(0+(random(10))),FRZ[playerid]-500,0);
    
Light[6][playerid] = CreateDynamicObject(354,FRX[playerid]+(0+(random(10))),FRY[playerid],FRZ[playerid]-500,0);
    
Light[7][playerid] = CreateDynamicObject(354,FRX[playerid],FRY[playerid]-(0+(random(10))),FRZ[playerid]-500,0);
    
Light[8][playerid] = CreateDynamicObject(354,FRX[playerid],FRY[playerid]+(0+(random(10))),FRZ[playerid]-500,0);
    new 
Float:X,Float:Y,Float:Z;
    
GetObjectPos(Light[1][playerid], XYZ);
    
MoveObject(Light[1][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[2][playerid], XYZ);
    
MoveObject(Light[2][playerid], X-6Y+6Z-204);
    
GetObjectPos(Light[3][playerid], XYZ);
    
MoveObject(Light[3][playerid], X-6YZ-204);
    
GetObjectPos(Light[4][playerid], XYZ);
    
MoveObject(Light[4][playerid], X+6Y-6Z-204);
    
GetObjectPos(Light[5][playerid], XYZ);
    
MoveObject(Light[5][playerid], X+6Y+6Z-204);
    
GetObjectPos(Light[6][playerid], XYZ);
    
MoveObject(Light[6][playerid], X+6YZ-204);
    
GetObjectPos(Light[7][playerid], XYZ);
    
MoveObject(Light[7][playerid], XY-6Z-204);
    
GetObjectPos(Light[8][playerid], XYZ);
    
MoveObject(Light[8][playerid], XY+6Z-204);
    
SetTimerEx("splittime3"30000"i"playerid);
    
DestroyObject(rocketsmoke[playerid]);
    
DestroyObject(Firerocket[playerid]);
    
printf("firerockettime[playerid] == 2 >> SetTimerEx 'splittime3'")
    return 
1;
    }
    return 
1;
}
forward splittime3playerid );
public 
splittime3(playerid)
{
    if(
firerockettime[playerid] == 2)
    {
    new 
Float:X,Float:Y,Float:Z;
    
GetObjectPos(Light[1][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[2][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[3][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[4][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[5][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[6][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[7][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[8][playerid], XYZ);
    
CreateExplosion(XYZ60);
    
GetObjectPos(Light[9][playerid], XYZ);
    
Light[11][playerid] = CreateDynamicObject(1213,X-7,Y+7,Z+800,0);
    
Light[12][playerid] = CreateDynamicObject(1213,X-7,Y,Z+500,0);
    
Light[13][playerid] = CreateDynamicObject(1213,X,Y+7,Z-500,0);
    
Light[14][playerid] = CreateDynamicObject(1213,X,Y-7,Z-500,0);
    
GetObjectPos(Light[2][playerid], XYZ);
    
Light[15][playerid] = CreateDynamicObject(1213,X,Y-7,Z+500,0);
    
Light[16][playerid] = CreateDynamicObject(1213,X-7,Y,Z-500,0);
    
Light[17][playerid] = CreateDynamicObject(1213,X,Y+7,Z-800,0);
    
Light[18][playerid] = CreateDynamicObject(1213,X,Y+7,Z-500,0);
    
GetObjectPos(Light[3][playerid], XYZ);
    
Light[19][playerid] = CreateDynamicObject(1213,X+7,Y,Z-100,0);
    
Light[20][playerid] = CreateDynamicObject(1213,X-7,Y,Z-800,0);
    
Light[21][playerid] = CreateDynamicObject(1213,X+7,Y+7,Z-500,0);
    
Light[22][playerid] = CreateDynamicObject(1213,X,Y,Z+500,0);
    
GetObjectPos(Light[4][playerid], XYZ);
    
Light[23][playerid] = CreateDynamicObject(1213,X+7,Y-7,Z-500,0);
    
Light[24][playerid] = CreateDynamicObject(1213,X-7,Y,Z-700,0);
    
Light[25][playerid] = CreateDynamicObject(1213,X+7,Y+7,Z+500,0);
    
Light[26][playerid] = CreateDynamicObject(1213,X,Y-7,Z00,0);
    
GetObjectPos(Light[5][playerid], XYZ);
    
Light[27][playerid] = CreateDynamicObject(1213,X,Y-7,Z-500,0);
    
Light[28][playerid] = CreateDynamicObject(1213,X-7,Y,Z+800,0);
    
Light[29][playerid] = CreateDynamicObject(1213,X+7,Y,Z-800,0);
    
Light[30][playerid] = CreateDynamicObject(1213,X,Y+7,Z+500,0);
    
GetObjectPos(Light[6][playerid], XYZ);
    
Light[31][playerid] = CreateDynamicObject(1213,X-7,Y-7,Z-700,0);
    
Light[32][playerid] = CreateDynamicObject(1213,X,Y,Z-500,0);
    
Light[33][playerid] = CreateDynamicObject(1213,X+7,Y+7,Z+500,0);
    
Light[34][playerid] = CreateDynamicObject(1213,X+4,Y-7,Z-500,0);
    
GetObjectPos(Light[7][playerid], XYZ);
    
Light[35][playerid] = CreateDynamicObject(1213,X-7,Y-7,Z-800,0);
    
Light[36][playerid] = CreateDynamicObject(1213,X-7,Y,Z+500,0);
    
Light[37][playerid] = CreateDynamicObject(1213,X,Y,Z-500,0);
    
Light[38][playerid] = CreateDynamicObject(1213,X,Y-7,Z+800,0);
    
GetObjectPos(Light[8][playerid], XYZ);
    
Light[39][playerid] = CreateDynamicObject(1213,X-4,Y-7,Z-800,0);
    
Light[40][playerid] = CreateDynamicObject(1213,X+7,Y,Z+800,0);
    
Light[41][playerid] = CreateDynamicObject(1213,X+4,Y,Z+500,0);
    
Light[42][playerid] = CreateDynamicObject(1213,X,Y-7,Z-500,0);
    
GetObjectPos(Light[1][playerid], XYZ);
    
MoveObject(Light[1][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[2][playerid], XYZ);
    
MoveObject(Light[2][playerid], X-6Y+6Z-204);
    
GetObjectPos(Light[3][playerid], XYZ);
    
MoveObject(Light[3][playerid], X-6YZ-204);
    
GetObjectPos(Light[4][playerid], XYZ);
    
MoveObject(Light[4][playerid], X+6Y-6Z-204);
    
GetObjectPos(Light[5][playerid], XYZ);
    
MoveObject(Light[5][playerid], X+6Y+6Z-204);
    
GetObjectPos(Light[6][playerid], XYZ);
    
MoveObject(Light[6][playerid], X+6YZ-204);
    
GetObjectPos(Light[7][playerid], XYZ);
    
MoveObject(Light[1][playerid], XY-6Z-204);
    
GetObjectPos(Light[8][playerid], XYZ);
    
MoveObject(Light[8][playerid], XY+6Z-204);
    
GetObjectPos(Light[11][playerid], XYZ);
    
MoveObject(Light[11][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[12][playerid], XYZ);
    
MoveObject(Light[12][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[13][playerid], XYZ);
    
MoveObject(Light[13][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[14][playerid], XYZ);
    
MoveObject(Light[14][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[15][playerid], XYZ);
    
MoveObject(Light[15][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[16][playerid], XYZ);
    
MoveObject(Light[16][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[17][playerid], XYZ);
    
MoveObject(Light[17][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[18][playerid], XYZ);
    
MoveObject(Light[18][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[19][playerid], XYZ);
    
MoveObject(Light[19][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[20][playerid], XYZ);
    
MoveObject(Light[20][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[21][playerid], XYZ);
    
MoveObject(Light[21][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[22][playerid], XYZ);
    
MoveObject(Light[22][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[23][playerid], XYZ);
    
MoveObject(Light[23][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[24][playerid], XYZ);
    
MoveObject(Light[24][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[25][playerid], XYZ);
    
MoveObject(Light[25][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[26][playerid], XYZ);
    
MoveObject(Light[26][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[27][playerid], XYZ);
    
MoveObject(Light[27][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[28][playerid], XYZ);
    
MoveObject(Light[28][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[29][playerid], XYZ);
    
MoveObject(Light[29][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[30][playerid], XYZ);
    
MoveObject(Light[30][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[31][playerid], XYZ);
    
MoveObject(Light[31][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[32][playerid], XYZ);
    
MoveObject(Light[32][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[33][playerid], XYZ);
    
MoveObject(Light[33][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[34][playerid], XYZ);
    
MoveObject(Light[34][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[35][playerid], XYZ);
    
MoveObject(Light[35][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[36][playerid], XYZ);
    
MoveObject(Light[36][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[37][playerid], XYZ);
    
MoveObject(Light[37][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[38][playerid], XYZ);
    
MoveObject(Light[38][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[39][playerid], XYZ);
    
MoveObject(Light[39][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[40][playerid], XYZ);
    
MoveObject(Light[40][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[41][playerid], XYZ);
    
MoveObject(Light[41][playerid], X-6Y-6Z-204);
    
GetObjectPos(Light[42][playerid], XYZ);
    
MoveObject(Light[42][playerid], X-6Y-6Z-204);
    
SetTimerEx("lighttimer2"40000"i"playerid);
    
DestroyObject(Firerocket[playerid]);
    
DestroyObject(rocketsmoke[playerid]);
    
printf("firerockettime[playerid] == 2 >> SetTimerEx 'lighttimer2'")
    return 
1;
    }
    return 
1;
}
forward lighttimer2playerid );
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;

3є- Inicie o 'samp-server.exe';
4є- Entre no server e execute o comando, em seguida saia do servidor;
5є- Poste aqui o arquivo 'server_log.txt'.
Reply
#7

pronto valeu amigo pela paciencia e pela ajuda, nem precisei fazer isso apenas apaguei todos os "Light" dos fogos, servia pra nada... kk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)