Quizz Lua

-snip-

I made that for you in the last thread you did.

-snip-

is not you ok no i no have code more you go find thread and see yes plzz

[editline]raw[/editline]

God damnit. Made me waste my 1000th post on that.

This isnt requests, your supposed to make it and we help you with it

first, read this :**[Full Guide to derma

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Guide_to_Derma)**
then you will need to hook it with : **[Gamemode.PlayerInitialSpawn

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.PlayerInitialSpawn)**
and call it with an **[UserMessages

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=User_Messages)**
also, you may check if the player has already awnswer to the quizz :**[Sql

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Sql)**

This isent the request section, as Tobba alright pointed out. Why would I make it for you, when you can easily do it yourself? Also, by the look of your thread, there’s not put alot of effort into it = we wont take you seriously.

Picture an ad in the newspaper;

[RELEASE]hi i want sell computer it has screen plz buy[/RELEASE]

You’d want more information about that, right?

But yea, you can follow the links that Slay3r36 gave you, although UserMessages might be too hard for you; I’d suggest going with console commands instead; much easier.

-snip-

first, speak english then read what i posted and try to make it yourself, and if you have problems, ask me on steam and i will help you.

I love Google Translate.

Vous ne pouvez pas mettre tout le monde pour vous faire quelque chose. Il est beaucoup plus facile de l’apprendre vous-même; jetez un oeil à la Wikipédia et vous apprendrez beaucoup.

ok i have make my lua quiz and have problem the lua doesnt work on playerspawn


function monderma()

local DLabel5
local DButton1
local DLabel4
local DMultiChoice3
local DLabel3
local DMultiChoice2
local DLabel2
local DMultiChoice1
local DLabel1
local DFrame1
local DPanel1

DLabel5 = vgui.Create('DLabel')
DLabel5:SetPos(256, 52)
DLabel5:SetText('Elixir Roleplay Enjoy')
DLabel5:SizeToContents()
DLabel5:SetTextColor(Color(255, 255, 255, 255))
DButton1 = vgui.Create('DButton')
DButton1:SetSize(170, 25)
DButton1:SetPos(236, 342)
DButton1:SetText('Resultats')
DButton1.DoClick = function() end

DLabel4 = vgui.Create('DLabel')
DLabel4:SetPos(433, 396)
DLabel4:SetText('http://gmod-build.comule.com')
DLabel4:SizeToContents()
DLabel4:SetTextColor(Color(255, 255, 255, 255))
DMultiChoice3 = vgui.Create('DMultiChoice')
Dmultichoice3.Addchoice("Oui")
Dmultichoice3.Addchoice("Non")
DMultiChoice3:SetPos(71, 306)
DMultiChoice3.OnMousePressed = function() end
function DMultiChoice3:OnSelect(Index, Value, Data) end

DLabel3 = vgui.Create('DLabel')
DLabel3:SetPos(72, 267)
DLabel3:SetText('Devez vous spawnez des prop depassant la map ?')
DLabel3:SizeToContents()
DLabel3:SetTextColor(Color(255, 255, 255, 255))
DMultiChoice2 = vgui.Create('DMultiChoice')
Dmultichoice2.Addchoice("Oui")
Dmultichoice2.Addchoice("Non")
DMultiChoice2:SetPos(68, 216)
DMultiChoice2.OnMousePressed = function() end
function DMultiChoice2:OnSelect(Index, Value, Data) end

DLabel2 = vgui.Create('DLabel')
DLabel2:SetPos(68, 184)
DLabel2:SetText('Bloquerez vous le spawn avec des props ou autres ?')
DLabel2:SizeToContents()
DLabel2:SetTextColor(Color(255, 255, 255, 255))
DMultiChoice1 = vgui.Create('DMultiChoice')
Dmultichoice1.Addchoice("Oui")
Dmultichoice1.Addchoice("Non")
DMultiChoice1:SetPos(68, 134)
DMultiChoice1.OnMousePressed = function() end
function DMultiChoice1:OnSelect(Index, Value, Data) end

DLabel1 = vgui.Create('DLabel')
DLabel1:SetPos(72, 95)
DLabel1:SetText('Tuez des joueurs sans raison avec arme ou prop kill est autoriser dans le serveur ?')
DLabel1:SizeToContents()
DLabel1:SetTextColor(Color(255, 255, 255, 255))
DFrame1 = vgui.Create('DFrame')
DFrame1:SetSize(544, 409)
DFrame1:SetPos(53, 11)
DFrame1:SetTitle('Roleplay Quiz Anti-Mingebag')
DFrame1:SetSizable(true)
DFrame1:SetDeleteOnClose(false)
DFrame1:MakePopup()

