hey, bei dem WoS script, welches ich editiere bleibt das Tacho auch nach dem aussteigen da..
if(newstate == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid,SpeedoBox);
TextDrawShowForPlayer(playerid,SpeedoVehText);
TextDrawShowForPlayer(playerid,SpeedoVeh[playerid]);
TextDrawShowForPlayer(playerid,SpeedoKMHText);
TextDrawShowForPlayer(playerid,SpeedoKMH[playerid]);
TextDrawShowForPlayer(playerid,SpeedoTankText);
TextDrawShowForPlayer(playerid,SpeedoTank[playerid]);
TextDrawShowForPlayer(playerid,SpeedoHealth[playerid]);
TextDrawShowForPlayer(playerid,SpeedoHealthText);
}
if(oldstate == PLAYER_STATE_DRIVER)
{
TextDrawHideForPlayer(playerid,SpeedoBox);
TextDrawHideForPlayer(playerid,SpeedoVehText);
TextDrawHideForPlayer(playerid,SpeedoVeh[playerid]);
TextDrawHideForPlayer(playerid,SpeedoKMHText);
TextDrawHideForPlayer(playerid,SpeedoKMH[playerid]);
TextDrawHideForPlayer(playerid,SpeedoTankText);
TextDrawHideForPlayer(playerid,SpeedoTank[playerid]);
TextDrawHideForPlayer(playerid,SpeedoHealth[playerid]);
TextDrawHideForPlayer(playerid,SpeedoHealthText);
}
Tacho geht nicht weg
- FoX
- Geschlossen
- Erledigt
-
-
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
//Inhalt
}
else
{
//Inhalt
} -
also so?
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid,SpeedoBox);
TextDrawShowForPlayer(playerid,SpeedoVehText);
TextDrawShowForPlayer(playerid,SpeedoVeh[playerid]);
TextDrawShowForPlayer(playerid,SpeedoKMHText);
TextDrawShowForPlayer(playerid,SpeedoKMH[playerid]);
TextDrawShowForPlayer(playerid,SpeedoTankText);
TextDrawShowForPlayer(playerid,SpeedoTank[playerid]);
TextDrawShowForPlayer(playerid,SpeedoHealth[playerid]);
TextDrawShowForPlayer(playerid,SpeedoHealthText);
}
else
{
TextDrawHideForPlayer(playerid,SpeedoBox);
TextDrawHideForPlayer(playerid,SpeedoVehText);
TextDrawHideForPlayer(playerid,SpeedoVeh[playerid]);
TextDrawHideForPlayer(playerid,SpeedoKMHText);
TextDrawHideForPlayer(playerid,SpeedoKMH[playerid]);
TextDrawHideForPlayer(playerid,SpeedoTankText);
TextDrawHideForPlayer(playerid,SpeedoTank[playerid]);
TextDrawHideForPlayer(playerid,SpeedoHealth[playerid]);
TextDrawHideForPlayer(playerid,SpeedoHealthText);
}
da bleibt es immer noch da.. -
du sollst die abfrage durch meine ersetzeten -.-
-
hat er doch omg
-
sry, kenne mich nich so aus:D
vielleicht kanns jemand genauer erklären.. -
öhm zeig mal wie du es hiden lässt und wie du es gemacht hast bei ongamemodeinit
MFG
Spoiler anzeigen PAWN -
Mach es einfach so:
if(newstate == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid,SpeedoBox);
TextDrawShowForPlayer(playerid,SpeedoVehText);
TextDrawShowForPlayer(playerid,SpeedoVeh[playerid]);
TextDrawShowForPlayer(playerid,SpeedoKMHText);
TextDrawShowForPlayer(playerid,SpeedoKMH[playerid]);
TextDrawShowForPlayer(playerid,SpeedoTankText);
TextDrawShowForPlayer(playerid,SpeedoTank[playerid]);
TextDrawShowForPlayer(playerid,SpeedoHealth[playerid]);
TextDrawShowForPlayer(playerid,SpeedoHealthText);
}
if(newstate == PLAYER_STATE_ONFOOT)
{
TextDrawHideForPlayer(playerid,SpeedoBox);
TextDrawHideForPlayer(playerid,SpeedoVehText);
TextDrawHideForPlayer(playerid,SpeedoVeh[playerid]);
TextDrawHideForPlayer(playerid,SpeedoKMHText);
TextDrawHideForPlayer(playerid,SpeedoKMH[playerid]);
TextDrawHideForPlayer(playerid,SpeedoTankText);
TextDrawHideForPlayer(playerid,SpeedoTank[playerid]);
TextDrawHideForPlayer(playerid,SpeedoHealth[playerid]);
TextDrawHideForPlayer(playerid,SpeedoHealthText);
}Dann funktioniert es auch
-
breadfish.de
Hat das Thema geschlossen.