open.mp forum
[Gamemode] JSON Gamemode Base - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Releases (https://forum.open.mp/forumdisplay.php?fid=13)
---- Forum: Gamemodes (https://forum.open.mp/forumdisplay.php?fid=33)
---- Thread: [Gamemode] JSON Gamemode Base (/showthread.php?tid=2551)



JSON Gamemode Base - Dev86 - 2024-01-16

JSON Gamemode Base
An OpenMP gamemode that stores player data in a JSON Object using samp-json.

Example of a player object:

Code:
{
  "id": 0,
  "name": "Davorin_Adler",
  "password": "<password-hash-goes-here>"
}


All columns on your MySQL Database will be loaded into your JSON Object.

NOTE:
I have written this initially for a gamemode I was personally going to be working on. However, it turned out to be more of a hassle to work with than anything.
I would recommend you base your new gamemode with this if you are a martyr.

DEPENDENCIES:
pawn-json
MySQL R41-4 by pBlueG
YSI 5.x
- y_inline
- y_inline_mysql
- y_inline_bcrypt
- y_dialog

INSTALL:
https://github.com/sampdevi/samp-json-auth

no sampctl support (yet) I'm too lazy zzzzzz


RE: JSON Gamemode Base - summercurrants - 2024-03-04

good work!