Raised This Month: $12 Target: $400
 3% 

[Zeph-store] Trivia quizz


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Aes
Junior Member
Join Date: Nov 2018
Plugin ID:
6337
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Zephyrus store trivia quizz
Old 11-12-2018 , 07:51   [Zeph-store] Trivia quizz
Reply With Quote #1

Description

This plugin ask your players Trivia questions coming from https://opentdb.com and reward them with Zephyrus's Store credits.

Dependencies

Zephyrus store : https://forums.alliedmods.net/showthread.php?t=276677

Rest in Pawn : https://forums.alliedmods.net/showthread.php?t=298024

Installation

Upload the plugin to the plugins folder and ripext to the extension folder.

CVars

Code:
"sm_quizz_time_answer_questions", "15", "Time in seconds to give a answer to a question."
"sm_quizz_easy_credits", "10", "The credits you earn for an easy difficulty answer"
"sm_quizz_medium_credits", "20", "The credits you earn for an medium difficulty answer"
"sm_quizz_hard_credits", "30", "The credits you earn for an hard difficulty answer"
"sm_quizz_time_between_questions", "30", "Time in seconds between each questions."
"sm_quizz_minimum_players", "1", "What should be the minimum number of players ?"
Notes

Hello, fellow modders, this is my first released plugin, I took Arkarr Math Credits plugin as an inspiration. Please, tell me any suggestions, optimisations, good practices!
Attached Files
File Type: sp Get Plugin or Get Source (store-quizz.sp - 325 views - 8.0 KB)
File Type: smx store-quizz.smx (10.1 KB, 335 views)
File Type: 7z store-quizz.7z (1.01 MB, 321 views)

Last edited by Aes; 11-12-2018 at 14:43.
Aes is offline
Aes
Junior Member
Join Date: Nov 2018
Old 11-12-2018 , 07:52   Re: [Zeph-store] Trivia quizz
Reply With Quote #2

Also if you can help me with the online compiling, I can't list some of the needed dependencies because they don't have any IDs they are just includes(ripext and base64).

Last edited by Aes; 11-12-2018 at 09:00.
Aes is offline
Cruze
Veteran Member
Join Date: May 2017
Old 11-12-2018 , 08:03   Re: [Zeph-store] Trivia quizz
Reply With Quote #3

Wow, Good job man! Will give this a try in some hours!!
__________________
Taking paid private requests! Contact me
Cruze is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 11-12-2018 , 09:50   Re: [Zeph-store] Trivia quizz
Reply With Quote #4

Nice release but you should probably include that this requires rip.ext
__________________
Hiring developers of all sorts for small or big jobs.
Paying nicely. Just PM for any available jobs.


Last edited by wolvez04; 11-12-2018 at 09:50.
wolvez04 is offline
Aes
Junior Member
Join Date: Nov 2018
Old 11-12-2018 , 10:04   Re: [Zeph-store] Trivia quizz
Reply With Quote #5

Quote:
Originally Posted by wolvez04 View Post
Nice release but you should probably include that this requires rip.ext
How do I do that? The fields says dependencies IDs, I found it for Zeph store, but in the post for ripext and base64 there's no plugin ID there are just links for .inc files.
Aes is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 11-12-2018 , 10:25   Re: [Zeph-store] Trivia quizz
Reply With Quote #6

Quote:
Originally Posted by Aes View Post
How do I do that? The fields says dependencies IDs, I found it for Zeph store, but in the post for ripext and base64 there's no plugin ID there are just links for .inc files.
Wouldn't you just link the thread for ripext and say you need to run this

When I try to manually load plugin I get this

command (cmdline "sm plugins load store-quizz")
[SM] Plugin store-quizz.smx failed to load: Required extension "REST in Pawn" file("rip.ext") not running.
__________________
Hiring developers of all sorts for small or big jobs.
Paying nicely. Just PM for any available jobs.


Last edited by wolvez04; 11-12-2018 at 10:29.
wolvez04 is offline
Aes
Junior Member
Join Date: Nov 2018
Old 11-12-2018 , 10:28   Re: [Zeph-store] Trivia quizz
Reply With Quote #7

Gotcha, I will modify the post!
Aes is offline
wolvez04
Senior Member
Join Date: Feb 2016
Location: Andora
Old 11-12-2018 , 10:29   Re: [Zeph-store] Trivia quizz
Reply With Quote #8

Quote:
Originally Posted by Aes View Post
Gotcha, I will modify the post!
__________________
Hiring developers of all sorts for small or big jobs.
Paying nicely. Just PM for any available jobs.

wolvez04 is offline
Aes
Junior Member
Join Date: Nov 2018
Old 11-12-2018 , 10:31   Re: [Zeph-store] Trivia quizz
Reply With Quote #9

Added the ripext extensions(forgot about this one), and the various includes in a zip and in the post
Aes is offline
supertimor
AlliedModders Donor
Join Date: Sep 2017
Old 11-12-2018 , 12:34   Re: [Zeph-store] Trivia quizz
Reply With Quote #10

Does anyone know if it will work with others databases?


/ Albo czy zna ktoś polską bazę danych tego typu
supertimor is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode