Help needed with checkpoints
#1

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
Reply
#2

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

https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Reply
#4

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;
}
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)