16.04.2015, 06:53
timers are made.
PHP код:
forward Farmer( );
public Farmer( )
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new playerVehicle = GetPlayerVehicleID( i );
if( playerVehicle == FarmerJob[ 4 ] || playerVehicle == FarmerJob[ 5 ] || playerVehicle == FarmerJob[ 6 ] || playerVehicle == FarmerJob[ 6 ] || playerVehicle == FarmerJob[ 7 ] || playerVehicle == FarmerJob[ 8 ] || playerVehicle == FarmerJob[ 9 ] )
{
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 );
}
}
return 1;
}
forward Farmer1 ( );
public Farmer1 ( )
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new playerVehicle = GetPlayerVehicleID( i );
if( playerVehicle == FarmerJob[ 0 ] || playerVehicle == FarmerJob[ 1 ] || playerVehicle == FarmerJob[ 2 ] || playerVehicle == FarmerJob[ 3 ] )
{
new Float:x1, Float:y1, Float:z1;
GetObjectPos(object, x1, y1, z1);
if( PlayerToPoint ( 10.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 );
}
}
}
return 1;
}