[Ajuda] Proibir atirar em certos locais
#1

tem como eu fazer no samp igual no mta proibir atirar em alguns locais? , se tiver alguem me passa um code ae como fazer isso.. agradeзo
Reply
#2

PHP код:
new Float:Health[MAX_PLAYERS];
public 
OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    if(
damagedid != INVALID_PLAYER_ID)
    {
        if(
IsPlayerInRangeOfPoint(playerid, 30.0, PosX, PosY, PosZ))
        {
            
GetPlayerHealth(damageid, Health[damageid]);
            
GetPlayerHealth(playerid, Health[playerid])
            
GameTextForPlayer(playerid, "~r~~h~PROIBIDO ~w~USO DE ARMA~r~~h~!", 5000, 3);
            
SetPlayerHealth(damageid, Health[damageid]);
            
SetPlayerHealth(playerid, (Health[playerid]-10));
            
SendClientMessage(playerid, -1, "[ ATENCAO ] Vocк perdeu 10 de vida por atirar em local proibido!");
        }
    }
    return 
1;
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)