12.12.2011, 00:29
Mano atй modifiquei teu CODE, Fico assim.
Stock
E Nгo deu certo ¬.¬'
Stock
PHP код:
stock IsPlayerInFavela(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 2117.333 && y >= -1069.962 && x <= 2261.841 && y <= -959.4252) return 1;
else return 0;
}
PHP код:
public CheckFavela(playerid)
{
for(new i,j = GetMaxPlayers(); i!=j; i++)
{
if(IsPlayerConnected(i))
{
//======================= Favela ==========================
if(IsPlayerInFavela(playerid))
{
GangZoneFlashForAll(favela,0xFFFFFFAA);
GameTextForPlayer(i,"DM Liberado",1000,1);
GivePlayerWeapon(i, 24, 999);
GivePlayerWeapon(i, 9, 1);
GivePlayerWeapon(i, 25, 999);
GivePlayerWeapon(i, 26, 999);
GivePlayerWeapon(i, 30, 999);
GivePlayerWeapon(i, 32, 999);
}
else
{
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(favela);
ResetPlayerWeapons(playerid);
}
}
}
return 1;
}