[AJUDA]ResetPlayerWeapons
#7

Mano as cordenada tб certa, vou postar a public inteira.

Код:
public locais(playerid)
for (new i=0;i<MAX_PLAYERS;i++)
{
    if(IsPlayerConnected(playerid))
    {
        //======================= Favela ==========================
        if(IsPlayerInPlace(playerid,2016.010986, -1161.922363, 2324.010986, -923.518310))
        {
            DMLiberado2[playerid] = 1;
            GangZoneFlashForAll(favela,0xFFFFFFAA);
            GameTextForPlayer(playerid,"DM Liberado",1000,1);
            GivePlayerWeapon(playerid, 24, 999);
            GivePlayerWeapon(playerid, 9, 1);
            GivePlayerWeapon(playerid, 25, 999);
            GivePlayerWeapon(playerid, 26, 999);
            GivePlayerWeapon(playerid, 30, 999);
            GivePlayerWeapon(playerid, 32, 999);

        }
        else
        {
            if(DMLiberado2[playerid] == 1)
            {
                DMLiberado2[playerid] = 0;
                GangZoneStopFlashForAll(favela);
                ResetPlayerWeapons(playerid);
            }
        }
    }
//======================= Area DM LV ==========================
if(IsPlayerInPlace(i,1267.535, 2084.409, 1408.109, 2235.263)){
DMLiberado2[i] = 1;
GangZoneFlashForAll(areadmlv,0xFFFFFFAA);
} else {
if(DMLiberado2[i] == 1){
DMLiberado2[playerid] = 0;
GangZoneStopFlashForAll(areadmlv);
}
}
//
if(PlayerToPoint(7.0, i, 70.4532,1219.1954,18.8117) || PlayerToPoint(7.0, i, -90.2719,-1169.9579,2.3964) || PlayerToPoint(7.0, i, -2411.5728,976.1896,45.4609) || PlayerToPoint(7.0, i, 2114.8413,919.9194,10.8203)){//Fort Carson
GameTextForPlayer(i,"~h~~w~Posto ~y~Petobras ~n~ Digite~r~/~r~abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}
if (PlayerToPoint(7.0, i, 2638.9553,1107.1788,10.8203) || PlayerToPoint(7.0, i, 1595.6233,2199.6162,10.8203) || PlayerToPoint(7.0, i, 1940.8671,-1773.2283,13.3906) || PlayerToPoint(5.0, i, -2243.8435,-2560.5598,31.9219)){//Posto LV
GameTextForPlayer(i,"~h~~w~Posto ~y~Shell ~n~Digite~r~/abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}
if (PlayerToPoint(7.0, i, 1382.3647,459.0785,20.3452) || PlayerToPoint(8.0, i, -1675.4781,413.1594,7.1797) || PlayerToPoint(7.0, i, 655.5922,-565.3943,16.3359) || PlayerToPoint(7.0, i, -1606.3616,-2713.5872,48.5335)){//Posto LS/SF
GameTextForPlayer(i,"~h~~w~Posto ~y~Ipiranga ~n~Digite~r~/abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}
if(IsPlayerInPlace(i,576.3771, 1662.789, 619.3304, 1709.206) || PlayerToPoint(7.0, i, 1004.1403,-937.8801,42.1797) || PlayerToPoint(7.0, i, 2202.1230,2476.8582,10.8203) || PlayerToPoint(6.0, i, 417.2369,-1912.7708,1.5641)){//Posto acima FC
GameTextForPlayer(i,"~w~Posto ~y~Texaco ~n~Digite~r~/abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}
}
}
}
}
}
Nгo й identado porque й GM MUCA.
Reply


Messages In This Thread
[AJUDA]ResetPlayerWeapons - by RedBulL_x - 08.12.2011, 19:43
Re: [AJUDA]ResetPlayerWeapons - by Bruno[]Lima - 08.12.2011, 20:40
Respuesta: [AJUDA]ResetPlayerWeapons - by RedBulL_x - 08.12.2011, 22:08
Re: [AJUDA]ResetPlayerWeapons - by lucas_mdr1235 - 08.12.2011, 22:49
Respuesta: [AJUDA]ResetPlayerWeapons - by RedBulL_x - 08.12.2011, 23:02
Re: [AJUDA]ResetPlayerWeapons - by lucas_mdr1235 - 08.12.2011, 23:07
Respuesta: [AJUDA]ResetPlayerWeapons - by RedBulL_x - 08.12.2011, 23:13
Re: [AJUDA]ResetPlayerWeapons - by lucas_mdr1235 - 08.12.2011, 23:23
Respuesta: [AJUDA]ResetPlayerWeapons - by RedBulL_x - 08.12.2011, 23:24
Re: [AJUDA]ResetPlayerWeapons - by lucas_mdr1235 - 08.12.2011, 23:26

Forum Jump:


Users browsing this thread: 1 Guest(s)