Hallo Zusammen,
ich will die Tank anzeige woanderes hin haben auserdem will ich das die durchgehend angezeigt wird :P..... wie mache ich das
Hier mein aktuelles script:
public CheckGas()
{
new string[256];
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
if(Gas[vehicle] >= 1)
{
if(Gas[vehicle] <= 10) { PlayerPlaySound(i, 1085, 0.0, 0.0, 0.0); }
if(gGas[i] == 1) {
format(string, sizeof(string), "~w~~n~~n~~n~~n~~n~~n~~n~~n~~r~Tank:~w~ %d%",Gas[vehicle]);
GameTextForPlayer(i,string,0, 3); }
if(IsAPlane(vehicle) || IsABoat(vehicle)) { Gas[vehicle]++; }
Gas[vehicle]--;
}
else
{
NoFuel[i] = 1;
TogglePlayerControllable(i, 0);
GameTextForPlayer(i,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Tank ist leer~n~Gib /exit ein, zum verlassen.",1500,3);
}
}
}
}
return 1;
}