OnGameModeInit
/*Textdraws*/
SpeedoBox = TextDrawCreate(623.000000, 324.000000, " .");
TextDrawBackgroundColor(SpeedoBox, 255);
TextDrawFont(SpeedoBox, 1);
TextDrawLetterSize(SpeedoBox, 27.410072, 1.000000);
TextDrawColor(SpeedoBox, -1);
TextDrawSetOutline(SpeedoBox, 0);
TextDrawSetProportional(SpeedoBox, 1);
TextDrawSetShadow(SpeedoBox, 1);
TextDrawUseBox(SpeedoBox, 1);
TextDrawBoxColor(SpeedoBox, 50);
TextDrawTextSize(SpeedoBox, 511.000000, -7.000000);
SpeedoVehText = TextDrawCreate(516.000000, 322.000000, "Fahrzeug:");
TextDrawBackgroundColor(SpeedoVehText, 255);
TextDrawFont(SpeedoVehText, 2);
TextDrawLetterSize(SpeedoVehText, 0.320000, 1.000000);
TextDrawColor(SpeedoVehText, 75366399);
TextDrawSetOutline(SpeedoVehText, 1);
TextDrawSetProportional(SpeedoVehText, 1);
SpeedoTankText = TextDrawCreate(516.000000, 376.000000, "Tank:");
TextDrawBackgroundColor(SpeedoTankText, 255);
TextDrawFont(SpeedoTankText, 2);
TextDrawLetterSize(SpeedoTankText, 0.320000, 1.000000);
TextDrawColor(SpeedoTankText, 75366399);
TextDrawSetOutline(SpeedoTankText, 1);
TextDrawSetProportional(SpeedoTankText, 1);
SpeedoKMHText = TextDrawCreate(516.000000, 349.000000, "KM/H:");
TextDrawBackgroundColor(SpeedoKMHText, 255);
TextDrawFont(SpeedoKMHText, 2);
TextDrawLetterSize(SpeedoKMHText, 0.320000, 1.000000);
TextDrawColor(SpeedoKMHText, 75366399);
TextDrawSetOutline(SpeedoKMHText, 1);
TextDrawSetProportional(SpeedoKMHText, 1);
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
SpeedoVeh[playerid] = TextDrawCreate(516.000000, 333.000000, " ");
TextDrawBackgroundColor(SpeedoVeh[playerid], 255);
TextDrawFont(SpeedoVeh[playerid], 2);
TextDrawLetterSize(SpeedoVeh[playerid], 0.320000, 1.000000);
TextDrawColor(SpeedoVeh[playerid], -1);
TextDrawSetOutline(SpeedoVeh[playerid], 1);
TextDrawSetProportional(SpeedoVeh[playerid], 1);
SpeedoKMH[playerid] = TextDrawCreate(516.000000, 360.000000, " ");
TextDrawBackgroundColor(SpeedoKMH[playerid], 255);
TextDrawFont(SpeedoKMH[playerid], 2);
TextDrawLetterSize(SpeedoKMH[playerid], 0.320000, 1.000000);
TextDrawColor(SpeedoKMH[playerid], -1);
TextDrawSetOutline(SpeedoKMH[playerid], 1);
TextDrawSetProportional(SpeedoKMH[playerid], 1);
SpeedoTank[playerid] = TextDrawCreate(516.000000, 387.000000, " ");
TextDrawBackgroundColor(SpeedoTank[playerid], 255);
TextDrawFont(SpeedoTank[playerid], 2);
TextDrawLetterSize(SpeedoTank[playerid], 0.320000, 1.000000);
TextDrawColor(SpeedoTank[playerid], -1);
TextDrawSetOutline(SpeedoTank[playerid], 1);
TextDrawSetProportional(SpeedoTank[playerid], 1);
}
/*Timer*/
SetTimer("UpdateSpeedo",1000,1);
SetTimer("SpeedoMeter",1000,1);
SetTimer("CheckGas",30000,1);
for(new c = 0; c < CAR_AMOUNT; c++)
{
Gas[code=c] = GasMax;
}
Copyright = TextDrawCreate(27.000000, 424.000000,"TS3: 1lkw-kirmes.4np.de");
TextDrawBackgroundColor(Copyright, 255);
TextDrawFont(Copyright, 2);
TextDrawLetterSize(Copyright, 0.340000, 1.600000);
TextDrawColor(Copyright, -1);
TextDrawSetOutline(Copyright, 1);
TextDrawSetProportional(Copyright, 1);
TextDrawShowForAll(Copyright);
Ts3 = TextDrawCreate(372.000000,429.000000,"Forum: 1lkw-kirmes.de");
TextDrawAlignment(Ts3,0);
TextDrawBackgroundColor(Ts3,0xffffffcc);
TextDrawFont(Ts3,3);
TextDrawLetterSize(Ts3,0.599999,1.000000);
TextDrawColor(Ts3,0x000000ff);
TextDrawSetOutline(Ts3,1);
TextDrawSetProportional(Ts3,1);
TextDrawSetShadow(Ts3,1);
TextDrawShowForAll(Ts3);
Datum = TextDrawCreate(504.000000, 3.000000, "00.00.0000");
TextDrawBackgroundColor(Datum, 16777215);
TextDrawFont(Datum, 3);
TextDrawLetterSize(Datum, 0.539999, 1.900000);
TextDrawColor(Datum, 255);
TextDrawSetOutline(Datum, 0);
TextDrawSetProportional(Datum, 1);
TextDrawSetShadow(Datum, 0);
SetTimer("UpdateDatum",100000000,1);
OnPlayerSpawn
TextDrawShowForPlayer(playerid,Copyright);
TextDrawShowForPlayer(playerid,TS3);
OnPlayerStateChange
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]);
}
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]);
Wüste net genau was du/ihr Braucht
//edit
wen wer Will kann er sich das auch Per TV anschauen Daten Per PN den
//edit
Fehler gefunden