DPanel1 = vgui.Create('DPanel')
DPanel1:SetSize(546, 412)
DPanel1:SetPos(51, 10)

hook.Add("playerinitialSpawn", "myhok", function(ply) sendusermessage( "monderma", ply)
end)

I just died inside.

You copy pasted what i send you on steam, without read my sentences ?

[lua]–CLIENT Side , lua/autorun/client/cl_Quizz.lua
function monderma()
local DLabel5
local DButton1
local DLabel4
local DMultiChoice3
local DLabel3
local DMultiChoice2
local DLabel2
local DMultiChoice1
local DLabel1
local DFrame1
local DPanel1

DLabel5 = vgui.Create('DLabel')
DLabel5:SetPos(256, 52)
DLabel5:SetText('Elixir Roleplay Enjoy')
DLabel5:SizeToContents()
DLabel5:SetTextColor(Color(255, 255, 255, 255))
DButton1 = vgui.Create('DButton')
DButton1:SetSize(170, 25)
DButton1:SetPos(236, 342)
DButton1:SetText('Resultats')
DButton1.DoClick = function() end

DLabel4 = vgui.Create('DLabel')
DLabel4:SetPos(433, 396)
DLabel4:SetText('http://gmod-build.comule.com')
DLabel4:SizeToContents()
DLabel4:SetTextColor(Color(255, 255, 255, 255))
DMultiChoice3 = vgui.Create('DMultiChoice')
Dmultichoice3.Addchoice("Oui")
Dmultichoice3.Addchoice("Non")
DMultiChoice3:SetPos(71, 306)
DMultiChoice3.OnMousePressed = function() end
function DMultiChoice3:OnSelect(Index, Value, Data) end

DLabel3 = vgui.Create('DLabel')
DLabel3:SetPos(72, 267)
DLabel3:SetText('Devez vous spawnez des prop depassant la map ?')
DLabel3:SizeToContents()
DLabel3:SetTextColor(Color(255, 255, 255, 255))
DMultiChoice2 = vgui.Create('DMultiChoice')
Dmultichoice2.Addchoice("Oui")
Dmultichoice2.Addchoice("Non")
DMultiChoice2:SetPos(68, 216)
DMultiChoice2.OnMousePressed = function() end
function DMultiChoice2:OnSelect(Index, Value, Data) end

DLabel2 = vgui.Create('DLabel')
DLabel2:SetPos(68, 184)
DLabel2:SetText('Bloquerez vous le spawn avec des props ou autres ?')
DLabel2:SizeToContents()
DLabel2:SetTextColor(Color(255, 255, 255, 255))
DMultiChoice1 = vgui.Create('DMultiChoice')
Dmultichoice1.Addchoice("Oui")
Dmultichoice1.Addchoice("Non")
DMultiChoice1:SetPos(68, 134)
DMultiChoice1.OnMousePressed = function() end
function DMultiChoice1:OnSelect(Index, Value, Data) end

DLabel1 = vgui.Create('DLabel')
DLabel1:SetPos(72, 95)
DLabel1:SetText('Tuez des joueurs sans raison avec arme ou prop kill est autoriser dans le serveur ?')
DLabel1:SizeToContents()
DLabel1:SetTextColor(Color(255, 255, 255, 255))
DFrame1 = vgui.Create('DFrame')
DFrame1:SetSize(544, 409)
DFrame1:SetPos(53, 11)
DFrame1:SetTitle('Roleplay Quiz Anti-Mingebag')
DFrame1:SetSizable(true)
DFrame1:SetDeleteOnClose(false)
DFrame1:MakePopup()

DPanel1 = vgui.Create('DPanel')
DPanel1:SetSize(546, 412)
DPanel1:SetPos(51, 10)

end
usermessage.Hook( “DermaQ”, monderma )
[/lua]

[lua]
–SERVER Side , lua/autorun/server/sv_Quizz.lua

hook.Add(“PlayerInitialSpawn”, “myhook”, function(ply)
SendUserMessage(“DermaQ”, ply)
end)[/lua]

This work like this, and DermaDesigner is a good tool, but you need to learn how to make a derma before using it.

use this for the choices.

ok thx i have remaked the lua code


 --CLIENT Side , lua/autorun/client/cl_Quiz.lua
