Jump to content

Cleo Script


Heymoon
 Share

Recommended Posts

Vreau sa fac /cht in loc de /cheater, am incercat tot felul de variante si nu mi-a iesit. Se poate un update la ce am eu aici salvat de ultima oara?

 

:cht
SAMP.IsCommandTyped(10@)
if 0AD4: 10@ = scan_string 10@ format "%s %d" 11@v 23@ 
then
say "/cheater %s %d" 11@v 23@
else chatmsg " USE: /cht <nume/id> <cod>" -1
end
samp.CmdRet

Link to comment
Share on other sites

Incearca asta:

 

:cht
SAMP.IsCommandTyped(10@)
if 0AD4: 10@ = scan_string 10@ format "%d %s" 23@ v$CHEAT
then
       alloc 11@ 128
       format 11@ "%s" v$CHEAT
       say "/cheater %d %s" 23@ 11@
       free 11@
else chatmsg " USE: /cht <nume/id> <cod>" -1
end
SAMP.CmdRet

 

Link to comment
Share on other sites

Incearca asta

 

:sf
SAMP.IsCommandTyped(0@)
if 0AD4: 33@ = scan_string 0@ format "%d.%d" 1@ 2@
then say "/setfreq %d.%d" 1@ 2@
else chatmsg " USE: /sf <freq>(ex: 99.9)" -1
end
SAMP.CmdRet()

 

Link to comment
Share on other sites

:sf
SAMP.IsCommandTyped(0@)
if 0AD4: 1@ = scan_string 0@ format "%d.%d" 2@ 3@
then
say "/setfreq %d.%d" 2@ 3@
else
chatmsg " USE: /sf <freq>" -1
end
cmdret

@Tupifix acum te apuca  si pe tine sa postezi

Edited by Nic
Link to comment
Share on other sites

1 minute ago, Nic said:

:sf
SAMP.IsCommandTyped(0@)
if 0AD4: 1@ = scan_string 0@ format "%d.%d" 2@ 3@
then
say "/setfreq %d.%d" 2@ 3@
else
chatmsg " USE: /sf <freq>" -1
end
cmdret

@Tupifix acum te apuca  si pe tine sa postezi

Raspuns identic, av :42:

Link to comment
Share on other sites

:sf
SAMP.IsCommandTyped(0@)
0AD4: 33@ = scan_string 0@ format "%d.%d" 1@ 2@
if 33@ == -1
then chatmsg "USE: /sf <freq>" -1
end
if 33@ == 1
then say "/setfreq %d" 1@
end
if 33@ == 2
then say "/setfreq %d.%d" 1@ 2@
end 
SAMP.CmdRet

 

Link to comment
Share on other sites

0B34: reloadmod @reloadmod
:reloadmod
0A92: create_custom_thread "nume_mod.cs" // modifici din nume_mod in numele modului tau
0A93: end_custom_thread
print "Reload" 1337
SAMP.CmdRet

 

Link to comment
Share on other sites

3 hours ago, Heymoon said:

cand dau /reloadmod nu mai merge nicio comanda din cmd

0A92: create_custom_thread "nume_mod.cs" // modifici din nume_mod in numele modului tau

dupa cum ti-a zis si Tupi, numele de aici trebuie sa fie identic cu numele modului din CLEO. Incearca un nume cat mai simplu, fara spatii.

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.