public ILS(playerid)
{
PlayerTextDrawShow(playerid,ILS1[playerid]);
PlayerTextDrawShow(playerid,ILS2[playerid]);
PlayerTextDrawShow(playerid,ILS3[playerid]);
PlayerTextDrawShow(playerid,ILS4[playerid]);
PlayerTextDrawShow(playerid,ILS5[playerid]);
new Float:ilsX,Float:ilsY,Float:ilsZ;
GetPlayerPos(playerid,ilsX,ilsY,ilsZ);
if(ilsZ < 30.8203)
{
PlayerTextDrawColor(playerid, ILS5[playerid], COLOR_RED);
PlayerTextDrawColor(playerid, ILS4[playerid], COLOR_WHITE);
return 1;
}
else if(ilsZ < 20.8203)
{
PlayerTextDrawColor(playerid, ILS5[playerid], COLOR_WHITE);
PlayerTextDrawColor(playerid, ILS4[playerid], COLOR_RED);
PlayerTextDrawColor(playerid, ILS3[playerid], COLOR_WHITE);
return 1;
}
else if(ilsZ < 10.8203)
{
PlayerTextDrawColor(playerid, ILS4[playerid], COLOR_WHITE);
PlayerTextDrawColor(playerid, ILS3[playerid], COLOR_RED);
PlayerTextDrawColor(playerid, ILS2[playerid], COLOR_WHITE);
return 1;
}
else if(ilsZ > 9.8203)
{
PlayerTextDrawColor(playerid, ILS3[playerid], COLOR_WHITE);
PlayerTextDrawColor(playerid, ILS2[playerid], COLOR_RED);
PlayerTextDrawColor(playerid, ILS1[playerid], COLOR_WHITE);
return 1;
}
else if(ilsZ > 8.8203)
{
PlayerTextDrawColor(playerid, ILS2[playerid], COLOR_WHITE);
PlayerTextDrawColor(playerid, ILS1[playerid], COLOR_RED);
return 1;
}
return 1;
}
Hast du es überhaupt probiert...?