MAKE A CHANGE IN SCRIPT OF KEEPING ID OF COLUMN PLEASE ,ONLY A SUGGESTION (I USED IT AND IT WAS NICE BUT BECAUSE OF THIS ID MATTER I GOT DIFFICULTY IN SETTING ITEMS)
If you are hosting then write in webbroswer you server ip with its http port which you would found in mtaserver.conf (default is 22005) like (123.45.78.198:22005) Or if local hosted then type 127.0.01:22005 then you would asked to login, if you are admin login with your admin account after that a page appears.
See in left hand corner its written Performance stats then you find in middle Target default is set as server then in categories you will find what you need.
local tab ={}
local highest
function rank()
for i,v ipairs(getElementsByType("player")) do
tab=v;
end
highest = tab[1];
for i,v ipairs(tab) do
if(getElementData(tab,your data)> getElementData(highest,your data) then
highest = tab;
end
end
Player with highest score will be in variable highest
You could do this
Make a table of player then
Take a global variable x
Then make function in which
Make a for loop for player In table and check
With getelement data which player score
Is great then assingn x to player
At the end of loop player with highest point would be stored in x
Known as help with weapon shooting etc .(you can search in forum for false help),i have now managed to complete it so if anyone wants it can contact me on :[email protected]