Page 1 of 1

Komandų kūrimas

Posted: 2015 Jul 21 15:44
by redfox951
Gal kas galit .sma numesti kur pvž galėčiau pasidaryt komandas serveryje tokias kaip
/vip , /info , /pagalba ir t.t?

Re: Komandų kūrimas

Posted: 2015 Jul 21 15:53
by laimiukas3
tipo akd motd langa atidarynetu ar kokias komandas?

Code: Select all

#include <amxmodx>  public plugin_init(){    register_plugin("Motd", "1", "amxmodx.lt")    register_clcmd("say /info", "info_motd")    register_clcmd("say /pagalba", "pagalba_motd")    register_clcmd("say /vip", "vip_motd")}  public info_motd(id){    show_motd(id, "addons/amxmodx/configs/info.txt")    return PLUGIN_CONTINUE} public pagalba_motd(id){    show_motd(id, "addons/amxmodx/configs/pagalba.txt")    return PLUGIN_CONTINUE} public vip_motd(id){    show_motd(id, "addons/amxmodx/configs/vip.txt")    return PLUGIN_CONTINUE}  

Re: Komandų kūrimas

Posted: 2015 Jul 21 16:11
by V1LKAS
Gerokai patogesnis variantas:
http://www.amxmodx.lt/download/file.php?id=102
Viską valdai pirkimu_meniu.ini faile, gali kurti komandas neribotai /vip /admin/ slot/ /taisykles/ pirkti ir t.t

Re: Komandų kūrimas

Posted: 2015 Jul 21 16:46
by redfox951
Dėkui abiems :)

Re: Komandų kūrimas

Posted: 2015 Jul 25 11:58
by Aka
laimiukas3 wrote:tipo akd motd langa atidarynetu ar kokias komandas?

Code: Select all

#include <amxmodx>  public plugin_init(){    register_plugin("Motd", "1", "amxmodx.lt")    register_clcmd("say /info", "info_motd")    register_clcmd("say /pagalba", "pagalba_motd")    register_clcmd("say /vip", "vip_motd")}  public info_motd(id){    show_motd(id, "addons/amxmodx/configs/info.txt")    return PLUGIN_CONTINUE} public pagalba_motd(id){    show_motd(id, "addons/amxmodx/configs/pagalba.txt")    return PLUGIN_CONTINUE} public vip_motd(id){    show_motd(id, "addons/amxmodx/configs/vip.txt")    return PLUGIN_CONTINUE}  
Vėliau kaip aš pasidaryčiau šitą galėčiau nustatyti kad iš svetainės MOTD Langą atidarytų.?

Re: Komandų kūrimas

Posted: 2015 Jul 25 12:10
by laimiukas3

Code: Select all

 show_motd(id, "http://B!TE.COM")
arba i info.txt < http://B!TE.COM