15.04.2015, 19:38
How can I put these objects in a loop? I need to farmer job, just go to the last object.
PHP код:
new Float: X, Float: Y, Float: Z;
GetPlayerPos( i, X, Y, Z );
object = CreateObject( 872, X, Y, Z-1, 0.00000, 0.00000, 0.00000 );
w Float:x1, Float:y1, Float:z1;
GetObjectPos(object, x1, y1, z1);
if( PlayerToPoint ( 5.0, i, x1, y1, z1 ) )
{
DestroyObject( object );
new Float: X, Float: Y, Float: Z;
GetPlayerPos( i, X, Y, Z );
altobject = CreateObject( 2901, X, Y, Z, 0.00000, 0.00000, 0.00000 );
}