04.03.2017, 01:27
When I go near Los santos's airport's entrance or ahead i get crashed, not me ,everyone who goes near that area. There are no mappings in that area. And only happens if we're in a plane.
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == CG)
{
SetPlayerArmedWeapon(playerid, 0);
}
foreach(new i: Player)
{
if(GetPVarType(i, "pBoomBoxArea"))
{
if(areaid == GetPVarInt(i, "pBoomBoxArea"))
{
new station[256];
GetPVarString(i, "pBoomBoxStation", station, sizeof(station));
if(!isnull(station))
{
PlayAudioStreamForPlayerEx(playerid, station, GetPVarFloat(i, "pBoomBoxX"), GetPVarFloat(i, "pBoomBoxY"), GetPVarFloat(i, "pBoomBoxZ"), 30.0, 1);
}
return 1;
}
}
}
if(areaid == audiourlid)
{
PlayAudioStreamForPlayerEx(playerid, audiourlurl, audiourlparams[0], audiourlparams[1], audiourlparams[2], audiourlparams[3], 1);
}
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid)
{
/* if(areaid == CG)
{
SetPlayerArmedWeapon(playerid, 0);
}
foreach(new i: Player)
{
if(GetPVarType(i, "pBoomBoxArea"))
{
if(areaid == GetPVarInt(i, "pBoomBoxArea"))
{
new station[256];
GetPVarString(i, "pBoomBoxStation", station, sizeof(station));
if(!isnull(station))
{
PlayAudioStreamForPlayerEx(playerid, station, GetPVarFloat(i, "pBoomBoxX"), GetPVarFloat(i, "pBoomBoxY"), GetPVarFloat(i, "pBoomBoxZ"), 30.0, 1);
}
return 1;
}
}
}
if(areaid == audiourlid)
{
PlayAudioStreamForPlayerEx(playerid, audiourlurl, audiourlparams[0], audiourlparams[1], audiourlparams[2], audiourlparams[3], 1);
}
*/
return 1;
}