Checkpoint disappears on entering it?
#1

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

Set it again when they enter ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)