08.12.2011, 23:23
tenta
ai se nao der e suas cordenadas mesmo ai vc segue o tutorial
https://sampforum.blast.hk/showthread.php?tid=164588
ajudei +rep
PHP код:
public locais(playerid)
{
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(playerid,1267.535, 2084.409, 1408.109, 2235.263))
{
DMLiberado2[playerid] = 1;
GangZoneFlashForAll(areadmlv,0xFFFFFFAA);
}
else
{
if(DMLiberado2[playerid] == 1)
{
DMLiberado2[playerid] = 0;
GangZoneStopFlashForAll(areadmlv);
}
}
if(PlayerToPoint(7.0, playerid, 70.4532,1219.1954,18.8117) || PlayerToPoint(7.0, playerid, -90.2719,-1169.9579,2.3964) || PlayerToPoint(7.0, playerid, -2411.5728,976.1896,45.4609) || PlayerToPoint(7.0, playerid, 2114.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.0, playerid, 2638.9553,1107.1788,10.8203) || PlayerToPoint(7.0, playerid, 1595.6233,2199.6162,10.8203) || PlayerToPoint(7.0, playerid, 1940.8671,-1773.2283,13.3906) || PlayerToPoint(5.0, playerid, -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.0, playerid, 1382.3647,459.0785,20.3452) || PlayerToPoint(8.0, playerid, -1675.4781,413.1594,7.1797) || PlayerToPoint(7.0, playerid, 655.5922,-565.3943,16.3359) || PlayerToPoint(7.0, playerid, -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.3771, 1662.789, 619.3304, 1709.206) || PlayerToPoint(7.0, playerid, 1004.1403,-937.8801,42.1797) || PlayerToPoint(7.0, playerid, 2202.1230,2476.8582,10.8203) || PlayerToPoint(6.0, playerid, 417.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;
}
https://sampforum.blast.hk/showthread.php?tid=164588
ajudei +rep