OnPlayerUpdate
#1

Well I recently added it so that when you walk into a checkpoint it pops up a dialog, but the checkpoint comes up when you go near that place and then never disapears on your minmap. How to make it disipear?

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 1985.3361,-1282.2993,23.9740))
    {
        SetPlayerCheckpoint(playerid, 1985.3361,-1282.2993,23.9740, 2.0);
        return 1;
    }
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 1985.3361,-1282.2993,23.9740))
    {
       MyPickupShow[playerid] = 1;// you may do it without this but then have bug`s on multiple points
        SetPlayerCheckpoint(playerid, 1985.3361,-1282.2993,23.9740, 2.0);
        return 1;
    }
   else
    {
        if(MyPickupShow[playerid] == 1)// you may do it without this but then have bug`s on multiple points
        {
         DisablePlayerCheckpoint(playerid);
         MyPickupShow[playerid] = 0;
         }
    }
    return 1;
}

new MyPickupShow[MAX_PLAYERS];
Reply
#3

Thanks rep.
Reply
#4

using incognito's streamer with the CreateDynamicCircle would probably be a lot better than checking under every opu
Reply
#5

@cessil That's true
You can also use this streamer:
https://sampforum.blast.hk/showthread.php?tid=167349
Reply
#6

Quote:
Originally Posted by Plovix
Посмотреть сообщение
@cessil That's true
You can also use this streamer:
https://sampforum.blast.hk/showthread.php?tid=167349
that doesn't seem like a suitable replacement for incognito's seeing as that has everything in pawn and it loops through all players + areas every 300ms
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)