CLEO Help [HELP] Custom command with outputs

CLEO related
Status
Not open for further replies.

Cornysz

Member
Joined
Jan 6, 2019
Messages
22
Reaction score
0
Hi guys, is there something custom command mod in SAMP?
For example i type this on chat
/custom
And then the output on the server chat is
/me blablabla
or /lock
I hope you can understand my request.
This mod is just for simple chat and roleplaying, thank you in advance.
 

couldnot

Active member
Joined
Dec 24, 2018
Messages
25
Reaction score
1
Code:
{$CLEO .cs}

0000:


repeat
wait 0
until 0AFA:


// for sampfuncs reload   
   SAMP.UnregisterClientCommand("custom")
  
// commands register   
   0B34: "custom" to @cmd1


while true
wait 0

:cmd1
say "/me bla bla"
cmdret

ret 0
 

Cornysz

Member
Joined
Jan 6, 2019
Messages
22
Reaction score
0
Code:
{$CLEO .cs}

0000:


repeat
wait 0
until 0AFA:


// for sampfuncs reload  
   SAMP.UnregisterClientCommand("custom")
 
// commands register  
   0B34: "custom" to @cmd1


while true
wait 0

:cmd1
say "/me bla bla"
cmdret

ret 0

Thank you, ill try to compile it after this, but i want to ask more, what if i add other command too is it like this?

// commands register
0B34: "custom" to @cmd1
0B34: "custom2" to @cmd2
while true
wait 0

:cmd1
say "/me bla bla"
cmdret

:cmd2
say "/do blabla"
cmdret

am i wrong? thank you in adv
 

couldnot

Active member
Joined
Dec 24, 2018
Messages
25
Reaction score
1
Thank you, ill try to compile it after this, but i want to ask more, what if i add other command too is it like this?

// commands register
0B34: "custom" to @cmd1
0B34: "custom2" to @cmd2
while true
wait 0

:cmd1
say "/me bla bla"
cmdret

:cmd2
say "/do blabla"
cmdret

am i wrong? thank you in adv
You're right.
 
Status
Not open for further replies.
Top