[Ajuda] 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: [Ajuda] Favela (
/showthread.php?tid=610421)
Favela -
Pretiosum - 23.06.2016
Ola eu n entendo nada de pawno,sou curioso tento mexer mais n da certo

,,,,Bom eu queria no gm a favela GZ_Favela = GangZoneCreate(2059.889648, -1158.775512, 2299.889648, -958.775512);
queria saber como coloca um local p quando morrer na favela nascer do lado dela,e um ponto p comprar armas,,texto na tela quando entra na favela ''matou morreu'' e favela-DM liberado.......caso alguem qser ajudar me passa o email,,,,,contato somente por email...obg pela atenзao
Re: Favela -
aszarth - 23.06.2016
Код:
stock IsPlayerInFavela(playerid) {
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 2059.889648 && y >= -1158.775512 && x <= 2299.889648 && y <= -958.775512) return 1;
else return 0;
}
Код:
if(IsPlayerInFavela(playerid)) {
// jogador estб na favela
}
else if(!IsPlayerInFavela(playerid)) {
// jogador nгo estб na favela
}
Pegue essa base e tente fazer em onplayerdeath.
https://sampwiki.blast.hk/wiki/OnPlayerDeath_PT