Heymoon Posted November 26, 2021 Share Posted November 26, 2021 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 More sharing options...
Tupi Posted November 26, 2021 Share Posted November 26, 2021 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 More sharing options...
Heymoon Posted November 27, 2021 Author Share Posted November 27, 2021 Perfect! Se poate si la asta? :sf SAMP.IsCommandTyped(0@) if 0AD4: 33@ = scan_string 0@ format "%d" v$PARAMS then say "/setfreq %d" v$PARAMS else chatmsg " USE: /sf <freq>" -1 end SAMP.CmdRet() Link to comment Share on other sites More sharing options...
Tupi Posted November 28, 2021 Share Posted November 28, 2021 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 More sharing options...
Nic Posted November 28, 2021 Share Posted November 28, 2021 (edited) :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 November 28, 2021 by Nic Link to comment Share on other sites More sharing options...
Tupi Posted November 28, 2021 Share Posted November 28, 2021 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 Link to comment Share on other sites More sharing options...
Heymoon Posted November 28, 2021 Author Share Posted November 28, 2021 @Tupi e ok, dar nu merge si in cazul in care vreau sa dau /sf 0 :d Link to comment Share on other sites More sharing options...
Tupi Posted November 28, 2021 Share Posted November 28, 2021 :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 More sharing options...
Heymoon Posted November 28, 2021 Author Share Posted November 28, 2021 Asa, mersi. Stii vreo metoda prin care sa vad modificarile din mod fara sa mai dau restart la joc? Am incercat sa mut din cleo in modloader dar degeaba Link to comment Share on other sites More sharing options...
Tupi Posted November 28, 2021 Share Posted November 28, 2021 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 More sharing options...
Heymoon Posted November 29, 2021 Author Share Posted November 29, 2021 cand dau /reloadmod nu mai merge nicio comanda din cmd Link to comment Share on other sites More sharing options...
Nic Posted November 29, 2021 Share Posted November 29, 2021 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 More sharing options...
Heymoon Posted November 29, 2021 Author Share Posted November 29, 2021 Am rezolvat, mersi baieti Link to comment Share on other sites More sharing options...
Nic Posted November 30, 2021 Share Posted November 30, 2021 Deschide alt topic daca mai ai nevoie de ajutor. Link to comment Share on other sites More sharing options...
Recommended Posts