Because I laughed TOO hard with this: [URL="http://facepunch.com/showthread.php?t=1408095&p=45391611&viewfull=1#post45391611"]magic reply[/URL]
I did a kind of...Thing that works like a Gag function, this makes player don't able to talk or write, but anyway, they can chat and talk with other people on the pit...
Also their screen will be filled with this
[B]Normal:[/B]
[t]http://i.imgur.com/l8LZqOo.jpg[/t]
[B]When they open the chat or start voice talking[/B]
[t]http://i.imgur.com/vdlwbpL.jpg[/t]
[B]And the gag menu[/B]
[t]http://i.imgur.com/zsQ3SNx.jpg[/t]
This only was made for fun, you can open the menu as admin writting "!pit" "!balls" "!ballpit"
Otherwise, i added a kind of API for this
[lua]
--Server side
//If b It's not defined, this gonna toggle the ballpit, othersie, b = false will remove it, and true apply it
player:BallPit(b)
--Shared
//Return if player it's on a ballpit
player:IsOnBallPit()
[/lua]
You can configure if you want to make this to tell random chat lines and what ranks can use it
[B]Have fun with this like i had with making it[/B] [URL="http://pastebin.com/FHPrbZ4U"]Download link[/URL]
this is awesome
This is a great way to deal with minges, good work!
You can do a few optimization such as
[code]
function player:BallPit(b)
b = IsValid( b ) and b or not self:GetNWBool( "IsOnBallPit", false )
self:SetNWBool( "IsOnBallPit", b )
end
[/code]
woah, i just wouldn't imagine that cool way to toggle, thanks, i'll try to use it next time
I'm very curious for an ULX implementation, even though that's way above my level :(
EDIT: Also I'm unfortunatly having this:
[CODE]
[ERROR] lua/autorun/ballpit.lua:187: attempt to call field 'GetAll' (a nil value)
1. UpdateData - lua/autorun/ballpit.lua:187
2. func - lua/autorun/ballpit.lua:201
3. unknown - lua/includes/modules/net.lua:32
[/CODE]
are you defining a player var before?
le funny joke meme gamemode
[QUOTE=Koala Crisp;45433057]le funny joke meme gamemode[/QUOTE]
Did you even read the post
It's a gag system, not a gamemode
[QUOTE=gonzalolog;45432968]are you defining a player var before?[/QUOTE]
I'm literally trying to use your code as-is first, no edits have been made and it throws me that :(
I placed the file in lua/autorun, maybe that's not where it should go?
Sorry for the bump, but does anyone know where to place this file? I'm guessing lua/autorun?
Yes! Now I can welcome innocent people to my server with balls.
[QUOTE=Aeternal;48179903]Yes! Now I can welcome innocent people to my server with balls.[/QUOTE]
Nice
Look pretty dude ha-ha
You should add it so they have a chance of getting pinkeye.
Sorry, you need to Log In to post a reply to this thread.