Hi, I want to pause my code for 5 seconds but when I initialize the command, the text is send immediate but, I want to wait 5 seconds after the code send the text.
Sorry for my bad English. And I am new in cleo scripting.
Code:
:cmd_121
SAMP.IsCommandTyped(20@)
wait 0
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
0B36: samp 1@ = get_player_nickname 21@
30@ = SAMP.GetPlayerColor(21@)
Wait 5000
0AF9: samp say_msg "%s, are culoarea %d" 1@ 30@
else
chatmsg "{0066ff}CopCMD: {ffffff}Foloseste /testdialog <ID>" -1
end
SAMP.CmdRet()
Sorry for my bad English. And I am new in cleo scripting.