How to save this
#1

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

What do you exactly mean with 'save them'
Reply
#3

when player takeover the zone. It will save.
Reply
#4

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

If you dont know Dini Then you need to learn like quick
Reply
#5

can anyone show me that
Reply
#6

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

I guess nobody can do it
Reply
#8

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

yeah I read. But where will I put it
Reply
#10

OMG. No help. Have I asked a difficult question
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)