03.09.2011, 16:03
Hey all! I made a cruise control script for my server, it looks like this:
Now what i want to do is change it to like that instead of typing /cruise you do lctrl, (attack button).
Does anyone know how?
pawn Код:
if (strcmp("/cruise", cmdtext, true, 10) == 0)
{
new Float:vX, Float:vY, Float:vZ;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
SetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
SendClientMessage(playerid, COLOR_ORANGE,"Cruise control has been enabled!");
return 1;
}
return 0;
Does anyone know how?