zones, virtualworlds.
#5

Quote:
Originally Posted by Maraudeur
Посмотреть сообщение
That wouldnt really work, mind giving me an example?
pawn Код:
public pRobTimer(playerid)
{
    new pl = GetPlayerWantedLevel(playerid);
    pl = GetPlayerWantedLevel(playerid);
    SetPlayerWantedLevel(playerid,pl +3);
    robmoney[playerid] += random(2600);
    pRobCount[playerid]--;
    IsRobbing[playerid] =1;
    new rbgt[128];
    format(rbgt, sizeof(rbgt), "Robbery ~g~in progress.~r~Do NOT leave the checkpoint.~y~Money stolen: ~g~%i$", robmoney[playerid]);
    GameTextForPlayer(playerid, rbgt, 30000, 5);
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new copmsg[170];
    format(copmsg, sizeof(copmsg), "- WARNING ALL COPS: Robbery in progress by %s (%d)",name,playerid);
    switch(pRobCount[playerid])
    {
        case 29:
        {
            for(new i=0;i<MAX_PLAYERS;i++)
            {
                if(!IsPlayerConnected(i))continue;
                if(gTeam[i] == POLICE && ARMY && MEDIC && FIREMEN)
                {
                    SendClientMessage(i, COLOR_BLUE, copmsg);
                }
            }
        }
        case 0:
        {
            KillTimer(pRobTimerID[playerid]);
            GivePlayerMoney(playerid,robmoney[playerid]);
            new string2[128];
            new current_zone = player_zone[playerid];
            new plwl = GetPlayerWantedLevel(playerid);
            plwl = GetPlayerWantedLevel(playerid);
            SetPlayerWantedLevel(playerid,plwl +4);

            format(string2, sizeof(string2), "- SUCCESS ROBBERY - Wanted Level %d - Robbed %i$ from %s",plwl,robmoney[playerid],zones[current_zone][zone_name]);
            SendClientMessage(playerid,red,string2);
            g_PlayerInfo[playerid][pStorerobs]++;
            g_PlayerInfo[playerid][pCrimes]++;
            ShowDescriptionText(playerid, string2);
            GameTextForPlayer(playerid, "Robbery ~r~COMPLETE.", 3000, 5);
            SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
            IsRobbing[playerid] =0;
            new string3[128];
            GetPlayerName(playerid, name, sizeof(name));
            format(string3, sizeof(string3), "- ROBBERY - %s (%d) has robbed %i$ from %s",name,playerid,robmoney[playerid],zones[current_zone][zone_name]);
            SendClientMessageToAll(COLOR_WHITE,string3);
            robmoney[playerid] = 0;
        }
    }
    return 1;
}
Don't know why I'm helping but ok.

Before the player enters an interior, save the old location. If it is 'Blueberry', then get the new location then put then together:

%s in %s", newlocation, oldlocation);
Reply


Messages In This Thread
zones, virtualworlds. - by Maraudeur - 28.01.2013, 00:02
Re: zones, virtualworlds. - by Maraudeur - 28.01.2013, 13:06
Re: zones, virtualworlds. - by mineralo - 28.01.2013, 13:20
Re: zones, virtualworlds. - by Maraudeur - 29.01.2013, 13:40
Re: zones, virtualworlds. - by Kyle - 29.01.2013, 19:34
Re: zones, virtualworlds. - by Maraudeur - 29.01.2013, 23:06

Forum Jump:


Users browsing this thread: 1 Guest(s)