[FilterScript] SIMPLE EXPLOSIONS
#1

hey,
I created a small system - simple explosions. How do they work? Is simple - if you step on a bomb set up, you will explode. it took a few minutes DD

DOWNLOAD:
Код:
// ========================================================================== //
/*

							SIMPLE EXPLOSIONS

*/
// ========================================================================== //

#include < a_samp >

new Float:bombPlants[3][3] =
{
	{ 145.2020,-71.7623,1.4297 },
	{ 137.1216,-73.8636,1.4297 },
	{ 132.7672,-88.3605,1.4297 }
};

public OnPlayerUpdate( playerid )
{
	IsPlayerInBombPlant( playerid );
	return 1;
}

stock IsPlayerInBombPlant( playerid )
{
	for ( new i = 0; i < 3; i++ )
	{
		if ( IsPlayerInRangeOfPoint(playerid,2.0,bombPlants [ i ] [ 0 ],bombPlants [ i ] [ 1 ],bombPlants [ i ]  [ 2 ] ))
		{
			new Float:pos[ 3 ];
			GetPlayerPos( playerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] );
			CreateExplosion(pos[ 0 ], pos[ 1 ], pos[ 2 ], 2, 1 );
			print( "successful explosion" );
		}
	}
}
Reply


Messages In This Thread
SIMPLE EXPLOSIONS - by organe. - 31.03.2013, 18:33
Re: SIMPLE EXPLOSIONS - by Private200 - 31.03.2013, 18:45
Re: SIMPLE EXPLOSIONS - by FalconeX - 31.03.2013, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)