how can i make a server message
which to give you tips
while playing
Thank you in advance for your help
msgs = {
"R for Reload",
"B for Buymenu",
"Leftclick to shoot",
-- add/change more with same pattern
}
local counter = 0
addhook("minute","minhook")
function minhook()
msg(msgs[counter])
counter = counter + 1
end
msgs[0]
which doesn't exist. Second, since the counter keeps going up, eventually there will be nothing to show because those entries don't exist either.msgs = {
"R for Reload",
"B for Buy menu",
"Left click to shoot",
-- add/change more with same pattern
}
counter = 0
addhook("minute","minhook")
function minhook()
counter = counter + 1
if counter > #msgs then
counter = 1
end
msg(msgs[counter])
end