Top Kills help for different maps.
#1

Hey everyone,

Im using different gamemode's for making Maps InGame , it changes with the help of SendRconCommand(changemode name); function.

I have three maps or you can say three Gm's with three different spawn's but with the same script.
The maps change after a certain time. I want to make Top Kills to be saved for each map in different file for it. That means it should save data of the player's with the name and Top kills in the particular map in a file and it should load the data from the Files and show it in a dialog to the player who hits the command "/topkills".

How can do it? I dont have any idea? What should i do to start. Anyone can help me?
PS
Will rep everyone who will help!
Thanks
BMiaa
Reply
#2

if you make a variable which gets assigned a different value on each gamemode, then maybe a file based structure helps - if you got 3 gamemodes, each one using a certain location, or ID, could lead to 3 files:
Код:
scriptfiles/topten_1.txt
scriptfiles/topten_2.txt
scriptfiles/topten_3.txt
used with a simple variable, which gamemode (1,2 or 3) is playing, you can format a textfile name, and then use it as usual.
Reply
#3

Take this: http://forum.sa-mp.com/showpost.php?...0&postcount=24
If you want to create it urself, learn from that.
Reply
#4

Quote:
Originally Posted by Babul
Посмотреть сообщение
if you make a variable which gets assigned a different value on each gamemode, then maybe a file based structure helps - if you got 3 gamemodes, each one using a certain location, or ID, could lead to 3 files:
Код:
scriptfiles/topten_1.txt
scriptfiles/topten_2.txt
scriptfiles/topten_3.txt
used with a simple variable, which gamemode (1,2 or 3) is playing, you can format a textfile name, and then use it as usual.
Uhmm ive been thinking of that? But to load up those files? what should be the format?

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
Take this: http://forum.sa-mp.com/showpost.php?...0&postcount=24
If you want to create it urself, learn from that.
Didnt help bro? There was nothing i could exactly see. Only a post. Can you post the code or something yourself please. Will really appreciate it.


@Admin - Beta Testers. - Sorry for Bumping the thread. Will learn from my mistakes
Thanks guys,
BMiaa.
Reply
#5

Sorry. My wrong, here u go:
http://forum.sa-mp.com/showpost.php?...2&postcount=44
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)