SA-MP Forums Archive
Help with markers. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with markers. (/showthread.php?tid=108274)



Help with markers. - Sal_Kings - 13.11.2009

1. How do i create a checkpoint / red marker ?
2. If i create 2 at a time, how will Pawno know which one i mean when it comes to "OnPlayerEntercheckpoint"?


Re: Help with markers. - Sal_Kings - 13.11.2009

Quote:
Originally Posted by Y_Leѕѕ
You can't create two at once - that's how it knows which one it is.
Yes you can, i saw on some servers. There were like 200 businesses/houses!
Each house/business had a marker at the front door.


Re: Help with markers. - Sal_Kings - 13.11.2009

Ok look, lets say i put 3 checkpoints. Every single one something different happens when you enter it.

You can only put one of these.

Code:
public OnPlayerEnterCheckpoint(playerid)
{
  GivePlayerMoney(playerid, 1000);
  SetPlayerInterior(playerid,3);
  DisablePlayerCheckpoint(playerid);
  return 1;
}



Re: Help with markers. - Lajko1 - 13.11.2009

look at wiki for checkpoints its not so hard


Re: Help with markers. - [XST]O_x - 13.11.2009

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
http://forum.sa-mp.com/index.php?topic=117264.0