Hey guys, just like the title states, wondering how to make a plugin create a MOTD pop up on it's own rather than having a separate file..
I've looked over some scripts and tried to put this together, some things to note in my script, it uses a for loop to print all strings in this array:
Code:
new const g_szWords[][] =
{
"holyshit",
"lag",
"please",
"nfs",
"stfu",
"english",
"hugebitch",
"haha",
"who",
"hacks",
"fag"
}
The registered clcmd goes to this display(id) function:
Code:
public display(id)
{
new buffer[1024]
new len = copy(buffer, 1023, "Available Sounds:^n")
for (new i = 0; i < sizeof(g_szWords); i++)
{
len += copy(buffer[len], 1023-len, "^n")
len += copy(buffer[len], 1023-len, g_szWords[i])
}
show_motd(id,buffer ,"Type Sounds - By: Dizzy");
return PLUGIN_CONTINUE;
}
However, not working =/
__________________