How to convert house pickups to checkpoints (Only be seen if player is near checkpoint)
#1

Look, so I want to convert pickups to checkpoints only for houses. I know I can do that easily. But the problem is how to make them appear only when player is NEAR THE checkpoint..
Well here's my code under OnGameModeInit right now
pawn Код:
//^^OnGameModeInit shitt :P
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
            HouseInfo[h][hPickupID]=CreatePickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
        if(HouseInfo[h][hOwned] == 1)
        {
            Create3DTextLabel("[Property]",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
            HouseInfo[h][hPickupID]=CreatePickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            pickups++;
        }
    }
Um well also.. Should I put the checkpoint in OnPlayerUpdate or what..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)