Quote:
Originally Posted by Twisted_Insane
Dude, I think you're a bit confused! xD
First of all, why 0?
PHP код:
new DeathPickups[MAX_DEATH_PICKUPS] = 0;
Secondly, why random positions?
PHP код:
DeathPickups[stck] = CreatePickup(1274, 1, pPos[0]+random(5), pPos[1]+random(5), pPos[2]);
|
I'm not confused, it's 0, because the array stocks contain no death pickups when gamemode starts. And as you see, in the loop, script checks the for free slots to place a new one. So then more pickups can be exist at the same time and it will track all of them.
Secondly, the random values are because in normal GTA San Andreas money pickups appear around the place where npcs die and I wanted to make something like that.
+ You said:
Quote:
Originally Posted by Twisted_Insane
there should be a pickup near him
|