AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   nVault top15 (https://forums.alliedmods.net/showthread.php?t=223660)

xxxnenadxxx 08-15-2013 21:36

nVault top15
 
Hi guys, I'm little new to pawn scripting for amxx so I hope somebody will help me :) I'm creating plugin for top time/online time on server using nVault include. So far I've done function and command to check time spent on server for any player and function for deleting all times, but now I want to make toptime command that will show top 15 players (online and offline) that were most on server.
This is for saving times:
Spoiler

And this is for showing how much time user spent on server:
Spoiler


I didn't use MySQL since I won't show times on webpage so please don't recommend me that. If someone can give me example how to create function for showing top 15 players that were most online (MOTD or console print), I would really appreciate it.

mottzi 08-16-2013 03:28

Re: nVault top15
 
nvault isnt the choicefor such request. You could also want to use sqlite, if you dont want do use mysql.

xxxnenadxxx 08-16-2013 06:28

Re: nVault top15
 
Then I would have to rewrite whole plugin. Is it possible to combine normal nVault and nVault Util include to create such function?

mottzi 08-16-2013 06:50

Re: nVault top15
 
Search for bugsys nvault tutorial. If I remember correctly he wrote something about reading every entry in a vault.

guipatinador 08-16-2013 07:03

Re: nVault top15
 
Its possible, with nVault or FVault.

xxxnenadxxx 08-16-2013 07:19

Re: nVault top15
 
- mottzi
I found it but it didn't help, since it seems I'll have to rewrite whole plugin xD

- guipatinador
It would be nice if you give me example for nVault :)

lobopack23 08-20-2013 03:44

Re: nVault top15
 
I will be creating something like this soon..

if you havent gotten any help. I will look into making a version for myself that I can give you afterwards
sorry i cant help now..working on a big project :o

xxxnenadxxx 08-22-2013 18:19

Re: nVault top15
 
Well it would be great (and thanks by the way), but since I realy need this, I hope that I will menage to solve it :)


All times are GMT -4. The time now is 15:59.

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