/robbank system
#1

pawn Код:
if(strcmp(cmd, "/robbank", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(robbing[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, " You are already robbing the bank, please slow down");
            return 1;
        }
        if(alreadyrobbed[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_WHITE, "You already robbed the bank! Wait 1 hour.");
            return 1;
        }
        if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2394.35,-1593.94,785.62))//--Change those X Y Z
        {
            SendClientMessage(playerid, COLOR_GREY, " You are not at the bank !");
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You have Robbed Los Santos Local Bank And Stole 1 Million Dollar - Stay low From Cops for few");
            robbing[playerid] = 1;
            LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, 0);
            GivePlayerMoney(playerid, 1000000);
            SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
            SendClientMessageToAll(COLOR_NICEGREEN, " Los Santos Local Bank Trust has Been Broken.");
            SendClientMessageToAll(COLOR_NICEGREEN, " The Bank is Currentley getting Robbed. ");
            SendClientMessageToAll(COLOR_NICEGREEN, " We will report more once we get more information");
            SendClientMessageToAll(COLOR_ORANGE, "||----------Latest News----------||");
        }
    }
    return 1;
}
Reply
#2

how to be a FS.

and how to get at the time wanted to do that
Reply
#3

Quote:
Originally Posted by Scott Zulkifli
Посмотреть сообщение
how to be a FS.

and how to get at the time wanted to do that
Start here: https://sampwiki.blast.hk/wiki/Scripting_Basics
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)