CAN YOU DO THIS?
#6

top:
Код:
new object[50];
ongamemodeinit:
Код:
new i = 0;
object[i] = CreateObject(etc);
object[i++] = CreateObject(etc);
etc so forth
Checking:
Код:
new Float:objectX, Float:objectY, Float:objectX;
new Float: playerX, playerY, playerZ;
GetPlayerPos(playerid, playerX, playerY, PlayerZ);
for(new i = 0; i < sizeof(object); i++)
{
   GetObjectPos(object[i], objectX, objectY, objectZ);
   //now use your IsPlayerInProx or whatever code to see if playerX is within a certain distance of objectX. Same with objectY. IGNORE object and player Z value
}
Reply


Messages In This Thread
CAN YOU DO THIS? - by shady91 - 28.06.2009, 12:58
Re: is this possible? Swift_ read this i no you do quick response reply ol ;) - by dice7 - 28.06.2009, 13:04
Re: is this possible? Swift_ read this i no you do quick response reply ol ;) - by shady91 - 28.06.2009, 13:08
Re: CAN YOU DO THIS? - by Moustafa - 30.06.2009, 14:51
Re: CAN YOU DO THIS? - by NeRoSiS - 30.06.2009, 14:56
Re: CAN YOU DO THIS? - by kaisersouse - 30.06.2009, 15:13
Re: CAN YOU DO THIS? - by shady91 - 03.08.2009, 18:17
Re: CAN YOU DO THIS? - by shady91 - 07.08.2009, 22:35
Re: CAN YOU DO THIS? - by shady91 - 08.08.2009, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)