//--------Robbank Checkpoint---------------
public RobBank(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2, 2309.6060,-4.0211,26.7422))
{
if(RobbingTime[playerid] > 0)
{
RobbingTime[playerid] --;
GameTextForPlayer(playerid, "~w~Remain in the ~r~Pickup ~w~until the time ends!", 1000,4);
}
else
{
KillTimer(RobBankTimer);
RobbingTime[playerid] = 1337;
WantedPoints[playerid] = 5;
SetPlayerCriminal(playerid,255, "Robbing the Bank");
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
new money = random(21826);
SendClientMessage(playerid, COLOR_GREY, "Your friends have taken the money to a safe spot.");
SendClientMessage(playerid, COLOR_GREY, "Now, go to the checkpoint to get the money! (Go outside)");
}
}
else
{
GameTextForPlayer(playerid, "~rYou Left The Checkpoint!", 2000,4);
RobbingTime[playerid] = 0;
KillTimer(RobBankTimer);
}
}
//---------------End here----------------------
|
new money = random(21826); |