[Help] Boost car speed
#1

There is a way to boost the speed for a specific car? Like Elegy...
If its possible, can someone show me how?



Thanks!
Reply
#2

Try this Filterscript, it may help :

https://sampforum.blast.hk/showthread.php?tid=337636

KillerDVX.
Reply
#3

Aki O Handling ( quanto menor mais velocidade )
PHP код:
#define HANDLING 1 
Ainda no topo.
PHP код:
new HandlingZ[MAX_PLAYERS], CimaBaixoChave
na public OnGameModeInit()
PHP код:
SetTimer("Handling",250true);} 
Comando
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/ativar"cmdtexttrue8) == 0)
    {
        
HandlingZ[playerid] = 1;
        
SendClientMessage(playerid0xFFFFFFAA"Turbo Ativado");
        return 
true;
    }
    if (
strcmp("/desativar"cmdtexttrue8) == 0)
    {
        
HandlingZ[playerid] = 0;
        
SendClientMessage(playerid0xFFFFFFAA"Turbo Desativado");
        return 
true;
    }
    return 
false;

PHP код:
forward Handling();
public 
Handling()
{
    for(new 
iMAX_PLAYERSi++)
    {
        if(
HandlingZ[i] == 1)
        {
            
GetPlayerKeys(i,Chave,Cima,Baixo);
            if(
Chave &= 8)
            {
                if(
GetPlayerState(i) == PLAYER_STATE_DRIVER)
                {
                    new 
Float:X,Float:Y,Float:Z;
                    
GetVehicleVelocity(GetPlayerVehicleID(i),X,Y,Z);
                    
SetVehicleVelocity(GetPlayerVehicleID(i),X+(HANDLING),Y+(HANDLING),Z+(HANDLING));
                }
            }
        }
    }
    return 
true;

Reply
#4

Quote:
Originally Posted by iTakelot
Посмотреть сообщение
Aki O Handling ( quanto menor mais velocidade )
PHP код:
#define HANDLING 1 
Ainda no topo.
PHP код:
new HandlingZ[MAX_PLAYERS], CimaBaixoChave
na public OnGameModeInit()
PHP код:
SetTimer("Handling",250true);} 
Comando
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/ativar"cmdtexttrue8) == 0)
    {
        
HandlingZ[playerid] = 1;
        
SendClientMessage(playerid0xFFFFFFAA"Turbo Ativado");
        return 
true;
    }
    if (
strcmp("/desativar"cmdtexttrue8) == 0)
    {
        
HandlingZ[playerid] = 0;
        
SendClientMessage(playerid0xFFFFFFAA"Turbo Desativado");
        return 
true;
    }
    return 
false;

PHP код:
forward Handling();
public 
Handling()
{
    for(new 
iMAX_PLAYERSi++)
    {
        if(
HandlingZ[i] == 1)
        {
            
GetPlayerKeys(i,Chave,Cima,Baixo);
            if(
Chave &= 8)
            {
                if(
GetPlayerState(i) == PLAYER_STATE_DRIVER)
                {
                    new 
Float:X,Float:Y,Float:Z;
                    
GetVehicleVelocity(GetPlayerVehicleID(i),X,Y,Z);
                    
SetVehicleVelocity(GetPlayerVehicleID(i),X+(HANDLING),Y+(HANDLING),Z+(HANDLING));
                }
            }
        }
    }
    return 
true;

English Only - The main bulk of the forums are English only, certain other languages have their own specific sections.
Reply
#5

I said something that increase the speed only for a specific vehicle (elegy id: 562), not all vehicles
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)