/robbank help?
#1

Hello, i was playing a server before they had a full custom bank and stuff like that..
how can i get a robbank command?

ZCMD please.
Reply
#2

Quote:
Originally Posted by Evation
Посмотреть сообщение
Hello, i was playing a server before they had a full custom bank and stuff like that..
how can i get a robbank command?

ZCMD please.
pawn Код:
CMD:rob(playerid, params[])
{
    if(!strcmp(params, "bank")) // check if the player types a parameter bank like this /rob bank
    {
        if(IsPlayerInRangeOfPoint(playerid, x, y, z) // it checks if the player is near bank or you can use the CHECKPOINT as well
        {
                // rest of your code of robbing bank.
        }
        else
        {
            SendClientMessage(playerid, -1, "ERROR: You are not near/in the bank"); // error message that the player is not in or near th ebank
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "ERROR: /rob [bank]"); // usage
    }
    return 1;
}
Just a framework of your command, I am just trying to help you even though this board is not SCRIPT REQUESTING board so you can use my command and use your functions.

Or you can just use this: https://sampforum.blast.hk/showthread.php?tid=324202

-FalconX
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)