Quote:
Originally Posted by Artifact
How to put something in motd when I write this in plugin_init?
sorry for english, here is example
PHP Code:
plugin_init() { register_clcmd("test", "wow") new Someeeething[][] { "something1", "something2", "something3" } }
public wow(id) { show_motd(id,.....) }
And I dont know how to include this 3 something in motd when someone type test
|
I'm not sure about this, as I never tried the motd....
anyway I will give it a shot:
Code:
new Someeeething[][] = {
"something1",
"something2",
"something3"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say test", "wow")
}
public wow(id)
{
new xD[128]
format(xD, charsmax(xD), "%s %s %s", Someeeething[0], Someeeething[1], Someeeething[2]) // Fixed thanks to <Veco>
show_motd(id, xD, "TEST")
}
EDIT: I's not working, it only shows two characters.
EDIT2: Fixed, thanks to <Veco>!
__________________