CMD rob store not working!
#5

pawn Код:
public StoreRob1()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(Robber[i] == 1)
    {
        if(PlayerToPoint(30, i, -28.4819,-89.3805,1003.5469))
        {
            SendClientMessage(i, Yellow," 1 min has gone");
            SetTimer("StoreRob2",60000,0);
            return 1;

        }
        else
        {
            SendClientMessage(i, Grey,"You ran like a little girl");
            Robber[i] = 0;
            return 1;
        }
    }
    return 1;
}
public StoreRob2()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(Robber[i] == 1)
    {
    if(PlayerToPoint(30, i, -28.4819,-89.3805,1003.5469))
    {
        SendClientMessage(i, Yellow,"  2 min has gone");
        SetTimer("StoreRob3",5,0);
        return 1;

    }
    else
    {
        SendClientMessage(i, Grey,"You ran like a little girl");
        Robber[i] = 0;
        return 1;
        }

    }return 1;
}
public StoreRob3()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    if(Robber[i] == 1)
    {
    if(PlayerToPoint(30, i, -28.4819,-89.3805,1003.5469))
    {
        SendClientMessage(i, Yellow," You have Robbed the Store, well done, you get $182");
        GivePlayerMoney(i,182);
        Robber[i] = 0;
        return 1;
    }
    else
    {
        SendClientMessage(i, Grey,"You ran like a little girl");
        Robber[i] = 0;
        return 1;
        }

    }return 1;
}
Reply


Messages In This Thread
CMD rob store not working! - by Scrillex - 02.04.2013, 19:19
Re: CMD rob store not working! - by Kestro - 02.04.2013, 19:24
Re: CMD rob store not working! - by Scrillex - 02.04.2013, 19:26
Re: CMD rob store not working! - by Kestro - 02.04.2013, 19:28
Re: CMD rob store not working! - by Scrillex - 02.04.2013, 19:29
Re: CMD rob store not working! - by Hanger - 02.04.2013, 20:20
Re: CMD rob store not working! - by Scrillex - 02.04.2013, 20:35

Forum Jump:


Users browsing this thread: 1 Guest(s)