SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 04/02/2017, 02:44 PM   #1
LuanGamer
Big Clucker
 
Join Date: Oct 2016
Posts: 76
Reputation: 0
Default Area neutra no mapa

Boa tarde, utilizei esse editor http://x337.us/gz/ testei e realmente funciona, só não consegui adaptar para ao invés de ser uma gangzone ser somente uma marcação em azul no mapa, para que todos identifiquem a área neutra. Se puder me ajudar:

Coordenadas:
Code:
GangZoneCreate(1043.2662963867188, -1847.16796875, 1182.4264526367188, -1718.26171875);
E o código para exportar a gangzone caso precisar de alguma informação:
PHP Code:
#include <a_samp>

#define MAX_GANGZONE 1

enum e_Zones {
    
Float:zoneminx// gang zone minx
    
Float:zoneminy// gang zone miny
    
Float:zonemaxx// gang zone maxx
    
Float:zonemaxy// gang zone maxx
    
zonecolor// gang zone color
    
zoneid // gang zone id
}

new 
g_ZoneData[MAX_GANGZONE][e_Zones] = {
    
// Float:zoneminx, Float:zoneminy, Float:zonemaxx, Float:zonemaxy, zonecolor, zoneid
    
{1043.2662963867188, -1847.167968751182.4264526367188, -1718.261718750x00f7ffff// Respawn Civil
    
};


public 
OnGameModeInit()
{
    for(new 
iMAX_GANGZONEi++) // Loop every gang zone data and create them...
    
{
        
g_ZoneData[i][zoneid] = GangZoneCreate(g_ZoneData[i][zoneminx], g_ZoneData[i][zoneminy], g_ZoneData[i][zonemaxx], g_ZoneData[i][zonemaxy]);
    }

    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    for(new 
iMAX_GANGZONEi++) // Loop every gang zone data and show them to playerid...
    
{
        
GangZoneShowForPlayer(playeridg_ZoneData[i][zoneid], g_ZoneData[i][zonecolor]);
    }
    return 
1;

LuanGamer is offline   Reply With Quote
Old 04/02/2017, 04:18 PM   #2
FallweN
Huge Clucker
 
FallweN's Avatar
 
Join Date: Jan 2014
Location: Search on Google
Posts: 444
Reputation: 98
Default Re: Area neutra no mapa

PHP Code:
public OnPlayerConnect(playerid

    for(new 
iMAX_GANGZONEi++) // Loop every gang zone data and show them to playerid... 
    

        
GangZoneShowForPlayer(playeridg_ZoneData[i][zoneid], 0x00f7ffff); 
    } 
    return 
1

__________________

[Tool/Web/Other]
User Control Panel
[GameMode] The Brasil Drift
FallweN 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
[Ajuda] Dúvida área neutra LuanGamer Português/Portuguese 2 31/01/2017 07:26 PM
[Ajuda] Área Neutra Eiffel Português/Portuguese 14 20/01/2017 06:55 PM
[Ajuda] àrea neutra. fdsda Português/Portuguese 2 13/10/2015 04:56 AM
[Map] My first map [party area and on the roof fighting area] pagalcena Maps 3 08/03/2013 11:06 AM


All times are GMT. The time now is 01:39 PM.


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