AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is there a tutorial for this? (https://forums.alliedmods.net/showthread.php?t=270905)

iPro 09-01-2015 05:40

Is there a tutorial for this?
 
I want to create my own moneymod for HNS and have it stored in nVault, is there a good tutorial for creating something alike? You could purchase different stuff with the money earned, stuff like that . Thanks!

HamletEagle 09-01-2015 06:01

Re: Is there a tutorial for this?
 
What tutorial do you exactly want ? Explain what you want to create.

iPro 09-01-2015 06:07

Re: Is there a tutorial for this?
 
Quote:

Originally Posted by HamletEagle (Post 2338800)
What tutorial do you exactly want ? Explain what you want to create.

I have a HNS server, and i want to create a mod where players would get money(different money from cs actualy money, so it will be stored in a new massive (new Moneymod[x]) for killing, for surviving, for headshotting, if they are VIP and so on, ive just never dealed with stuff like that. And also create a Shop where people could buy items for the money earned.

Vancold 09-01-2015 06:12

Re: Is there a tutorial for this?
 
Learn Mysql, learn how to create menu's, create databases, read and write + a menu system.
Simple as that.

iPro 09-01-2015 06:15

Re: Is there a tutorial for this?
 
Quote:

Originally Posted by Vancold (Post 2338803)
Learn Mysql, learn how to create menu's, create databases, read and write + a menu system.
Simple as that.

whats so hard about everything you just mentioned? :D I know all of that, menus are simple as shit, mysql, i have a little knowledge in PHP and mysql, but i want it to be stored in nVault :).

HamletEagle 09-01-2015 07:06

Re: Is there a tutorial for this?
 
https://forums.alliedmods.net/showthread.php?t=91503
nVault tutorial.

Vancold 09-01-2015 08:02

Re: Is there a tutorial for this?
 
Yeah that's good, why don't you use it then? Database - Storage > file based storage.
But that's your choice. :p

HamletEagle 09-01-2015 10:17

Re: Is there a tutorial for this?
 
Quote:

Originally Posted by Vancold (Post 2338833)
Yeah that's good, why don't you use it then? Database - Storage > file based storage.
But that's your choice. :p

Not always true. If you are going to make any sorting(like a top for example) then you should use mysql, but for not huge ammount of datas nvault is ok and probably faster.

aron9forever 09-03-2015 07:27

Re: Is there a tutorial for this?
 
Quote:

Originally Posted by HamletEagle (Post 2338869)
Not always true. If you are going to make any sorting(like a top for example) then you should use mysql, but for not huge ammount of datas nvault is ok and probably faster.

file storage will NEVER be faster than mysql
that is of course if the mysql is local, remote adds the ping which sux


All times are GMT -4. The time now is 22:13.

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