• Print

Author Topic: I need a donating system!!  (Read 5033 times)

0 Members and 1 Guest are viewing this topic.

Offline beau99

  • Newbie
  • *
  • Posts: 5
  • Karma: -2
I need a donating system!!
« on: August 20, 2014, 01:37:34 am »
Hey Guys! Im currently a owner of a jailbreak server (ZapGaming) and i need more money for it to stay up!
Im woundering if anyone can give me a donating system or code me one! I just need it so they can get a website up and they choose what rank they would like to buy then buy it then the money goes to me.     PLEASE HELP ME WITH THIS


Thanks

-Zap 


Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: I need a donating system!!
« Reply #2 on: August 20, 2014, 11:10:59 am »
There's also a free one on the Release category of the forums.
Although I think it's buggy.
Out of the Garry's Mod business.

Offline ChaosWolf

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 2
  • "The Exiled One's" Server Owner
Re: I need a donating system!!
« Reply #3 on: August 20, 2014, 04:21:28 pm »
If your not looking for a headache you can try this one, its one im using in my server to direct them to my donation page, should they feel the need to do so. also never pressure your users into donating, donations should be of their own choosing. you can make an advert on you server letting them know you have a system in place however. anyway here's the code I use in The Exiled One's.

Code: Lua
  1. function donateCommand( pl, text, teamonly ) -- alter the command from "donatecommand" to what you want to change
  2.                     if (text == "!donate") then
  3.                             pl:SendLua([[gui.OpenURL("http://steamcommunity.com/groups/exiled1s/discussions/4/45350245498524060/")]]) -- Change ADDRESS to your chosen page.
  4.                             for k, v in pairs(player.GetAll()) do v:ChatPrint( " " .. pl:Nick() .. " has viewed our donation page!" )
  5.  
  6.                 end
  7.         end
  8. end
  9. hook.Add( "PlayerSay", "dcommand", donateCommand ) -- change here too dcommand and donatecommand must match the top.

whats great about this directory code is it can be easily modified, if you don't want it for donations you can still use it for directing a user to counter strike source if they don't have it. or an admin application page. just by altering a few marked lines. and the chat print to match the directory. just copy and paste it in a lua file and put it in...
Garrysmod>lua>autorun and do a map change. it should be good to go.

-Regards ChaosWolf
« Last Edit: August 20, 2014, 04:24:04 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

  • Print