[AJUDA]ResetPlayerWeapons
#8

tenta
PHP код:
public locais(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        
//======================= Favela ==========================
        
if(IsPlayerInPlace(playerid,2016.010986, -1161.9223632324.010986, -923.518310))
        {
            
DMLiberado2[playerid] = 1;
            
GangZoneFlashForAll(favela,0xFFFFFFAA);
            
GameTextForPlayer(playerid,"DM Liberado",1000,1);
            
GivePlayerWeapon(playerid24999);
            
GivePlayerWeapon(playerid91);
            
GivePlayerWeapon(playerid25999);
            
GivePlayerWeapon(playerid26999);
            
GivePlayerWeapon(playerid30999);
            
GivePlayerWeapon(playerid32999);

        }
        else
        {
            if(
DMLiberado2[playerid] == 1)
            {
                
DMLiberado2[playerid] = 0;
                
GangZoneStopFlashForAll(favela);
                
ResetPlayerWeapons(playerid);
            }
        }
        
//======================= Area DM LV ==========================
        
if(IsPlayerInPlace(playerid,1267.5352084.4091408.1092235.263))
        {
            
DMLiberado2[playerid] = 1;
            
GangZoneFlashForAll(areadmlv,0xFFFFFFAA);
        }
        else
        {
            if(
DMLiberado2[playerid] == 1)
            {
                
DMLiberado2[playerid] = 0;
                
GangZoneStopFlashForAll(areadmlv);
            }
        }
        if(
PlayerToPoint(7.0playerid70.4532,1219.1954,18.8117) || PlayerToPoint(7.0playerid, -90.2719,-1169.9579,2.3964) || PlayerToPoint(7.0playerid, -2411.5728,976.1896,45.4609) || PlayerToPoint(7.0playerid2114.8413,919.9194,10.8203))
        {
            
GameTextForPlayer(playerid,"~h~~w~Posto ~y~Petobras ~n~ Digite~r~/~r~abastecer",3000,4);
            
AreaPosto[playerid] = 1;
        }
        else
        {
            if(
AreaPosto[playerid] == 1)
            {
                
AreaPosto[playerid] = 0;
            }
        }
        if (
PlayerToPoint(7.0playerid2638.9553,1107.1788,10.8203) || PlayerToPoint(7.0playerid1595.6233,2199.6162,10.8203) || PlayerToPoint(7.0playerid1940.8671,-1773.2283,13.3906) || PlayerToPoint(5.0playerid, -2243.8435,-2560.5598,31.9219))
        {
            
GameTextForPlayer(playerid,"~h~~w~Posto ~y~Shell ~n~Digite~r~/abastecer",3000,4);
            
AreaPosto[playerid] = 1;
        }
        else
        {
            if(
AreaPosto[playerid] == 1)
            {
                
AreaPosto[playerid] = 0;
            }
        }
        if (
PlayerToPoint(7.0playerid1382.3647,459.0785,20.3452) || PlayerToPoint(8.0playerid, -1675.4781,413.1594,7.1797) || PlayerToPoint(7.0playerid655.5922,-565.3943,16.3359) || PlayerToPoint(7.0playerid, -1606.3616,-2713.5872,48.5335))
        {
            
GameTextForPlayer(playerid,"~h~~w~Posto ~y~Ipiranga ~n~Digite~r~/abastecer",3000,4);
            
AreaPosto[playerid] = 1;
        }
        else
        {
            if(
AreaPosto[playerid] == 1)
            {
                
AreaPosto[playerid] = 0;
            }
        }
        if(
IsPlayerInPlace(playerid,576.37711662.789619.33041709.206) || PlayerToPoint(7.0playerid1004.1403,-937.8801,42.1797) || PlayerToPoint(7.0playerid2202.1230,2476.8582,10.8203) || PlayerToPoint(6.0playerid417.2369,-1912.7708,1.5641))
        {
            
GameTextForPlayer(playerid,"~w~Posto ~y~Texaco ~n~Digite~r~/abastecer",3000,4);
            
AreaPosto[playerid] = 1;
        }
        else
        {
            if(
AreaPosto[playerid] == 1)
            {
                
AreaPosto[playerid] = 0;
            }
        }
    }
    return 
1;

ai se nao der e suas cordenadas mesmo ai vc segue o tutorial
https://sampforum.blast.hk/showthread.php?tid=164588

ajudei +rep
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)