Zin
Expert
- Joined
- Aug 1, 2013
- Messages
- 1,734
- Solutions
- 2
- Reaction score
- 117
Ok seen as the cleo requests section was closed i decided that i should try and make my own request myself and of course i failed the script to me looks fine because i don't see why it would not work because im not good at scripting with sampfuncs using cmds etc but cmds are awesome.
Basically the aim was to be able to set your speed constantly so when you hold 2 your speed goes to 70 but stays at that speed to set the speed it was gonna be /.speed [ ENTER SPEED HERE] and when you press 2 it sets your speed to the speed you selected. Instead when i start up SAMP gta crashes "gta sa has stopped responding"
Basically the aim was to be able to set your speed constantly so when you hold 2 your speed goes to 70 but stays at that speed to set the speed it was gonna be /.speed [ ENTER SPEED HERE] and when you press 2 it sets your speed to the speed you selected. Instead when i start up SAMP gta crashes "gta sa has stopped responding"
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
chatmsg "To set speed use /.speed" 12566463
0B34: samp register_client_command ".speed" to_label @Noname_51
:Noname_51
wait 0
SAMP.IsCommandTyped(1@)
chatmsg "Speed set to %d" 12566463 1@
goto @Noname_97
SAMP.CmdRet
:Noname_97
wait 0
if
Actor.Driving($PLAYER_ACTOR)
jf @Noname_97
0@ = Actor.CurrentCar($PLAYER_ACTOR)
if
key_down 50
jf @Noname_97
Car.SetSpeedInstantly(0@, 1@)
goto @Noname_97