24.11.2013, 17:45
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;
}