/Top? MySQL or Y_INi?
#1

Will i be able to make /top command using y_ini? i mean that the script will scan the database/files for top 10 highest scores.If it enables to do that please tell me how
Reply
#2

Yes you will be able, but its going to be a bit harder.
You can simply have a timer running that will check top 5 players online and save it, then later the timer will check if current top is lower/higher than the new one etc.
But I stongly suggest SQL, it can be done with few lines.
Reply
#3

you can get the score from the save files and you can make a /top10 command using Y_ini or even a temporary ban system using Y_ini and some includes.
Reply
#4

Thanks You Both,solved a big problem
But timers make the server lag so if there is another meathod possible?
Reply
#5

Quote:
Originally Posted by ALiScripter
Посмотреть сообщение
you can get the score from the save files and you can make a /top10 command using Y_ini or even a temporary ban system using Y_ini and some includes.
Wait a min bro,you said "you can get the score from the save files"
can you tell me how it is possible? Please
Reply
#6

Read this
https://sampforum.blast.hk/showthread.php?tid=471358
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)