10.01.2015, 18:16
Hello!
I want to do this, if i have 3 object maked.
Then if i touch some object.
I don't understand how do make this.
Need using loops or something?
I want to do this, if i have 3 object maked.
pawn Код:
new Object[3];
Object[0] = CreateObject(3409, x, y, z, - 1.3, 0.0, 0.0);
Object[1] = CreateObject(3409, x, y, z, - 1.3, 0.0, 0.0);
Object[2] = CreateObject(3409, x, y, z, - 1.3, 0.0, 0.0);
pawn Код:
public removeObjects()
{
foreach (new i : Player)
{
if(IsPlayerInRangeOfPoint(i, 1, x, y, z)) // I dont know what do add here.
{
DestroyObject(Object[something here]); // And here.
}
}
return 1;
}
Need using loops or something?