SA-MP Forums Archive
BankRob System [+REP] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: BankRob System [+REP] (/showthread.php?tid=348406)



BankRob System [+REP] - AarabMoney - 05.06.2012

Hello members of Sa-mp

I've got a NG:RP gamemode, now i want to have a robbank system. I already used the Search option but I cant find a bank system. I want a robbank in zCMD (CMD:robbank)

Please help me, I will give you +REP

Thanks in advance!



Re: BankRob System [+REP] - Sandiel - 05.06.2012

Here you go
pawn Код:
COMMAND:robbank(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 3, robX, robY, robZ))
    {
        if(RobBank == 1)
        {
            SetTimer("RobbingBank", 600000, false);
            SendClientMessage(playerid, COLOR_YELLOW, "You have initiated the bank robbery, 10 minutes left!");
        }
    }
    return 1;
}
Then just forward the public function "RobbingBank", and give him the money + a checkpoint to money-wash the money (OPTIONAL, your choice)


Re: BankRob System [+REP] - AarabMoney - 05.06.2012

@Sandiel, Im not so good in scripting so I dont know what to do, thanks for try to help +rep.


Re: BankRob System [+REP] - Firo - 05.06.2012

Quote:
Originally Posted by AarabMoney
Посмотреть сообщение
@Sandiel, Im not so good in scripting so I dont know what to do, thanks for try to help +rep.
Easy, use ZCMD include and add this to OnPlayerCommandText public.


Re: BankRob System [+REP] - Sandiel - 05.06.2012

Quote:
Originally Posted by AarabMoney
Посмотреть сообщение
@Sandiel, Im not so good in scripting so I dont know what to do, thanks for try to help +rep.
Try to understand how timers work, then you'll get it.