[Help]Robbank Command
#1

How to make command for robbank to give randommoney,to have playertopoint, rank 5 or 6 to use this command just and to can use this command only one time in 3h and to make sendclientmessage on pLeader 1,2 pMember 1, admins and testers variable for admin and tester are: pAdmin and pTester.
Reply
#2

to make the random money:
pawn Код:
new money = random(5000);
to make your rank 5 or 6 + is player near point use:
pawn Код:
if(blah blah > 5 && IsPlayerInRangeOfPoint(playerid, x,y,y))
{
   // command here
}
make a timer by using SetTimerEx("CommandTimer", 10800000, 0 ,"i",playerid); // 10800000 == 3h.
Reply
#3

I dont understand am beginner if you can do this for me i will be very thanks on you.
and if you can make command in zcmd please
Reply
#4

Someone to help please ??
Reply
#5

pawn Код:
#include <a_samp>
new cash = random(10000);
new money;

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/robbank", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 30, X, Y, Z) // replace XYZ with bank coordinates.  
        {
        format(money, 5, "You have robbed the bank and receive $%d", cash);
        SendClientMessage(playerid, 0xFFFFFFFF, money);
        GivePlayerMoney(playerid, cash);
        }
        return 1;

       }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)