After practising a little at making some simple scripts until I'll get used with the basics (at least), I was thinking about if there is a way or how to make it possible to play/start a random sound while the specific player is joining the server or leaving it. To make it more clear, here's the code below:
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook ("join","joinMessage") function joinMessage(id) 	msg(string.char(169).."124250000The player named "..player(id,"name").." has joined the server!") 	parse("sv_sound \"Sounds/misc/himan.wav\"") end addhook ("leave","Leaving") function Leaving(id) 	msg(player(id,"name").." "..string.char(169).."000255255has left the server! Hope we'll see him again soon.") 	parse("sv_sound \"Sounds/misc/gtg.wav\"") end


Someone told me, you must use math.random for that, although I dunno where or how I put this. It'd be appreciated if someone can give me an example.