11.06.2013, 18:16
PHP код:
forward ChecarArma ( playerid ) ; public ChecarArma ( playerid )
{
for ( new e = 0; e <= MAX_PLAYERS; e++)
{
if ( GetPlayerInterior ( i ) > 0 )
{
if ( GetPlayerWeapon ( i ) == 16 || GetPlayerWeapon ( i ) == 35 || GetPlayerWeapon ( i ) == 38 ) // Granada, Bazuuca, Minigun
{
SendClientMessage ( i, -1, "Arma proibida use fora do interior" ) ;
SetPlayerArmedWeapon ( i, 0 ) ;
}
}
}
}
// OnGameModeInit
SetTimer("ChecarArma", 1000, 1) ;