I thought about making it like that
Code: Select all
if %key% ==W goto TURNLEFT
But i need to write that W to turn left,i want just to press it. (also,whats a code to make it automatically turning left after using the key,cos i dont want to make 50 :TURNLEFT(1-50)

Spaces--
Is there any way to remove tha spaces problem ? When someone has made space using the batch,it automatically crashes.I would also like to make a Auto Admin apply batch file to my samp server,but theres problem with those spaces.
Reading settings from *.txt file--
In the game i want to make default control settings and for this i would use
Code: Select all
:CUSETTINGS
echo Write key with that you want to turn left:
set /p kleft=
if %kleft% ==goto :CUSETTINGSRIGHT
:CUSETTINGSRIGHT
cls
echo Now set key with you want to turn right
set /p kright=
if %kright% ==goto SAVESETTINGS
:SAVESETTINGS
cls
echo Saving your custom settings.
echo %kleft% >> "settings.txt"
echo %kright% > "settings.txt"
echo Done...
ping localhost -n 2>nul
cls
goto :MENU
I dont know how to do it properly,help me

Thanks in advance