Jump to content

Cleo Script


Heymoon
 Share

Recommended Posts

  • Descriere problema: Am facut gen /cnl pentru /cancel, dar cand dau /cnl taxi de ex, nu se ia si ce scriu dupa /cnl. Am incercat si alta varianta cu format %s bla bla dar iau crash. Se poate sa primesc cap-coada tot ce trebuie sa contina scriptul ca sa mearga ok?
  • Poze / Video (optional):
  • Cod (sursa pe baza caruia sa ajutam, daca e cazul):
  • Alte precizări:
Link to comment
Share on other sites

:cnl
0B35: 0@
if 0AD4: 1@ 0@ format "%s" 2@ // textul introdus de tine

then

       say "/cancel %s" 2@

else

      chatmsg "Foloseste comanda corect: /cnl <text>" -1

end

cmdret

 

Link to comment
Share on other sites

{$CLEO}

0000:
repeat
wait 50
until 0AFA:

0B34: "cnl" @cnl

:repeat
wait 0
jump @repeat

:cnl
SAMP.IsCommandTyped(0@)
if 0AD4: 33@ = scan_string 0@ format "%s" v$PARAMS
then say "/cancel %s" v$PARAMS
else chatmsg "USE: /cnl <Serviciu>" -1
end
SAMP.CmdRet()

 

Link to comment
Share on other sites

  • Nic locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.