CLEO Help [Help] auto message sender with short CMD

CLEO related
Status
Not open for further replies.

Amir.mhp

New member
Joined
Jan 6, 2018
Messages
1
Reaction score
0
Hello i want write something that can help me like 
When iam write comand /aa the server use /acceptlicense or when iam use /qmat1 this message send on server 
Any body can help me?
Thanks 
MHP
 

Mila.cs ✅

Well-known member
Joined
Jun 24, 2016
Messages
247
Reaction score
10
Location
̀́̀́
Code:
{$CLEO .cs}
{$INCLUDE sf}
0000:

REPEAT
    WAIT 420
UNTIL SAMP.Available()

4@ = @CMD
5@ = @CMD2

0B34: "aa" 4@ 
0B34: "qmat1" 5@ 

WHILE TRUE
WAIT 0
    IF 1@ == 1
    THEN 0AF9: samp say_msg "/acceptlicense"
    1@ = 0
END
    IF 2@ == 1
    THEN 0AF9: samp say_msg "this message send on server"
    2@ = 0
    END 
END

:CMD
WAIT 0
1@ = 1
SAMP.CmdRet()

:CMD2
WAIT 0
2@ = 1
SAMP.CmdRet()
 

Attachments

  • ShortCMD.cs
    17.8 KB · Views: 24
Status
Not open for further replies.
Top