velice ty dakujem a to stim speed som skusil toto:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
if (HOLDING(KEY_SPRINT)) { if (!IsPlayerInAnyVehicle(playerid)) { new Float:runx,Float:runy,Float:runz; GetPlayerVelocity(playerid,runx,runy,runz); SetPlayerVelocity(playerid,runx*2,runy*2,runz*2); } return 1; }
return 1;
}
a chyba je taka funguje to iba ked som vo vzduchu na zemi nie
aj ked som odtial vymazal if (!IsPlayerInAnyVehicle(playerid)) {
tak nič stale to iste