SA-MP Forums Archive
Enter CheckPoint Message. - 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: Enter CheckPoint Message. (/showthread.php?tid=392910)



Enter CheckPoint Message. - goviscrap - 16.11.2012

How to make When i enter a CheckPoint A message will be visible for the player who enters it?
Ive made something but i it dont work and probably in wrong Function.. Here's the code anyway.:

Код:
public timerrob(playerid)
{
     if(Ranare[playerid] == 1)
     {
		  SendClientMessage(playerid, COLOR_LIGHTRED, "______________________________________________________________");
		  SendClientMessage(playerid, COLOR_WHITE, "          You have now filled your bag to the Max             ");
		  SendClientMessage(playerid, COLOR_WHITE, "             It's time to escape from the bank                ");
		  SendClientMessage(playerid, COLOR_WHITE, "Check your Mini-Map to see where you need to go with the money");
		  SendClientMessage(playerid, COLOR_LIGHTRED, "______________________________________________________________");
    	  TogglePlayerControllable(playerid, 1);
    	  SetPlayerCheckpoint(playerid, -2232.0225,160.1723,35.3279,4.0);
          //GivePlayerMoney(playerid, 1000000);
          //SendClientMessage(playerid, COLOR_GREY, " You got $1000000!");
          Ranare[playerid] == 0;
          return 0;
     }
     else
     {
        IsPlayerInRangeOfPoint(playerid,10.0,-2232.0225,160.1723,35.3279);
        SendClientMessage(playerid, COLOR_LIGHTRED, "__________________________________");
        SendClientMessage(playerid, COLOR_WHITE, "       You Completed the Robbery     ");
		SendClientMessage(playerid, COLOR_WHITE, "   Stay Low from the Cop's for a Few ");
		SendClientMessage(playerid, COLOR_WHITE, "   You Stole $1,000,000 From The Bank");
		SendClientMessage(playerid, COLOR_LIGHTRED, "__________________________________");
		GivePlayerMoney(playerid, 1000000);
     return 1;
     }
}
How to make the "else" things be shown when the player enters the CP?



Re: Enter CheckPoint Message. - DaRk_RaiN - 16.11.2012

Didn't really understand what you mean, so you want a message to show for him when he enters the checkpoint, then when he leaves it, it shows him an other one?


Re: Enter CheckPoint Message. - goviscrap - 16.11.2012

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Didn't really understand what you mean, so you want a message to show for him when he enters the checkpoint, then when he leaves it, it shows him an other one?
No just a Message when the player enters the CheckPoint. And after i want the checkpoint to Dissapear.