SA-MP Forums Archive
Checkpoint disappears on entering it? - 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: Checkpoint disappears on entering it? (/showthread.php?tid=455433)



Checkpoint disappears on entering it? - Ceez - 01.08.2013

Hey.. how to make the checkpoint STAY and NOT DISAPPEAR once a player steps into it?
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    for(new idx=1; idx<MAX_HOUSES; idx++)
    {
        if(HouseInfo[idx][hCheckpoint] == checkpointid)
        {
            new string[128];
            if(!strcmp("The State", HouseInfo[idx][hOwner], false))
            {
                format(string, sizeof(string), "This house is for sale, Price: $%d", HouseInfo[idx][hPrice]);
                SendClientMessage(playerid, COLOR_GREEN, string);
                SendClientMessage(playerid, COLOR_WHITE, " /buyhouse to purchase this property.");
            }
            else
            {
                format(string, sizeof(string), "You are standing on %s's porch.", HouseInfo[idx][hOwner]);
                SendClientMessage(playerid, COLOR_GREEN, string);
            }
            break;
        }
    }
    return 1;
}
THANKS!


Re: Checkpoint disappears on entering it? - park4bmx - 01.08.2013

Set it again when they enter ??