22.07.2014, 21:13
pawn Код:
public robtimer(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 4.0, 2309.1899,-8.4444,26.7422))
{
SendClientMessage(playerid, -1, "You failed to rob the bank");
return 1;
}
new string[128];
new cash = random(200000);
GivePlayerMoney(playerid, cash);
format(string, sizeof(string), "You have successfully robbed $%d from the bank!", cash);
SendClientMessage(playerid, COLOR_WHITE, string);
}