01.12.2014, 03:32
Queria Saber se tem como deixar o veiculo do samp mais rapido que o normal tipo rapido msm 300 KM/H ou ate mais com algum tipo de cmd ou isso й impossivel?
Tem sim amigгo, dб uma olhada: https://sampwiki.blast.hk/wiki/SetVehicleVelocity
@Edit: nгo usa cmd pra isso nгo, aconselho a usar keys como ALT ou CTRL.. |
OnPlayerUpdate(playerid) { if(IsPlayerInAnyVehicle(playerid) && *aqui faz a verificaзгo do turbo*) { new Float:x, Float:y,Float:z, vehicleid = GetPlayerVehicleID(playerid); GetVehicleVelocity(vehicleid, x, y,z); SetVehicleVelocity(vehicleid, x*2, y*2, z); } return 1; }
Faz assim:
Код:
OnPlayerUpdate(playerid) { if(IsPlayerInAnyVehicle(playerid) && *aqui faz a verificaзгo do turbo*) { new Float:x, Float:y,Float:z, vehicleid = GetPlayerVehicleID(playerid); GetVehicleVelocity(vehicleid, x, y,z); SetVehicleVelocity(vehicleid, x*2, y*2, z); } return 1; } |