[HELP] How can I save and reload turf (gang zone) information from dini?
#1

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
Reply
#2

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
Reply
#3

Can you show me by adding a code or something?
Reply
#4

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 )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)