OnPlayerUpdate - 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: OnPlayerUpdate (
/showthread.php?tid=393344)
OnPlayerUpdate -
Socan - 18.11.2012
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;
}
Re: OnPlayerUpdate -
Azazelo - 18.11.2012
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];
Re: OnPlayerUpdate -
Socan - 18.11.2012
Thanks rep.
Re: OnPlayerUpdate -
cessil - 18.11.2012
using incognito's streamer with the CreateDynamicCircle would probably be a lot better than checking under every opu
Re: OnPlayerUpdate -
Plovix - 18.11.2012
@cessil That's true
You can also use this streamer:
https://sampforum.blast.hk/showthread.php?tid=167349
Re: OnPlayerUpdate -
cessil - 18.11.2012
Quote:
Originally Posted by Plovix
|
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