Random coords
#6

I think something like this would be more suited:
pawn Code:
#define MAX_DELOCATIONS    12
enum DELIVER_INFO{Float:deX,Float:deY,Float:deZ,deTeam}
new gDeliverCoords[MAX_DELOCATIONS][DELIVER_INFO];

GetDeliverId(playerid)
{
    new deid,playerteam;
    playerteam=GetPlayerTeam(playerid);
    do deid=random(MAX_DELOCATIONS);
    while (gDeliverCoords[deid][deTeam]!=playerteam);
    return deid;
}
I'll let you think for the rest of the code.
Reply


Messages In This Thread
Random coords - by cruising - 14.11.2011, 10:28
Re: Random coords - by Pharrel - 14.11.2011, 10:39
Re: Random coords - by Unte99 - 14.11.2011, 10:41
Re: Random coords - by cruising - 14.11.2011, 10:43
Re: Random coords - by Pharrel - 14.11.2011, 10:45
Re : Re: Random coords - by decondelite - 14.11.2011, 10:48
Re: Re : Re: Random coords - by cruising - 14.11.2011, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)