SA-MP Forums Archive
Help needed with checkpoints - 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 needed with checkpoints (/showthread.php?tid=125886)



Help needed with checkpoints - rbN. - 06.02.2010

Hi guys..

I have a server, and I have checkpoints.. But, I want something that you can only be on the checkpoint ONCE. Not everytime when you relog. And if you get on the checkpoint you get 1+ score and 5K. And a message stand on the server, and there stands that you did a stunt (id), and earned (5K) and (1) score.

Oh and, I want a sortof icon. If the checkpoint isn't done yet, there stands a white S.. If its done, a red S will stand.

I'm maybe not that clear, but heres what I want:

1. A checkpoint where you only can be once, and that you can't do it again.
2. If you stand in it, you earn 5K and 1 point.
3. A message stands for all the players in the chatbox: (name) did stunt (id) and earned (money) and (points)
4. A icon. If the stunt/checkpoint isn't done, there stands a white S. If its done, there stands a red S


Re: Help needed with checkpoints - rbN. - 06.02.2010

C'mon? Somebody.. I really need help :P


Re: Help needed with checkpoints - adytzu32 - 06.02.2010

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint


Re: Help needed with checkpoints - nastoe - 06.02.2010

Example, if you com on checkpoint you will get 5000$ and checkpoint will get disabled
Код:
public OnPlayerEnterCheckpoint(playerid)
{
  GivePlayerMoney(playerid, 5000);
  DisablePlayerCheckpoint(playerid);
  return 1;
}



Re: Help needed with checkpoints - rbN. - 06.02.2010

Quote:
Originally Posted by ExtremePower
Example, if you com on checkpoint you will get 5000$ and checkpoint will get disabled
Код:
public OnPlayerEnterCheckpoint(playerid)
{
  GivePlayerMoney(playerid, 5000);
  DisablePlayerCheckpoint(playerid);
  return 1;
}
I have that, but, the only thing is.. If you go away a lil' bit, and you go back, it's back. Maybe because its the checkpoint streamer but I dunno :P

Oh and, that it's gone forever --> not only till the next restart :P