1 rob command many worlds
#1

i need help on robbing the same shop with different virtualworlds but with the same command how can i make it work

this is what i have

the other ones i have is /robcluck2 and also /robcluck3 how can i only use this command for all 3 and more

pawn Код:
if(!strcmp(cmdtext,"/robcluck",true))
    {
        if(gTeam[playerid] != TEAM_CIVILIAN)
        {
            SendClientMessage(playerid, 0xE4BC1BFF, "Cops can't rob stores!");
        }
        else if(waitrobstore[playerid] == true)
        {
            SendClientMessage(playerid, 0xFF8000FF, "Wait before robbing the store again!");
        }
        else if(canrobcluck[playerid] == true)
        {
            if(robcluck[playerid] == false)
            {
                SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) Your wanted level is increased! the cops have been dispatched to your location.");
                format(string, sizeof(string), "(ROBBERY) The Cluckin Bell in %s is currently being robbed right now.",zones[current_zone][zone_name]);
                CopRadio(BLUE, string);
                SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+4);
                SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
                GameTextForPlayer(playerid, "~y~holdup in ~w~progress",15000,3);
                SendClientMessage(playerid, 0xE4BC1BFF, "(ROBBERY) You are robbing money... don't exit the checkpoint yet...");
                timer1 = SetTimerEx("cluck", 12500, false, "d", playerid);
                ApplyAnimation(playerid, "SHOP", "null", 4.0, 0, 0, 0, 0, 0);
                ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
                robcluck[playerid] = true;
                SetPVarInt(playerid, "Timer", SetTimerEx("WantedLevelDown", 120000, 1, "i", playerid));
            }
            else
            {
                SendClientMessage(playerid, 0xFF8000FF, "You are already robbing the cluckin bell.");
            }
        }
        else
        {
            SendClientMessage(playerid, 0xFF8000FF, "You need to be inside the checkpoint to start robbing binco.");
        }
        return 1;
Reply


Messages In This Thread
1 rob command many worlds - by Smokey619 - 18.07.2010, 18:09
Re: 1 rob command many worlds - by Kar - 18.07.2010, 19:13
Re: 1 rob command many worlds - by Smokey619 - 18.07.2010, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)