27 July 2008 13:12 - [DuckYStudios] LUADuck: Nori? 13:12 - Nori: wot 13:12 - [DuckYStudios] LUADuck: Could you help with a LUA project? 13:12 - [DuckYStudios] LUADuck: I'm working on a PALL script for my servers 13:12 - Nori: a wut 13:13 - [DuckYStudios] LUADuck: you type !pall music/portal_still_alive.mp3 and it will play still alive to all clients 13:13 - Nori: ...mmkay. 13:13 - [DuckYStudios] LUADuck: What I want is to be able to type !pall stillalive and it will play music/portal_still_alive.mp3 13:13 - Nori: i can write that code in like 13:13 - Nori: 5 secs 13:13 - Nori: brbfbi 13:13 - [DuckYStudios] LUADuck: :/ 13:14 - [DuckYStudios] LUADuck: so basically stillalive == music/portal_still_alive.mp3 13:14 - Nori: o 13:14 - Nori: i see wuts goin on here 13:14 - Nori: *writes moar code* 13:14 - [DuckYStudios] LUADuck: Here's my current code 13:15 - Nori: no fuk u 13:15 - Nori: imma write my own code 13:15 - Nori: and smack you in the face 13:15 - [DuckYStudios] LUADuck: what to compete with me 13:15 - Nori: EXACTLY. 13:15 - Nori: >: O 13:15 - [DuckYStudios] LUADuck: my lib is a lot bigger than !pall 13:15 - Nori: kfien. 13:15 - [DuckYStudios] LUADuck: want me to dump it for you? 13:15 - [DuckYStudios] LUADuck: Chew. 13:15 - [DuckYStudios] LUADuck: -- Start loading, use the header. print( "------------------------" ) print( "----------PALL----------" ) print( "-----[DuckYStudios]-----" ) print( "-----RELEASE EDITION----" ) print( "----------V1.1----------" ) print( "--------Loading---------" ) function playerSaid( ply, saywhat ) local playerName = ply:GetName() local Sep = string.Explode(" ", saywhat) local songname = Sep[2] if string.find(saywhat, "!play") == 1 then -- Look for !p in the player's chat -- and make sure it's the first in the sentence. ply:PrintMessage( HUD_PRINTTALK, "(PALL) Now playing ".. songname ..". To stop, type !stopsong" ) ply:ConCommand("play ".. songname .."") end if string.find(saywhat, "!stopsong") == 1 then -- Look for !stopsong in the player's chat -- and make sure it's the first in the sentence. ply:PrintMessage( HUD_PRINTTALK, "(PALL) Song stopped." ) ply:ConCommand("stopsounds") end if string.find(saywhat, "!pall") == 1 then -- Same as above but with !pall if ply:IsAdmin() then for k,v in pairs(player.GetAll()) do v.GetAll():PrintMessage (HUD_PRINTTALK, "(PALL) ".. playerName .." started playing ".. songname .." to all clients. Type !stopsong to stop." ) v:ConCommand("play ".. songname .."") end else -- This should only run if Player:IsAdmin fails, not if the command is invalid - some admin mods use ! ply:PrintMessage (HUD_PRINTTALK, "(PALL) Access denied! You need to be a admin!" ) end end if string.find(saywhat, "!allstop") == 1 then -- Same as above but with !allstop if ply:IsAdmin() then for k,v in pairs(player.GetAll()) do v:PrintMessage (HUD_PRINTTALK, "(PALL) ".. playerName .." stopped songs on all clients." ) v:ConCommand("stopsounds") end else -- This should only run if Player:IsAdmin fails, not if the command is invalid - some admin mods use ! ply:PrintMessage (HUD_PRINTTALK, "(PALL) Access denied! You need to be a admin!" ) end end end -- Half way print( "----------...-----------" ) function advertise() for k,v in pairs(pla 13:15 - [DuckYStudios] LUADuck: Fuck ran out 13:16 - [DuckYStudios] LUADuck: of room 13:16 - Nori: lolnigger 13:16 - [DuckYStudios] LUADuck: and please don't steal that 13:16 - [DuckYStudios] LUADuck: I mean come on 13:16 - [DuckYStudios] LUADuck: let a new developer release something 13:17 - Nori: lolk. 13:17 - Nori: brb writin codes 13:18 - [DuckYStudios] LUADuck: :v 13:19 - Nori: local sounds = { }; sounds["stillalive"] = "music/portal_still_alive.mp3"; function PALL( pl, text ) if string.sub( text, 1, 6 ) == "!pall " then local soundpath = ""; if string.find( text, ".mp3" ) != nil or string.find( text, ".wav" ) != nil then soundpath = string.sub( text, 7, string.len( text ) ); else soundpath = sounds[string.sub( text, 7, string.len( text ) )]; end for _, pl in pairs( player.GetAll( ) ) do pl:ConCommand( "play " .. soundpath ); end return ""; end end hook.Add( "PlayerSay", "PALL_Hook", PALL ) 13:19 - Nori: bitch, the fuck now 13:20 - [DuckYStudios] LUADuck: I take it you're gunna release that 13:20 - [DuckYStudios] LUADuck: :( 13:20 - Nori: ...ohshi. 13:20 - Nori: a release. 13:20 - Nori: something 13:20 - Nori: that i released 13:20 - Nori: WUT 13:20 - Nori screeches 13:20 - Nori: ITS MINE 13:20 - Nori: GTFO 13:20 - [DuckYStudios] LUADuck: :v 13:20 - Nori: (idea by LuaDuck) 13:20 - Nori: dus that wurk for yews. 13:21 - [DuckYStudios] LUADuck: Seriously stop treating me like a piece of code 13:21 - [DuckYStudios] LUADuck: I paid £10 FUCKING POUNDS to you 13:21 - Nori: LOLOLOLOL 13:21 - Nori: >:V 13:21 - [DuckYStudios] LUADuck: I'll happily ask for the money back 13:21 - Nori: hur. 13:37 - [DuckYStudios] LUADuck: Fail 13:37 - [DuckYStudios] LUADuck: http://forums.facepunchstudios.com/showthread.php?t=580131 13:39 - [DuckYStudios] LUADuck: Ahahaha 13:40 - [DuckYStudios] LUADuck: Why do you kill off peoples scripts 13:40 - [DuckYStudios] LUADuck: Why can't you work in harmony 13:40 - Nori: BECAUSE 13:40 - Nori: ITS A FUCKING WAR 13:40 - [DuckYStudios] LUADuck: so many times you've trashed your scripts 13:40 - Nori: WHOEVER CODES THE BEST RULES THE REST 13:40 - [DuckYStudios] LUADuck: It's not war 13:40 - [DuckYStudios] LUADuck: it's good competition 13:40 - Nori: war, bitch. 13:40 - Nori: we wage war. 13:40 - Nori: im in a super extreme warful section of lua 13:40 - Nori: fucking RP scripts 13:40 - Nori: i dominate the market 13:40 - Nori: why? 13:40 - Nori: because I kick the shit 13:41 - Nori: out of everything else 13:41 - Nori: we dont play fair. 13:41 - [DuckYStudios] LUADuck: And you're saying that even though Cider is the most played gamemode currently 13:41 - [DuckYStudios] LUADuck: and he doesn't kill you 13:41 - Nori: no, its just because its conna's server. 13:41 - Nori: And besides that, conna is a friend of mine. 13:41 - Nori: Heres a little insight on me 13:41 - Nori: search anywhere for luabanana 13:41 - Nori: oh hes a fgt 13:41 - [DuckYStudios] LUADuck: Just get the hell away from my script 13:41 - Nori: or 13:41 - Nori: holy shit hes a genius 13:41 - [DuckYStudios] LUADuck: if you wanna release yours, do so 13:42 - [DuckYStudios] LUADuck: It's my first damn time 13:42 - [DuckYStudios] LUADuck: of COURSE it's going to be simple. 13:42 - Nori: heres a better insight 13:42 - Nori: lost hybrid ryt 13:42 - Nori: starting his zone rp community again 13:42 - Nori: i was supposedly helping him 13:42 - Nori: he got like 13:42 - Nori: 50 members 13:42 - Nori: on the forums 13:42 - Nori: he asks me when imma be done 13:42 - Nori: and im like 13:42 - Nori: nevar. 13:42 - Nori: your a dumbass. 13:42 - Nori: not directly said. 13:42 - Nori: But on msn 13:42 - Nori: i was like 13:42 - Nori: its not you 13:43 - Nori: its me 13:43 - Nori: no wait 13:43 - Nori: its you 13:43 - Nori: your a dumbass 13:43 - Nori: *block* 13:43 - Nori: :V