Guten Morgen,
mach es so, sollte einwandfrei funktionieren.
if(IsPlayerInRangeOfPoint....)
{
}
else if(IsPlayerInRangeOfPoint....)
{
}
else if(IsPlayerInRangeOfPoint....)
{
}
Am Ende sollte es ca. so aussehen.
else if(IsPlayerInRangeOfPoint(playerid,7.0,1247.19995117,-767.29998779,92.40000153)) //lcn tor
{
if(!IsPlayerInFrac(playerid,5))
{
return 1;
}
if(lcnvar == 0)
{
MoveDynamicObject(lcntor1,1247.19995117,-767.29998779,89.59999847,2.0);
MoveDynamicObject(lcntor11,1243.89941406,-767.29980469,89.59999847,2.0);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcnvar = 1;
}
else
{
MoveDynamicObject(lcntor1,1247.19995117,-767.29998779,92.40000153,2.0);
MoveDynamicObject(lcntor11,1243.90002441,-767.29998779,92.40000153,2.0);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcnvar = 0;
}
}
else if(IsPlayerInRangeOfPoint(playerid,10.0,-2613.10009766,1355.30004883,5.90000010))
{
if(!IsPlayerInFrac(playerid,6))
{
return 1;
}
if(yakvar == 0)
{
MoveObject(yaktor,-2613.10009766,1355.30004883,-0.30000001,2.0);
SetTimerEx("PlaySoundForPlayer",3000,0,"id",playerid,1036);
yakvar = 1;
}
else
{
MoveObject(yaktor,-2613.10009766,1355.30004883,5.90000010,2.0);
SetTimerEx("PlaySoundForPlayer",3000,0,"id",playerid,1036);
yakvar = 0;
}
}
----------
Mit freundlichen Grüßen,
[GGR]Radio_Bot