function monderma()
local DLabel5
local DButton1
local DLabel4
local DCheckBox6
local DCheckBox5
local DLabel3
local DCheckBox4
local DCheckBox3
local DLabel2
local DCheckBox2
local DCheckBox1
local DLabel1
local DFrame1
local DPanel1

DLabel5 = vgui.Create('DLabel')
DLabel5:SetPos(428, 391)
DLabel5:SetText('http://gmod-build.comule.com')
DLabel5:SizeToContents()
DLabel5:SetTextColor(Color(255, 255, 255, 255))
DButton1 = vgui.Create('DButton')
DButton1:SetSize(125, 25)
DButton1:SetPos(249, 343)
DButton1:SetText('Resultats')
DButton1.DoClick = function() end

DLabel4 = vgui.Create('DLabel')
DLabel4:SetPos(251, 58)
DLabel4:SetText('Elixir Roleplay Enjoy')
DLabel4:SizeToContents()
DLabel4:SetTextColor(Color(255, 255, 255, 255))
DCheckBox6 = vgui.Create('DCheckBoxLabel')
DCheckBox6:SetPos(132, 283)
DCheckBox6:SetText('Non')
DCheckBox6.DoClick = function() end
DCheckBox6:SizeToContents()

DCheckBox5 = vgui.Create('DCheckBoxLabel')
DCheckBox5:SetPos(80, 282)
DCheckBox5:SetText('Oui')
DCheckBox5.DoClick = function() end
DCheckBox5:SizeToContents()

DLabel3 = vgui.Create('DLabel')
DLabel3:SetPos(79, 249)
DLabel3:SetText('Devez vous spawnez des prop depassant la map ?')
DLabel3:SizeToContents()
DLabel3:SetTextColor(Color(255, 255, 255, 255))
DCheckBox4 = vgui.Create('DCheckBoxLabel')
DCheckBox4:SetPos(132, 204)
DCheckBox4:SetText('Non')
DCheckBox4.DoClick = function() end
DCheckBox4:SizeToContents()

DCheckBox3 = vgui.Create('DCheckBoxLabel')
DCheckBox3:SetPos(78, 204)
DCheckBox3:SetText('Oui')
DCheckBox3.DoClick = function() end
DCheckBox3:SizeToContents()

DLabel2 = vgui.Create('DLabel')
DLabel2:SetPos(78, 170)
DLabel2:SetText('Bloquerez vous le spawn avec des props ou autres ?')
DLabel2:SizeToContents()
DLabel2:SetTextColor(Color(255, 255, 255, 255))
DCheckBox2 = vgui.Create('DCheckBoxLabel')
DCheckBox2:SetPos(131, 130)
DCheckBox2:SetText('Non')
DCheckBox2.DoClick = function() end
DCheckBox2:SizeToContents()

DCheckBox1 = vgui.Create('DCheckBoxLabel')
DCheckBox1:SetPos(78, 130)
DCheckBox1:SetText('Oui')
DCheckBox1.DoClick = function() end
DCheckBox1:SizeToContents()

DLabel1 = vgui.Create('DLabel')
DLabel1:SetPos(75, 92)
DLabel1:SetText('Tuez des joueurs sans raison avec arme ou prop kill est autoriser dans le serveur ?')
DLabel1:SizeToContents()
DLabel1:SetTextColor(Color(255, 255, 255, 255))
DFrame1 = vgui.Create('DFrame')
DFrame1:SetSize(528, 387)
DFrame1:SetPos(58, 27)
DFrame1:SetTitle('Roleplay Quiz Anti-Mingebag')
DFrame1:SetSizable(true)
DFrame1:SetDeleteOnClose(false)
DFrame1:MakePopup()

DPanel1 = vgui.Create('DPanel')
DPanel1:SetSize(525, 387)
DPanel1:SetPos(59, 27)
end  
usermessage.Hook( "DermaQ", monderma )

with radio button and help me for radio button false on checked you are kicked with push resultats button

You fail to even copy-paste stuff.


usermessage.Hook( "DermaQ", monderma )

This is wrong; read what Slay3r wrote for you.

Not only is it wrong, but placed in the wrong directory.
He even tells you where to put it!


--SERVER Side , lua/autorun/server/sv_Quizz.lua


This guy has to be a troll he fails to C&P noone is that dumb

Slay3r made all the code for him, and even told him where to put it, and yet; he fucks it up by adding stuff to another file and weird shit.

It’s heartbreaking how people like these host servers.