• Print

Author Topic: I have a server, new one. But how to... it's hard for me..  (Read 5913 times)

0 Members and 1 Guest are viewing this topic.

Offline rubenhkoster

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
I have a server, new one. But how to... it's hard for me..
« on: August 15, 2014, 04:41:45 pm »
Hi. I'm new to this forum, don't blame me  :-\

I managed with alot of tutorials to run a dedicated server. I found wonderful maps and my friends like it very much! Basically means its great. (prop hunt) I'm already feeling a boss as a normal cafe worker, or whatever you call it.. In the Netherlands you call it restaurant manager but I dunno it's the same in English.

Things I figured out are:
  • Forwarding my ports
  • Letting the download run from my FTP server
  • Putting great maps in the "maps" map ???

Only things which are less great are:
  • No-one can pick up items with E like alot of other servers can
  • I really don't get how to setup some kind of pointsystem
  • Add-ons aren't working (?)
  • Adding custom taunts

I did my research but I really can't find anything about this, I don't even know this is the right website to ask this.. But I found alot about GMOD here, so I thought you guys could help me out.. Please be very detailed about what I need to do, I am really new to this.

Many thanks in advance!

With very best regards,

Ruben

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: I have a server, new one. But how to... it's hard for me..
« Reply #1 on: August 21, 2014, 03:42:04 am »
We all have these issues when we first start out, I do a lot of work with teamviewer. if you get that for personal use can show you how to do it step by step. custom taunts is broken for me too but my situation is unique, I will teach you what I know.  ;)
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: I have a server, new one. But how to... it's hard for me..
« Reply #2 on: August 23, 2014, 07:00:32 pm »
the point system is another story, you need to add an addon called pointshop. adding models will be whole other topic for you to learn but lets stick with the pointshop... once you get the addon you can configure it in sh_config.lua file, call the points coins if you want. assort items eiher by name or price, all kinds of thngs. NOW if you are trying to add points for taunting you need a specific script that needs to go in your pointshop>lua>autorun and call it sv_taunt.lua.

Taunting for points Script.

sv_taunt.lua
Code: Lua
  1. local KeyToHook = {
  2.  F1 = "ShowHelp",
  3.  F2 = "ShowTeam",
  4.  F3 = "ShowSpare1",
  5.  F4 = "ShowSpare2",
  6.  None = "ThisHookDoesNotExist"
  7.  }
  8.  
  9.  hook.Add(KeyToHook['F3'], "PS_Taunt", function(ply)
  10.         if GAMEMODE:InRound() && ply:Alive() && (ply:Team() == TEAM_HUNTERS || ply:Team() == TEAM_PROPS) && ply.last_taunt_time + 5 <= CurTime() then -- make sure the CurTime matches the permitted taunt delay time.
  11.                 if ply:Team() == TEAM_HUNTERS then
  12.                         ply:PS_Notify("Nice taunt!")
  13.                 else
  14.                         ply:PS_GivePoints(5) -- how many points for taunting? Default: 5
  15.                         ply:PS_Notify("You've been given 5 ", PS.Config.PointsName, " for taunting!") -- this is the message the player gets.
  16.                 end
  17.         end
  18.  end)
  19.  
  20.  

you can change the code ply:PS_GivePoints(5) to another number to give more or less points. the code is universal so if your trying to learn lua pointshop will always run that code if you want to make any action give a player points.

that should take care of your pointsystem, as for add-ons you need to put them in an addons folder titled "addons" not "add-ons" if that's what you did. a lot of your server content will go in that folder so try to keep it organized. addons need to install so do a server restart when placing a new addon in the server.

I know how to add custom taunts, but my server is sentient and I am at its mercy, but you should go to garrysmod>gamemodes>(select your gamemode)> content>sound>taunts and place your soundfiles there, forcedownload them by going to garrysmod>lua>server>ForceDownload.lua and typing resource.AddFile("content/sound/taunts/example.wav") -- taunt example

the -- taunt example is just to organize it. do not remove the -- or your going to have a bad day. now then, you should learn how to fast dl that's too in depth for me to explain here, you don't Have to but it helps.

I would have to see your player.lua file to find out why that doesn't work, perhaps addin a new gamemode file of the same game mode but a different source will fix the E issue.

side note NEVER UNDER ANY CIRCUMSTANCES USE TEAMVIEWER WITH A STRANGER UNLESS YOU ARE WILLING TO TRUST THEM AND FULLY UNDERSTAND THEIR INTENT, NEVER ALLOW THEM ACCESS WITHOUT YOUR SUPERVISION AND IF YOU SUSPECT ANYTHING TERMINATE THE CONNECTION IMMEDIATLY AND CLOSE TEAMVIEWER.
« Last Edit: August 23, 2014, 07:13:23 pm by chaoswolf »
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: I have a server, new one. But how to... it's hard for me..
« Reply #3 on: August 29, 2014, 02:42:34 pm »
NEVER UNDER ANY CIRCUMSTANCES USE TEAMVIEWER WITH A STRANGER UNLESS YOU ARE WILLING TO TRUST THEM AND FULLY UNDERSTAND THEIR INTENT, NEVER ALLOW THEM ACCESS WITHOUT YOUR SUPERVISION AND IF YOU SUSPECT ANYTHING TERMINATE THE CONNECTION IMMEDIATLY AND CLOSE TEAMVIEWER.

I'm a complete and total stranger. Let's go on TeamViewer! :D

But for reals, I've helped many people set up their garrysmod servers and I'll be glad to help you and show you the ropes. If you're interested in me helping you out, add me on steam (http://steamcommunity.com/id/br3ckd4ddy/) and I'll teach you what I know.
Once you get to know me, you'll find you'll have never met me at all.

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: I have a server, new one. But how to... it's hard for me..
« Reply #4 on: August 29, 2014, 03:11:14 pm »
This is my client I offered first! :P
"Someone once told me, scripting lua is like trying to build a rocket ship, once your finished with it and think your done, you start it up only to realize you had just built it upside down." ~Programmer

  • Print