PDA

View Full Version : [Help] Boost car speed


Dragonic
30/07/2015, 12:26 AM
There is a way to boost the speed for a specific car? Like Elegy...
If its possible, can someone show me how?



Thanks!

KillerDVX
30/07/2015, 12:35 AM
Try this Filterscript, it may help :

http://forum.sa-mp.com/showthread.php?t=337636

KillerDVX.

iTakelot
30/07/2015, 12:38 AM
Aki O Handling ( quanto menor mais velocidade )

#define HANDLING 1


Ainda no topo.

new HandlingZ[MAX_PLAYERS], Cima, Baixo, Chave;


na public OnGameModeInit()

SetTimer("Handling",250, true);}


Comando

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ativar", cmdtext, true, 8) == 0)
{
HandlingZ[playerid] = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Turbo Ativado");
return true;
}
if (strcmp("/desativar", cmdtext, true, 8) == 0)
{
HandlingZ[playerid] = 0;
SendClientMessage(playerid, 0xFFFFFFAA, "Turbo Desativado");
return true;
}
return false;
}


forward Handling();
public Handling()
{
for(new i; i < MAX_PLAYERS; i++)
{
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+(X / HANDLING),Y+(Y / HANDLING),Z+(Z / HANDLING));
}
}
}
}
return true;
}

KillerDVX
30/07/2015, 12:43 AM
Aki O Handling ( quanto menor mais velocidade )

#define HANDLING 1


Ainda no topo.

new HandlingZ[MAX_PLAYERS], Cima, Baixo, Chave;


na public OnGameModeInit()

SetTimer("Handling",250, true);}


Comando

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ativar", cmdtext, true, 8) == 0)
{
HandlingZ[playerid] = 1;
SendClientMessage(playerid, 0xFFFFFFAA, "Turbo Ativado");
return true;
}
if (strcmp("/desativar", cmdtext, true, 8) == 0)
{
HandlingZ[playerid] = 0;
SendClientMessage(playerid, 0xFFFFFFAA, "Turbo Desativado");
return true;
}
return false;
}


forward Handling();
public Handling()
{
for(new i; i < MAX_PLAYERS; i++)
{
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+(X / HANDLING),Y+(Y / HANDLING),Z+(Z / HANDLING));
}
}
}
}
return true;
}


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

Dragonic
30/07/2015, 01:59 PM
I said something that increase the speed only for a specific vehicle (elegy id: 562), not all vehicles