Author Topic: Quiz...  (Read 1738 times)

0 Members and 1 Guest are viewing this topic.

Offline Mindless

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
Quiz...
« on: April 02, 2013, 10:05:06 PM »
Well basically im a newbie, but I would like a plugin where they must complete a quiz on roleplay terms and if they pass it gets stored, i'm not good with coding but is anyone able to help me?

Offline nathan736

  • Full Member
  • ***
  • Posts: 143
  • Karma: 4
Re: Quiz...
« Reply #1 on: April 03, 2013, 08:54:41 AM »
so something like this ?
function firstspawn (ply)
local test = ply:GetPData( "first time", true )
name = ply:Nick()
if test then
derma stuff goes here

--when they finish have this action ply:SetPData( "first time", false ) or if they fail do ply:Kick( name.." was kicked for not knowing how to play Dark rp" )
end
hook.Add( "PlayerInitialSpawn", "firstspawnpanel", firstspawn )
that should get you started
ps: this is the rough way to do it.
a person asked me how to code lua and i said this " its like building a rocket up side down then  realizing you did it all wrong."

Offline Mindless

  • Newbie
  • *
  • Posts: 31
  • Karma: 1
Re: Quiz...
« Reply #2 on: April 03, 2013, 07:04:24 PM »
Eh really, didnt help.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Quiz...
« Reply #3 on: April 03, 2013, 08:12:00 PM »
You're not asking someone to 'help' you, so much as asking someone to write the code for you out-right.
Not necessarily a bad thing....just clarifying what it is so others who 'help' really know.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming