SA-MP Forums Archive
[Pedido] Sistema de favela - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Sistema de favela (/showthread.php?tid=615815)



Sistema de favela - OtimoJogo - 27.08.2016

Sistema de favela com armas automбtica ao entrar.
Tipo quando o player entrar em uma GangZone ele receber armas e ao sair reset as armas


Re: Sistema de favela - iSoaD - 28.08.2016

amigo olha isso aqui


Re: Sistema de favela - Carlos001 - 28.08.2016

https://sampforum.blast.hk/showthread.php?tid=276352
http://forum.sa-mp.com/showthread.ph...o+criar+guerra
forum.sa-mp.com/showthread.php?t=279168
So estudar й fazer o Seu =)


Re: Sistema de favela - OtimoJogo - 28.08.2016

Eu tenho esse codigo aqui sу que ele ficar atualizado as armas pelo o settimer,
como fazer para o settimer para de atualizar quando ele entrar na favela?
Quote:

public LocalFavela(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X >= 2021.7699 && Y >= -1153.7277 && X <=2279.1223 && Y <= -949.7124 )
{
GivePlayerWeapon(playerid,24,9999);

}
else
{
ResetPlayerWeapons(playerid);
}
return 1;

}




Respuesta: Sistema de favela - SammyJ - 28.08.2016

Fiz rбpido aqui, nгo da para testar agora, qualquer erro avise.
PHP код:
new bool:PlayerInFavela[MAX_PLAYERS];

public 
LocalFavela(playerid)
{
    new 
Float:X, Float:Y, Float:Z;
    
GetPlayerPos(playerid, X, Y, Z);
    if(
X >= 2021.7699 && Y >= -1153.7277 && X <=2279.1223 && Y <= -949.7124)
    {
        if(!
PlayerInFavela[playerid]){
            
GivePlayerWeapon(playerid,24,9999);
            
PlayerInFavela[playerid] = true;
        }
        return 
1;
    }
    else
    {
        
ResetPlayerWeapons(playerid);
        
PlayerInFavela[playerid] = false;
    }
    return 
1;

} 



Re: Sistema de favela - OtimoJogo - 29.08.2016

Obrigado Glederson_Dom Funcionou direitinho vlw mesmo. +rep