SA-MP Forums Archive
How to save this - 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: How to save this (/showthread.php?tid=206203)



How to save this - Jordan Smith - 03.01.2011

Anyone had any idea how to save the GangZone Show and GangZone Create


pawn Код:
////if(strcmp(cmd, "/takeover", true) == 0)
    {
        if (PlayerToPoint(3, playerid, 2533.0771,-1664.6176,15.1666) || PlayerToPoint(3, playerid, 2019.9958,-1094.6997,24.5887) || PlayerToPoint(3, playerid, 2323.5935,-1254.1749,22.5000))
        {
            if(PlayerInfo[playerid][pFMember] < 255)
            {
                if (RacketsTime == 1)
                {
                    SendClientMessageToAll(COLOR_RED, " A turf is being taken over, will be over in 10 minutes ! ");
                    if (PlayerToPoint(3, playerid, 2533.0771,-1664.6176,15.1666))
                    {
                        Grove_Street = GangZoneCreate(2425.363, -1733.182, 2524.237, -1634.489);
                        GangZoneShowForPlayer(playerid, Grove_Street, 0x00FF0096);
                        GangZoneFlashForAll(playerid, 0xAA3333AA)
                        SetTimer("RacketOver", 600000, 0);
                    }
                    if (PlayerToPoint(3, playerid, 2019.9958,-1094.6997,24.5887))
                    {
                        Ballaz_Gang = GangZoneCreate(1873.952, -1267.349, 2075.502, -1097.596);
                        GangZoneShowForPlayer(playerid, Ballaz_Gang, 0xFF00FF96);
                        SetTimer("RacketOver", 600000, 0);
                    }
                    if (PlayerToPoint(3, playerid, 2323.5935,-1254.1749,22.5000))
                    {
                        Garage_Gang = GangZoneCreate(2303.672, -1287.088, 2345.503, -1168.656);
                        GangZoneShowForPlayer(playerid, Garage_Gang, 0xFF800096);
                        SetTimer("RacketOver", 600000, 0);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, " ** A Racket has not started yet !");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, " ** You are not in a gang !");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, " ** You're not at a take over spot ! **");
        }
        return 1;
    }



Re: How to save this - Jochemd - 03.01.2011

What do you exactly mean with 'save them'


Re: How to save this - Jordan Smith - 03.01.2011

when player takeover the zone. It will save.


Re: How to save this - azzerking - 03.01.2011

Use Dini and create a file called gangezones and try using that.

If you dont know Dini Then you need to learn like quick


Re: How to save this - Jordan Smith - 03.01.2011

can anyone show me that


Re: How to save this - Jordan Smith - 03.01.2011

my problem is when player get the zone it will automatically save in a file. And when the file load, it will show the zone's that the player got


Re: How to save this - Jordan Smith - 03.01.2011

I guess nobody can do it


Re: How to save this - Kaylux - 03.01.2011

We could, then what would you get out of that?
Look up file saving systems like dini, mysql, djson, yini etc...


Re: How to save this - Jordan Smith - 03.01.2011

yeah I read. But where will I put it


Re: How to save this - Jordan Smith - 03.01.2011

OMG. No help. Have I asked a difficult question