28.04.2012, 11:59
Hello I try to make Bank Robbery System but without enough information about Timers and same
I want to make when you die or get out from the bank to not give money to robber if you know how please help me.
This is my CMD:robbank
I want to make when you die or get out from the bank to not give money to robber if you know how please help me.
This is my CMD:robbank
pawn Код:
CMD:robbank(playerid, params[])
{
new string[128];
new money = random(10000)+10000;
if(PlayerInfo[playerid][pLevel] >= 5) return SendClientMessage(playerid, COLOR_YELLOW, "You must be over level 5 to rob the bank.");
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
{
format(string, sizeof(string), "You have started to setting up robbery you must wait 5 min.");
SetTimer("robbank", 500000, false);
GivePlayerMoney(playerid, money);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
return 1;
}