SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 27/08/2012, 09:44 PM   #1
Gabriel Santana
Huge Clucker
 
Gabriel Santana's Avatar
 
Join Date: Mar 2012
Location: Recife
Posts: 299
Reputation: 2
Default Cores dos Veiculos

Tipo, criei o comando no meu gamemode (/veh) mais todos comandos que eu crio vem com a cor "Branca", quero mudar isso, que quando criem os veiculos venha com cores diferenciadas.

Nao vou mandar o comando todo, apenas oquê tá no DialogResponse:
pawn Code:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateVehicle(560, x+1, y+1, z, 0, 1, 1, 10000);
__________________
Sistema VIP - @Bieelz (60%)
Gabriel Santana is offline   Reply With Quote
Old 27/08/2012, 09:46 PM   #2
Douglas_prt
Huge Clucker
 
Douglas_prt's Avatar
 
Join Date: Sep 2010
Location: Portugal
Posts: 421
Reputation: 12
Default Re: Cores dos Veiculos

Consulte os parametros da função na wiki...

http://wiki.sa-mp.com/wiki/CreateVehicle
Douglas_prt is offline   Reply With Quote
Old 27/08/2012, 09:55 PM   #3
Tony_Rodrigues
Huge Clucker
 
Tony_Rodrigues's Avatar
 
Join Date: Aug 2012
Posts: 216
Reputation: 6
Default Re: Cores dos Veiculos

pawn Code:
CMD:cv(playerid, params[])
    {
        new Float:X,Float:Y,Float:Z;
        new Modelo, Cor, Cor1;
        if(sscanf(params,"iii",Modelo,Cor,Cor1)) return MSG(playerid, AzulBB, "Use: /cv (modelo) (cor) (cor 1)");
        GetPlayerPos(playerid, X, Y, Z);
        CreateVehicle(Modelo,X,Y,Z,0.0,Cor,Cor1,-1);
        return 1;
    }
Tony_Rodrigues is offline   Reply With Quote
Old 28/08/2012, 02:02 AM   #4
.ThePro
Huge Clucker
 
.ThePro's Avatar
 
Join Date: Mar 2012
Location: Rio de Janeiro
Posts: 422
Reputation: 11
Default Re: Cores dos Veiculos

Da um olhada aí, vai te ajudar!

http://wiki.sa-mp.com/wiki/CreateVehicle
__________________
Nunca desista, nunca volta atrás, nunca perca a fé,
o poder da crença proporciona a habilidade de vencer.
.ThePro is offline   Reply With Quote
Old 28/08/2012, 02:10 AM   #5
Spectro_BR
Big Clucker
 
Spectro_BR's Avatar
 
Join Date: May 2012
Posts: 172
Reputation: 10
Default Re: Cores dos Veiculos

http://wiki.sa-mp.com/wiki/CreateVehicle
__________________
Spectro_BR is offline   Reply With Quote
Old 28/08/2012, 02:11 AM   #6
Maklister
High-roller
 
Maklister's Avatar
 
Join Date: May 2012
Location: » San Andreas « User type: » High-roller «
Posts: 2,138
Reputation: 135
Default Re: Cores dos Veiculos

pawn Code:
// Assim todos veiculos criados sera Preto

CMD:veh(playerid, params[])
{
    new Float:X,Float:Y,Float:Z;
    new Model;
    if(sscanf(params,"d",Model)) return SendClientMessage(playerid, -1, "[x] Use: /veh [id]");
    GetPlayerPos(playerid, X, Y, Z);
    CreateVehicle(Modelo,X,Y,Z,0.0,0,0,-1);
    return 1;
}

// Assim voce podera escolher as cores

CMD:veh(playerid, params[])
{
    new Float:X,Float:Y,Float:Z;
    new Model, Cor1, Cor2;
    if(sscanf(params,"ddd",Model, Cor1, Cor2)) return SendClientMessage(playerid, -1, "[x] Use: /veh [id] [ cor1 ] [ cor2 ]");
    GetPlayerPos(playerid, X, Y, Z);
    CreateVehicle(Modelo,X,Y,Z,0.0,Cor1,Cor2,-1);
    return 1;
}
Maklister is offline   Reply With Quote
Old 28/08/2012, 03:36 PM   #7
Gabriel Santana
Huge Clucker
 
Gabriel Santana's Avatar
 
Join Date: Mar 2012
Location: Recife
Posts: 299
Reputation: 2
Default Re: Cores dos Veiculos

Olha, se ja jogaram GTA Torcidas, vao puder notar.
Quando os carros sao criados vem com cores diferenciadas.
__________________
Sistema VIP - @Bieelz (60%)
Gabriel Santana is offline   Reply With Quote
Old 28/08/2012, 03:58 PM   #8
Douglas_prt
Huge Clucker
 
Douglas_prt's Avatar
 
Join Date: Sep 2010
Location: Portugal
Posts: 421
Reputation: 12
Default Re: Cores dos Veiculos

cria um uma random...
Douglas_prt is offline   Reply With Quote
Old 28/08/2012, 04:25 PM   #9
Owtsiixx_Twd
Huge Clucker
 
Join Date: Aug 2012
Posts: 246
Reputation: 3
Default Re: Cores dos Veiculos

CreateVehicle(560, x+1, y+1, z, 0, -1, -1, 10000); ACHO EU KOPASKAOPSKOPA
@EDIT
Owtsiixx_Twd is offline   Reply With Quote
Old 28/08/2012, 04:27 PM   #10
Douglas_prt
Huge Clucker
 
Douglas_prt's Avatar
 
Join Date: Sep 2010
Location: Portugal
Posts: 421
Reputation: 12
Default Re: Cores dos Veiculos

Quote:
Originally Posted by Owtsiixx_Twd View Post
CreateVehicle(560, x+1, y+1, z, 0, COR 1, COR2, 10000); ACHO EU KOPASKAOPSKOPA
WTF?... -.-'
Douglas_prt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Cores RedBulL_x Português/Portuguese 3 24/07/2012 11:53 PM
[DUV] Cores deregudegu Português/Portuguese 10 22/02/2011 07:50 PM
[FilterScript] [FS] Cores, Por Enquanto 20 Cores zSuYaNw Lançamentos/Releases 13 07/09/2010 09:13 PM


All times are GMT. The time now is 06:30 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.