16.11.2012, 12:35
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.:
How to make the "else" things be shown when the player enters the CP?
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;
}
}


