Tell me how to make a script?
#10
To randomize what is said when you throw a grenade, just change this portion of the script:

[cubescript]say "Fire in the hole!"[/cubescript]

to:

[cubescript]randomNadeMsg[/cubescript]

Then add this to the bottom of the script:

[cubescript]list_of_nade_msgs = [
"Random message #1"
"Random message #2"
"Random message #3"
"Random message #4"
]

randomNadeMsg = [
say (at $list_of_nade_msgs (rnd (listlen $list_of_nade_msgs)))
][/cubescript]

I doubt you will be able to throw grenades often enough to get autokicked by the server for spamming, but you may annoy enough people that if someone were to attempt to votekick you that it would pass.
Thanks given by:


Messages In This Thread
Tell me how to make a script? - by ONYX - 28 Dec 12, 07:02AM
RE: Tell me how to make a script? - by 888 - 28 Dec 12, 01:11PM
RE: Tell me how to make a script? - by ONYX - 28 Dec 12, 07:03PM
RE: Tell me how to make a script? - by macm - 28 Dec 12, 07:25PM
RE: Tell me how to make a script? - by ONYX - 28 Dec 12, 07:28PM
RE: Tell me how to make a script? - by Edward - 29 Dec 12, 12:55AM
RE: Tell me how to make a script? - by ONYX - 29 Dec 12, 06:14AM
RE: Tell me how to make a script? - by Bukz - 30 Dec 12, 06:37PM
RE: Tell me how to make a script? - by ONYX - 31 Dec 12, 04:20AM
RE: Tell me how to make a script? - by Bukz - 31 Dec 12, 04:56PM
RE: Tell me how to make a script? - by Edward - 31 Dec 12, 05:15PM
RE: Tell me how to make a script? - by ONYX - 22 Jan 13, 01:43PM
RE: Tell me how to make a script? - by 888 - 22 Jan 13, 08:04PM
RE: Tell me how to make a script? - by ONYX - 01 Feb 13, 08:00AM