Enter CheckPoint Message.
#1

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

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?
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)