Two problems with robbery and zones
#1

Hi,
I'm currently using SFCRRPG. I added a new shop to rob. But it doesn't work. It is Urban. When I get inside the shop, The checkpoint appears in the place. But, When I type /robstore it doesn't respond anything.
Here is the code of that robbery.
pawn Код:
if(getCheckpointType(playerid) == CP_Urban)
    {
        if(zones[current_zone][zone_name] == zones[150][zone_name])
        {
            if(UrbanRobbedRecently >= 1)
            {
                SendClientMessage(playerid,COLOR_ERROR,"The Urban has been robbed recently.");
                return 1;
            }
            if(rrand <= 30)
            {
                SendClientMessage(playerid,COLOR_ERROR,"Juniper Hill Binco robbery failed.");
                UrbanRobbedRecently =320;
                return 1;
            }
            UrbanRobbedRecently =320;
            RobbingUrban[playerid] =25;
            IncreaseWantedLevel(playerid,4);
            IncreasePlayerScore(playerid,1);
            SetProgressBarValue(robbery[playerid],RobbingUrban[playerid]);
            ShowProgressBarForPlayer(playerid,robbery[playerid]);

            format(string,sizeof(string),"~p~~n~~n~~n~~n~Robbing Urban.~n~~r~Finish Robbery in: %d seconds.",RobbingJHBinco[playerid]);
            GameTextForPlayer(playerid,string,3000,3);

            format(string,sizeof(string),"[POLICE RADIO] Suspect %s(%d) has begun to rob the Urban! Get To Urban and arrest the suspect.",PlayerName(playerid),playerid);
            SendClientMessageToAllCops(string);

            format(string,sizeof(string),"[ROBBERY] %s(%d) has begun a robbery at Urban ..",PlayerName(playerid),playerid);
            SendClientMessageToAll(COLOR_RED,string);

            format(string,sizeof(string),"4[ROBBERY] %s(%d) has begun a robbery at Urban ..",PlayerName(playerid),playerid);
            IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
            return 1;
        }
        return 1;
    }
And the another problem is "How to find the zones a particular place?"
I mean the zone ID's for a particular place..
Reply


Messages In This Thread
Two problems with robbery and zones - by rakshith122 - 01.03.2014, 12:04
Re: Two problems with robbery and zones - by Clad - 01.03.2014, 12:24
Re: Two problems with robbery and zones - by rakshith122 - 01.03.2014, 12:37
Re: Two problems with robbery and zones - by rakshith122 - 01.03.2014, 12:50
Re: Two problems with robbery and zones - by rakshith122 - 02.03.2014, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)