Ulysses

General => Developers Corner => Topic started by: Mindless on April 02, 2013, 10:05:06 PM

Title: Quiz...
Post by: Mindless 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?
Title: Re: Quiz...
Post by: nathan736 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.
Title: Re: Quiz...
Post by: Mindless on April 03, 2013, 07:04:24 PM
Eh really, didnt help.
Title: Re: Quiz...
Post by: JamminR 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.