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
#2

Try to define also the shop with robbing places in the gamemode
Reply
#3

I already defined a checkpoint and added some co-ordinates for it.
Example :
pawn Код:
#define CP_Urban
Reply
#4

Anyone?
Reply
#5

BUMP! FUCKING HELP ME PLEASE
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)