SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 26/07/2012, 09:50 PM   #1
jilead
Little Clucker
 
Join Date: Oct 2011
Posts: 35
Reputation: 1
Default SetVehicleVelocity

eu tentei usar abaixo so q tem hora q vai pa tras ou pa frente depende algem pode me ajudar com um tut d como so ir pa frente

PHP Code:
SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.00.00.0); 
obs : ja temtei por 1.0 em todos mas nem deu vlw
jilead is offline   Reply With Quote
Old 26/07/2012, 10:00 PM   #2
Pedraum
Little Clucker
 
Pedraum's Avatar
 
Join Date: May 2011
Posts: 29
Reputation: 0
Default Re: SetVehicleVelocity

Aqui funcionou perfeitamente amigao...

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/parar", cmdtext, true, 10) == 0)
    {
        SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0);
        return 1;
    }
    return 0;
}
__________________
[AgenT]Pedraum
Pedraum is offline   Reply With Quote
Old 27/07/2012, 01:55 AM   #3
zbt
Gangsta
 
zbt's Avatar
 
Join Date: Feb 2012
Posts: 752
Reputation: 76
Default Re: SetVehicleVelocity

Utilizando dessa forma, o veículo sempre vai ir para o norte (N no mapa).
_

use assim.

pawn Code:
new Float:v[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid), v[0], v[1], v[2]);
SetVehicleVelocity(GetPlayerVehicleID(playerid), v[0]*X, v[1]*X, v[2]);
//troque X pela velocidade.
zbt is offline   Reply With Quote
Old 27/07/2012, 02:00 AM   #4
[JD]BlackFire
Gangsta
 
[JD]BlackFire's Avatar
 
Join Date: Apr 2011
Location: Caxias do Sul - RS
Posts: 749
Reputation: 42
Default Respuesta: SetVehicleVelocity

terá que usar alguma lógica com a função 'GetXYInFrontOfPlayer', vou tentar montar um código aki.
__________________

Programadores e desenvolvedores SA:MP

Gamemodes, Filterscripts, Includes, Sites, Painéis de controle, e muito mais...
AGORA COM HOSPEDAGEM NO BRASIL
Visite nosso site.


iPs Team
Uma das melhores equipes de programadores.

Eu voltei , Yap!!
(BlackCoder)

[JD]BlackFire 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
SetVehicleVelocity DRIFT_HUNTER Help Archive 2 30/04/2011 03:03 AM
SetVehicleVelocity Torran Help Archive 3 06/02/2010 02:54 PM
SetVehicleVelocity lepro49 Help Archive 1 23/12/2009 12:18 PM
Possible bug with SetVehicleVelocity [mad]MLK Help Archive 8 14/10/2009 10:56 PM
SetVehicleVelocity(Help Please) user226 Help Archive 5 10/09/2009 03:33 AM


All times are GMT. The time now is 08:42 AM.


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