Hallo Zusammen,
komisch das Nuelinge die Textdras wie Tacho oder so nicht sehen, wenn ich ihnen dann Admin 2000 gebe schon O.o? Es ist keine Admin Anfrage drinnen garnichts, ich verstehe das nicht hat wer nen Plan, Bug wo schon jemand gehabt hatte außer ich?
Hier:
OnGameModeInit
//=========== Speedo =========//
tBack1 = TextDrawCreate(638.000000, 362.000000, "_");
TextDrawBackgroundColor(tBack1, 255);
TextDrawFont(tBack1, 1);
TextDrawLetterSize(tBack1, 1.000000, 9.000000);
TextDrawSetProportional(tBack1, 1);
TextDrawUseBox(tBack1, 1);
TextDrawBoxColor(tBack1, 68);
TextDrawTextSize(tBack1, 534.000000, -26.000000);
tBack2 = TextDrawCreate(640.000000, 360.000000, "_");
TextDrawBackgroundColor(tBack2, 255);
TextDrawFont(tBack2, 1);
TextDrawLetterSize(tBack2, 1.000000, 9.500001);
TextDrawSetProportional(tBack2, 1);
TextDrawUseBox(tBack2, 1);
TextDrawBoxColor(tBack2, 68);
TextDrawTextSize(tBack2, 532.000000, -29.000000);
//Tacho
for(new playerid=0; playerid < MAX_PLAYERS; playerid++)
{
tMotor[playerid] = TextDrawCreate(548.000000, 430.000000, "[~g~Motor~w~]");
TextDrawBackgroundColor(tMotor[playerid], 255);
TextDrawFont(tMotor[playerid], 1);
TextDrawLetterSize(tMotor[playerid], 0.250000, 1.200000);
TextDrawColor(tMotor[playerid], -1);
TextDrawSetOutline(tMotor[playerid], 1);
TextDrawSetProportional(tMotor[playerid], 1);
tZustand[playerid] = TextDrawCreate(610.000000, 370.000000, "Zustand:~n~--- %");
TextDrawAlignment(tZustand[playerid], 2);
TextDrawBackgroundColor(tZustand[playerid], 255);
TextDrawFont(tZustand[playerid], 1);
TextDrawLetterSize(tZustand[playerid], 0.250000, 1.200000);
TextDrawColor(tZustand[playerid], -1);
TextDrawSetOutline(tZustand[playerid], 1);
TextDrawSetProportional(tZustand[playerid], 1);
tSpeed[playerid] = TextDrawCreate(545.000000, 398.000000, "Geschw.: --- Km/h");
TextDrawBackgroundColor(tSpeed[playerid], 255);
TextDrawFont(tSpeed[playerid], 1);
TextDrawLetterSize(tSpeed[playerid], 0.250000, 1.200000);
TextDrawColor(tSpeed[playerid], -1);
TextDrawSetOutline(tSpeed[playerid], 1);
TextDrawSetProportional(tSpeed[playerid], 1);
tLicht[playerid] = TextDrawCreate(596.000000, 430.000000, "[~r~Licht~w~]");
TextDrawBackgroundColor(tLicht[playerid], 255);
TextDrawFont(tLicht[playerid], 1);
TextDrawLetterSize(tLicht[playerid], 0.250000, 1.200000);
TextDrawColor(tLicht[playerid], -1);
TextDrawSetOutline(tLicht[playerid], 1);
TextDrawSetProportional(tLicht[playerid], 1);
tName[playerid] = TextDrawCreate(631.000000, 345.000000, "Uranus");
TextDrawAlignment(tName[playerid], 3);
TextDrawBackgroundColor(tName[playerid], 255);
TextDrawFont(tName[playerid], 0);
TextDrawLetterSize(tName[playerid], 0.559999, 1.900000);
TextDrawColor(tName[playerid], -1);
TextDrawSetOutline(tName[playerid], 0);
TextDrawSetProportional(tName[playerid], 1);
TextDrawSetShadow(tName[playerid], 1);
tBenzin[playerid] = TextDrawCreate(560.000000, 370.000000, "Benzin:~n~--- l");
TextDrawAlignment(tBenzin[playerid], 2);
TextDrawBackgroundColor(tBenzin[playerid], 255);
TextDrawFont(tBenzin[playerid], 1);
TextDrawLetterSize(tBenzin[playerid], 0.250000, 1.200000);
TextDrawColor(tBenzin[playerid], -1);
TextDrawSetOutline(tBenzin[playerid], 1);
TextDrawSetProportional(tBenzin[playerid], 1);
}
//EndTacho
public OnPlayerUpdate(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid), benzin[128], Float:h, string[1500], Float:speed;
new kraftstoff[256];
kraftstoff = GetPlayerVehicleType(GetPlayerVehicleID(playerid));
GetVehicleHealth(vehicleid, h);
format(string, 32, "Zustand:~n~%f %", h/10);
if(h<1000)
{
strdel(string, 15, 20);
strdel(string, 13, 14);
strins(string, ",", 13);
}
else strdel(string, 14, 21);
format(benzin, 128, "Benzin:~n~%i l", Tank[vehicleid]);
/*if(Tank[vehicleid]<1000) strins(benzin, ".", 12);
else if(Tank[vehicleid]<100) strins(benzin, ".", 11);
else strdel(benzin, 12, 13); */
TextDrawSetString(tBenzin[playerid], benzin);
TextDrawSetString(tZustand[playerid], string);
GetVehicleSpeed(vehicleid, speed);
format(string, 32, "Geschw.: %f Km/h", speed/SPEED_KOEFF);
if(speed/SPEED_KOEFF<100) strdel(string, 10, 17);
else strdel(string, 11, 18);
TextDrawSetString(tSpeed[playerid], string);
if(PlayerBlitzed[playerid] >= 1 && PlayerBlitzed[playerid] < 4)
{
PlayerBlitzed[playerid]++;
}
if(PlayerBlitzed[playerid] >= 4)
{
PlayerBlitzed[playerid] = 0;
}
if(Tank[vehicleid]<1)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
TextDrawSetString(tMotor[playerid], "[~r~Motor~w~]");
NoFuel[vehicleid] = 1;
FreezePlayer(playerid);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~Kein Benzin mehr~n~Gib /exit zum ausgestiegen ein",2500,3);
PlayerExitAble[playerid] = 1;
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor[vid] = false;
}
else
{
NoFuel[vehicleid] = 0;
}
}
Das war das Tacho wo nur manchmal geht und das Textdraw hier geht auch nur manchmal:
Function Timer1()
{
adversitement ++;
if(adversitement == 1)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[64];
TextDrawHideForPlayer(i,TextForum);
format(string, sizeof(string),"~g~Forum: %s", FORUMURL);
TextDrawSetString(TextForum,string);
TextDrawShowForPlayer(i,TextForum);
}
}
else if(adversitement == 2)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new string[64];
TextDrawHideForPlayer(i,TextForum);
format(string, sizeof(string),"~b~TeamSpeak3: %s", TEAMSPEAKIP);
TextDrawSetString(TextForum,string);
TextDrawShowForPlayer(i,TextForum);
adversitement = 0;
}
}
Gruß Metin2