SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 23/06/2016, 08:22 PM   #1
Pretiosum
Little Clucker
 
Join Date: Jun 2016
Posts: 1
Reputation: 0
Post Favela

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
Pretiosum is offline   Reply With Quote
Old 23/06/2016, 09:03 PM   #2
aszarth
Little Clucker
 
Join Date: Jan 2015
Posts: 37
Reputation: 22
Default Re: Favela

Code:
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;
}
Code:
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.

http://wiki.sa-mp.com/wiki/OnPlayerDeath_PT
__________________
aszarth is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Map] Favela Jefferson Santos Lançamentos/Releases 16 12/04/2013 11:21 AM
[Map] Favela - SF Baiano Lançamentos/Releases 17 02/10/2012 10:30 PM
[Map] Favela Felipe_Freeze Lançamentos/Releases 19 01/08/2012 01:35 PM
[Map] Favela Jorge_Hard Lançamentos/Releases 25 24/02/2011 03:32 PM


All times are GMT. The time now is 04:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.