[HELP] How can I save and reload turf (gang zone) information from dini? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] How can I save and reload turf (gang zone) information from dini? (
/showthread.php?tid=144026)
[HELP] How can I save and reload turf (gang zone) information from dini? -
borg245 - 25.04.2010
Hey sa-mp forum,
I really need help with saving my the gang zones after each server restart, because, whenever the server restarts, the turfs that would have been lost or won would have been reset to their original owners.
Now, I need to know how I can save these turfs so that whenever the server restarts, they would appear how they were left before restart.
Here is my script:
http://pastebin.com/7Huzugpy (ls gangwars)
Please tell me what to do or add so I can solve this problem.
thanks in advance,
borg245
Re: [HELP] How can I save and reload turf (gang zone) information from dini? -
[cA]Unforseen - 25.04.2010
The only way you can save gangzone colors.
when a gang captures..BLAHBLAH.. it saves the gang color in dini file
cant explain but its easy
Re: [HELP] How can I save and reload turf (gang zone) information from dini? -
borg245 - 25.04.2010
Can you show me by adding a code or something?
Re: [HELP] How can I save and reload turf (gang zone) information from dini? -
[cA]Unforseen - 25.04.2010
Quote:
Originally Posted by [cA
Unforseen ]
cant explain but its easy
|
why did i wrote this for
?
ok.. -.-
cant explain more than this:
first make a dini file for each turf(lets take TURF1 for example)
on the top
Код:
#define TURF1 "Turf1.txt"
add this for when the gang captures a gang:
Код:
dini_IntSet(TURF1,"color","RED");
replace RED with the color you want
add this to OnPlayerSpawn(playerid)
Код:
if(dini_Int(TURF1,"color") == RED)
GangZoneHideForAll(the zone you want);
GangZoneShowForAll(the zone,RED COLOR)
replace the zone with ur zone
replace RED COLOR with ur own RED color
thats the limit i can (i know it was fast but im busy
)