Top Kills help for different maps. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Top Kills help for different maps. (
/showthread.php?tid=303743)
Top Kills help for different maps. -
Ballu Miaa - 15.12.2011
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
Re: Top Kills help for different maps. -
Babul - 15.12.2011
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.
Re: Top Kills help for different maps. - suhrab_mujeeb - 15.12.2011
Take this:
http://forum.sa-mp.com/showpost.php?...0&postcount=24
If you want to create it urself, learn from that.
Re: Top Kills help for different maps. -
Ballu Miaa - 15.12.2011
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
|
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.
Re: Top Kills help for different maps. - suhrab_mujeeb - 15.12.2011
Sorry. My wrong, here u go:
http://forum.sa-mp.com/showpost.php?...2&postcount=44