Mining
#5

pawn Код:
//top of your script
new Float:mines[][] =
{
    {1649.7455, -2147.9253, 6.9209}, // Mine1 (format x, y, z).
    {1549.7715, -2677.9262, 15.9550}, // Mine2
    //.....
    {844.5756, -1667.2555, 2.7684} // Last mine
};

CMD:mine(playerid)
{
    for(new i; i < sizeof(mines); i++)
    {
        if(!IsPlayerInRangeOfPoint(playerid, range, mines[i][0], mines[i][1], mines[i][2])) continue;
        //The player is in range of a mine.
    }
    return 1;
}
.
Reply


Messages In This Thread
Mining - by Zex Tan - 05.07.2013, 09:38
Re: Mining - by Pottus - 05.07.2013, 10:02
Re: Mining - by Black Wolf - 05.07.2013, 10:43
Re: Mining - by Nick_Phelps - 05.07.2013, 10:59
Re: Mining - by [HiC]TheKiller - 05.07.2013, 11:04
Re: Mining - by exclide1 - 05.07.2013, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)