Guys so i made something like a "keybinder" for samp and its cleo. But when i run samp on server, it stays on loading screen for seconds and then crashes.I know there is programs but i want cleo. This is my code:
If u can just fix it for me like change the code and give it here i will be so happy!
Code:
{$CLEO .cs}
0000:
while true
wait 0
if
key_down Num1
then
0AF9: samp say_msg "/usedrug weed"
wait 500
end
if
key_down Num2
then
0AF9: samp say_msg "/usedrug heroin"
wait 500
end
if
key_down Num5
then
0AF9: samp say_msg "/ramping"
wait 500
end
if
key_down Num6
then
0AF9: samp say_msg "/healme"
wait 500
end
if
key_down Num7
then
0AF9: samp say_msg "/bcase get weed 2"
wait 500
end
if
key_down Num8
then
0AF9: samp say_msg "/bcase get heroin 2"
wait 500
end
if
key_down Num9
then
0AF9: samp say_msg "/invisible"
wait 500
end
if
key_down Num+
then
0AF9: samp say_msg "/bcase hold left"
wait 500
end
if
key_down Num-
then
0AF9: samp say_msg "/bcase hide"
wait 500
end
Last edited: