[Pedido] Cuise Control
#3

pawn Код:
CMD:setvelocity(playerid, params[])
{
    new velocidade, Float:Velocity[3];
    if(sscanf(params,"d", velocidade)) return SendClientMessage(playerid , -1, "{FFFF00} Uso /setvelocity [velocidade]");
    if(IsPlayerInAnyVehicle(playerid))
    GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
    SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, velocidade);
    return 1;
}
Isso deve dar certo...
Reply


Messages In This Thread
Cuise Control - by Renancito10 - 24.11.2013, 17:30
Re: Cuise Control - by PT - 24.11.2013, 17:39
Re: Cuise Control - by focaximubh - 24.11.2013, 17:45
Re: Cuise Control - by Renancito10 - 24.11.2013, 17:49
Re: Cuise Control - by Renancito10 - 24.11.2013, 18:48
Re: Cuise Control - by n0minal - 24.11.2013, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)