[Ajuda] Velocidade maxima
#2

Nгo entendi muito bem sua pergunta.

Se vocк quiser modificar a velocidade que aparece alguma text drawn de velocнmetro por exemplo:

PHP код:
stock GetPlayerSpeed(playerid)
{
    new 
Float:ST[4];
    
GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
    
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 100.3// **
    
return floatround(ST[3]);

Vocк deve usar a aritmйtica, altere o valor de 100.3 para o desejado. Quanto maior o valor multiplicado maior o resultado (velocidade).
Reply


Messages In This Thread
Velocidade maxima - by Paulthaz - 29.05.2018, 23:16
Re: Velocidade maxima - by Cleyson - 29.05.2018, 23:42
Re: Velocidade maxima - by Paulthaz - 30.05.2018, 00:32
Re: Velocidade maxima - by Cauezin - 30.05.2018, 00:34
Re: Velocidade maxima - by Paulthaz - 30.05.2018, 01:02
Re: Velocidade maxima - by Cleyson - 30.05.2018, 01:16
Re: Velocidade maxima - by Ermanhaut - 30.05.2018, 01:16
Re: Velocidade maxima - by 1sbedx - 30.05.2018, 01:32
Re: Velocidade maxima - by Ermanhaut - 30.05.2018, 02:09
Re: Velocidade maxima - by nasser - 30.05.2018, 03:49

Forum Jump:


Users browsing this thread: 3 Guest(s)