pawn Код:
forward CreatePlayerExplosion( playerid, &Float:x, &Float:y, &Float:z );
public CreatePlayerExplosion( playerid, &Float:x, &Float:y, &Float:z )
{
CreateExplosion( Float:x, Float:y, Float:z, 6, 15.0 );
return true;
}
public OnPlayerCommandText( playerid,cmdtext[] )
{
if ( !strcmp ( cmdtext, "/bomb", true ) )
{
new
Float: P[ 3 ];
GetPlayerPos( playerid, P[ 0 ], P[ 1 ], P[ 2 ] );
SetTimerEx( "CreatePlayerExplosion", 5000, false, "dfff", playerid, P[ 0 ], P[ 1 ], P[ 2 ] );
SendClientMessage( playerid, -1,"Area is going to blow in 5 seconds" );
return true;
}
return false;
}