General > Developers Corner
LUA request
Michael:
I have full intentions on learning lua, ahaha i just wanted a quick fix, for instance now i know that you can use your steam ID:P
Michael:
Also, even when the audio file gets downloaded to the client, it doesnt work.. steam says that its not there. well, steams console.
Michael:
is there any way i could adapt that script to allow for different admins having different songs
JamminR:
Absolutely.
Research advanced tables. :)
Your admins table could easily store a sound for each admin.
Be wary though, I'm not sure if PlayerInitialspawn hooks on each map change.
I'd be annoyed if 1) as a player, hearing the beginning stutter of 5 songs start playing because 5 admins were on when the map changed.
2) as an admin, another admins sound played more often than mine because they always managed to join seconds after I did.
Also...sometimes, joining a server and NOT being announced is a good thing... I wouldn't always want to join and be recognized.
Sometimes, stealth mode administration allows you to see things that might not normally take place, even among fellow admins.
Michael:
Hahah i know next to nothing about lua. XD my friend has a very basic understanding of it. I tried looking up advanced tables but quite honestly i cannot make sense of it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version