SA-MP Forums Archive
[FilterScript] [FS]Barcos V0.1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+----- Forum: Lançamentos/Releases (https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [FilterScript] [FS]Barcos V0.1 (/showthread.php?tid=471416)



[FS]Barcos V0.1 - RoberteDl - 23.10.2013

#removido :/



Re: [FS]Barcos V0.1 - Kuddy - 23.10.2013

Ta TUDO errado.

pawn Код:
public OnFilterScriptInit()
{
        print("\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
        print(" FilterScript De Barcos V 0.1 By [eDl]_.Robert._[]");
        print("          Visite SampeDl.blogspot.com.br          ");
        print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
       
        Barcolol = CreateObject(8493,1756.6999512,-2550.3000488,31.2999992,0.0000000,0.0000000,90.0000000);//aerols
        Barcolol = CreateObject(8493,1533.1999512,-2542.3000488,31.2999992,0.0000000,0.0000000,90.0000000);//aerols
        Barcolol = CreateObject(8493,1909.4000244,-1423.6999512,27.6000004,0.0000000,0.0000000,92.0000000);//pista skate
        Barcolol = CreateObject(8493,2905.6000977,-1060.5000000,28.7999992,0.0000000,0.0000000,0.0000000);//rua
       
        CreateObject(7096,1557.0999756,-2533.3999023,18.1000004,0.0000000,0.0000000,276.0000000); //Escadas
        CreateObject(13749,2893.3000488,-1070.9000244,10.8999996,0.0000000,0.0000000,237.9999847); //Escadas
    CreateObject(7096,1778.0000000,-2542.1999512,18.1000004,0.0000000,0.0000000,269.9999695); //Escadas
        return 1;
}
 
CMD:barcos(playerid){
        MoveObject(Barcolol , 1756.6999511719, -2550.3000488281, 120.59999847412, 3);//aerols
        MoveObject(Barcolol , 1533.1999511719, -2542.3000488281, 138.80000305176, 3);//aerols
        MoveObject(Barcolol , 1909.4000244141, -1423.6999511719, 97.599998474121, 3);//skate
        MoveObject(Barcolol , 2905.6000976563, -1060.5, 85.599998474121, 3);//rua
        SendClientMessage(playerid, -1, "Os Barcos Estгo Em Movimento");
        SetTimer("descer", 5000, false);
        return 1;
}
 
CMD:pararb(playerid){
    StopObject(Barcolol);
    SendClientMessage(playerid, -1, "Os Barcos Estгo Parados");
        return 1;
}
 
 
public subir() {
        MoveObject(Barcolol , 1756.6999511719, -2550.3000488281, 120.59999847412, 3);//aerols
        MoveObject(Barcolol , 1533.1999511719, -2542.3000488281, 138.80000305176, 3);//aerols
        MoveObject(Barcolol , 1909.4000244141, -1423.6999511719, 97.599998474121, 3);//skate
        MoveObject(Barcolol , 2905.6000976563, -1060.5, 85.599998474121, 3);//rua
        SetTimer("descer", 5000, false);
    return 1;
}
 
 
public descer() {
    MoveObject(Barcolol, 1756.6999512,-2550.3000488,31.2999992, 2);
    MoveObject(Barcolol, 1533.1999512,-2542.3000488,31.2999992, 2);
    MoveObject(Barcolol, 1909.4000244,-1423.6999512,27.6000004, 2);
    MoveObject(Barcolol, 2905.6000977,-1060.5000000,28.7999992, 2);
        SetTimer("subir", 5000, false);
        return 1;
}
A parte acima eh a mais logica, ate ela ta errada.


Re: [FS]Barcos V0.1 - RoberteDl - 23.10.2013

cara se eu errei foi no baguio que define o fs pq eu nem sei criar um fs pq nunca tentei kkkkk o resto tenho certeza que ta certo

e coloquei no meu game-mode e ta funcionando


Re: [FS]Barcos V0.1 - Kuddy - 23.10.2013

Quote:
Originally Posted by RoberteDl
Посмотреть сообщение
cara se eu errei foi no baguio que define o fs pq eu nem sei criar um fs pq nunca tentei kkkkk o resto tenho certeza que ta certo

e coloquei no meu game-mode e ta funcionando
[ame]http://www.youtube.com/watch?v=gvdf5n-zI14[/ame]

Apenas o ultimo barco ira se mover, preste mais atencao.

Se eu fizer:

pawn Код:
new x;
x=1;
x=2;
x=3;
Quanto vale x no final da execucao do codigo? Claramente x vale 3, nao 1 nem 2. Eh exatamente ai que ta seu erro.


Re: [FS]Barcos V0.1 - RoberteDl - 23.10.2013

ahhh acho que entendi vou arrumar e testar aqui obrigado nгo prestei atenзгo.

e o vнdeo e show kkkk


Respuesta: [FS]Barcos V0.1 - AlieN_ - 23.10.2013

Very THORIS MOW @_@ muito bom...primeiro fs assim ke vejo aki +rep : D


Re: [FS]Barcos V0.1 - RoberteDl - 23.10.2013

e agora Kuddy aqui moveu todos


Re: [FS]Barcos V0.1 - Kuddy - 23.10.2013

Agora sim ele esta correto. O FS ficou bem simples, mas sei que tem bastante gente que tem duvida para fazer isso. Parabens!


Re: [FS]Barcos V0.1 - RoberteDl - 23.10.2013

Obrigado pelo comentбrio cara e por ter me ajudado tambйm vocк e d+ vlw.