Near weed?
#4

First define the MAX plants
PHP код:
#define         MAX_PLANTS                  300 
PHP код:
#define         MAX_PLANTS                  Your amount 
PHP код:
    for(new 0MAX_PLANTS; ++i)
    {
        if(
IsValidDynamicObject(Plants[i][pObjectSpawned]) && IsPlayerInRangeOfPoint(playerid2.5Plants[i][pPos][0], Plants[i][pPos][1], Plants[i][pPos][2]))
        {
            if(
GetPlayerVirtualWorld(playerid) == Plants[i][pVirtual] && GetPlayerInterior(playerid) == Plants[i][pInterior])
            { 
Reply


Messages In This Thread
Near weed? - by lulo356 - 04.02.2016, 13:55
Re: Near weed? - by Matess - 04.02.2016, 14:08
Re: Near weed? - by Rufio - 04.02.2016, 14:16
Re: Near weed? - by TopShooter - 04.02.2016, 14:19
Re: Near weed? - by lulo356 - 04.02.2016, 14:22
Re: Near weed? - by Rufio - 04.02.2016, 14:23
Re: Near weed? - by lulo356 - 04.02.2016, 14:29
Re: Near weed? - by Rufio - 04.02.2016, 14:33
Re: Near weed? - by lulo356 - 04.02.2016, 14:41
Re: Near weed? - by Rufio - 04.02.2016, 14:46

Forum Jump:


Users browsing this thread: 2 Guest(s)