23.02.2012, 16:39
no cmd
Da sniper nгo sei muito bem, mais tenta ae
pawn Код:
if ( IsPlayerInRangeOfPoint( playerid , Raio , x , y , z ) ) {
return SendClientMessage ( playerid , -1 , " Nгo pode usar esse CMD aqui ^^ " );
pawn Код:
public OnPlayerTakeDamage ( playerid , issuerid , Float: amount , weaponid ) {
if( GetPlayerWeapon ( issuerid ) == 34 && GetDistanceBetweenPlayers(issuerid , playerid ) < Distancia ) {
SendClientMessage ( issuerid , -1 , " Nao pode atirar de sniper prуximo б alguem " );
SetPlayerAmmo ( issuerid , 34 , 0 );
}
return true;
}