ULX

Author Topic: need a coder, will pay.  (Read 2863 times)

0 Members and 1 Guest are viewing this topic.

Offline sgcoin

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
need a coder, will pay.
« on: February 04, 2011, 01:15:21 PM »
I'm looking for someone who can make this plugin work with the current version of ULX / xGUI and TTT.

Plugin: http://www.zombiemaster.org/smf/index.php?topic=10138.0

TTT: http://ttt.badking.net/

Nothing in life is free, name your price.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: need a coder, will pay.
« Reply #1 on: February 05, 2011, 09:53:31 AM »
Will take this offer up.  Give me a bit.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: need a coder, will pay.
« Reply #2 on: February 05, 2011, 01:26:26 PM »
Code: [Select]
local CATEGORY_NAME = "TTT"

function ulx.cc_respawn( ply, targs )
for _, v in ipairs( targs ) do
v:SpawnForRound(true)
end
ulx.fancyLogAdmin( ply, true, "#A respawned #T", targs )
end
local respawn = ulx.command( CATEGORY_NAME,  "ulx respawn", ulx.cc_respawn, "!respawn", true )
respawn:addParam{ type=ULib.cmds.PlayersArg, hint="<user(s)>" }
respawn:defaultAccess( ULib.ACCESS_SUPERADMIN )
respawn:help( "Respawn a player." )

function ulx.cc_traitor( ply, targs )
for _, v in ipairs( targs ) do
v:SetRole(ROLE_TRAITOR)
end
SendFullStateUpdate()
ulx.fancyLogAdmin( ply, true, "#A turned #T into a traitor", targs )
end
local traitor = ulx.command( CATEGORY_NAME, "ulx traitor", ulx.cc_traitor, "!traitor", true )
traitor:addParam{type=ULib.cmds.PlayersArg, hint = "<user(s)>"}
traitor:defaultAccess( ULib.ACCESS_SUPERADMIN )
traitor:help( "Turns target(s) into a traitor." )

function ulx.cc_detective( ply, targs )
for _, v in ipairs( targs ) do
v:SetRole(ROLE_DETECTIVE)
end
SendFullStateUpdate()
ulx.fancyLogAdmin( ply, true, "#A turned #T into a detective", targs )
end
local detective = ulx.command( CATEGORY_NAME, "ulx detective", ulx.cc_detective, "!detective", true )
detective:addParam{type=ULib.cmds.PlayersArg, hint = "<user(s)>"}
detective:defaultAccess( ULib.ACCESS_SUPERADMIN )
detective:help( "Turns target(s) into a detective." )

function ulx.cc_innocent( ply, targs )
for _, v in ipairs( targs ) do
v:SetRole(ROLE_INNOCENT)
end
SendFullStateUpdate()
ulx.fancyLogAdmin( ply, true, "#A turned #T into a innocent", targs )
end
local innocent = ulx.command( CATEGORY_NAME, "ulx innocent", ulx.cc_innocent, "!innocent", true )
innocent:addParam{type=ULib.cmds.PlayersArg, hint = "<user(s)>"}
innocent:defaultAccess( ULib.ACCESS_SUPERADMIN )
innocent:help( "Turns target(s) into an innocent." )
Here you go!  There is one bug with the score at the end showing you as an innocent still.  I couldn't find a way around this.  Nor could the creator seeing as his built in command is the same way.

$5 is fine @ -snip- via PayPal

Shouldn't have taken me as long as it did, but I was trying to find a way around that one bug.

EDIT:  Create a Lua file in your addons/ulx/lua/ulx/modules/sh/ folder and paste it in that file.  You can name it what ever you'd like.
« Last Edit: February 06, 2011, 07:21:35 AM by Aaron113 »

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: need a coder, will pay.
« Reply #3 on: February 06, 2011, 07:19:52 AM »
So, seeing as you last signed in about 6 hours ago, you're not going to pay as promised?  Oh well, at least I got some experience with TTT.

Offline sgcoin

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: need a coder, will pay.
« Reply #4 on: February 06, 2011, 12:58:31 PM »
PM me your paypal, it was edited out.

Offline CRussian

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: need a coder, will pay.
« Reply #5 on: February 10, 2011, 05:14:58 PM »
You should implement this in the update for TTT?
- CRussian

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: need a coder, will pay.
« Reply #6 on: February 10, 2011, 06:06:39 PM »
We don't write TTT, and, it's more of a module than an integral part of ULX.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming