Hallo,
da ich eher nicht der PC Freund bin, will ich mir ein Laptop kaufen
Aber kriegt man ein guten Laptop für bis zu ca. 380€, dass GTA SA und GTA IV (und GTA V?) flüssig abspielt?
Links erwünscht
MfG Freaky
Hallo,
da ich eher nicht der PC Freund bin, will ich mir ein Laptop kaufen
Aber kriegt man ein guten Laptop für bis zu ca. 380€, dass GTA SA und GTA IV (und GTA V?) flüssig abspielt?
Links erwünscht
MfG Freaky
Wo finde ich das?
Das ist aber umständlich, jemand muss es ja wissen/haben
Und es sollte einfach einigermassen auf Skin ID 0 passen
Hallo,
weiss einer wie die Koordinaten von der GasMaske am Kopf sind?
MfG Freaky
Ich werds mal versuchen, aber ich glaub das bringt nix...
Habs jetzt so, immernoch keine Nachricht:
if(!strcmp(cmd,"/klauen",true))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(pInfo[playerid][Fraktion] == 10)
{
new carid = GetPlayerVehicleID(playerid);
if(IsKaufbaresAuto[carid])
{
if(Engine[carid] == true)
{
new OwnerID;
new pName[MAX_PLAYER_NAME];
for(new i=0;i<MAX_PLAYERS;i++)
{
GetPlayerName(i, pName, (sizeof pName));
if(strcmp(pName, AutoData[carid][Owner], true))
{
OwnerID = i;
}
}
new string1[286];
new string2[286];
new kname[MAX_PLAYER_NAME];
GetPlayerName(playerid, kname, sizeof(kname));
format(string1, sizeof(string1), "Du hast das Auto von %s geklaut", AutoData[carid][Owner]);
format(string2, sizeof(string2), "Dein Auto wurde von %s geklaut", kname);
SendClientMessage(playerid, ROT, string1);
SendClientMessage(OwnerID, ROT, string2);
RemovePlayerKey(AutoData[carid][Owner],carid);
strmid(AutoData[carid][Owner],kname,0,20,20);
AddPlayerKey(kname,carid);
return 1;
}
else
{
SendClientMessage(playerid, ROT, "Der Motor ist nicht an");
}
return 1;
}
return 1;
}
}
else return SendClientMessage(playerid, ROT, "Du bist in keinem Fahrzeug");
}
Setz doch einfach sein Leben auf 99millionen und beim verlassen von /aduty normal auf 99.5
Ich glaub es ist leichter als es sich anhört, kannst du es genauer erklären oder kurz pawn quelltext schreiben?
Wie mach ich dann daraus die ID?
Hallo,
ich habe für die Terrors ein /klauen Befehl, alles funzt, auch der Terror bekommt eine Nachricht, und der Name stimmt. Doch der Spieler den das Auto gehört, bekommt keine Nachricht.
Code:
if(!strcmp(cmd,"/klauen",true))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(pInfo[playerid][Fraktion] == 10)
{
new carid = GetPlayerVehicleID(playerid);
if(IsKaufbaresAuto[carid])
{
if(Engine[carid] == true)
{
new string1[286];
new string2[286];
new kname[MAX_PLAYER_NAME];
GetPlayerName(playerid, kname, sizeof(kname));
format(string1, sizeof(string1), "Du hast das Auto von %s geklaut", AutoData[carid][Owner]);
format(string2, sizeof(string2), "Dein Auto wurde von %s geklaut", kname);
SendClientMessage(playerid, ROT, string1);
SendClientMessage(AutoData[carid][Owner], ROT, string2);
RemovePlayerKey(AutoData[carid][Owner],carid);
strmid(AutoData[carid][Owner],kname,0,20,20);
AddPlayerKey(kname,carid);
return 1;
}
else
{
SendClientMessage(playerid, ROT, "Der Motor ist nicht an");
}
return 1;
}
return 1;
}
}
else return SendClientMessage(playerid, ROT, "Du bist in keinem Fahrzeug");
}
forward Spawnspieler(playerid);
public Spawnspieler(playerid)
{
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,1566.3439,23.2353,24.1641);
}
Wenn du ganz viele Leute rein willst, könntest du (z.b. für ein Enforcer) ein Interior mappen, und bei OnPlayerStateChange wenn er mit G(Beifahrer) einsteigt, dann er dort hingeportet wird. Wenn er "F" drückt, dann er dann wieder neben das auto gespawnt wird...
Don: Das ist doch unnötige Arbeit? Dein vorposter hat schon was richtiges geschrieben.
Aber ich glaube er meint das es langsam verschwindet und nicht "auf ein mal", deswegen vllt grafikeinstellungen angucken oder directx updaten...
Aber was ist da falsch? Hier der code:
SetGameModeText("German Reallife by LoG");
SendRconCommand("mapname San Fierro");
AddPlayerClass(78,-1494.5830,920.6609,7.1875,91.5039,0,0,0,0,0,0);
ShowPlayerMarkers(0);
EnableStuntBonusForAll(false);
UsePlayerPedAnims();
Textdraw0 = TextDrawCreate(571.000000, 364.000000, "BG");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.000000, 2.200000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 230);
TextDrawTextSize(Textdraw0, 387.000000, 2.000000);
Textdraw1 = TextDrawCreate(457.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.000000, -0.500000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 16777215);
TextDrawTextSize(Textdraw1, 444.000000, 0.000000);
Textdraw2 = TextDrawCreate(467.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.000000, -0.600000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 16777215);
TextDrawTextSize(Textdraw2, 454.000000, -1.000000);
Textdraw3 = TextDrawCreate(477.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.000000, -0.700000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 16777215);
TextDrawTextSize(Textdraw3, 464.000000, -1.000000);
Textdraw4 = TextDrawCreate(487.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.000000, -0.800000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 16777215);
TextDrawTextSize(Textdraw4, 474.000000, -1.000000);
Textdraw5 = TextDrawCreate(498.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.000000, -0.900000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, 16777215);
TextDrawTextSize(Textdraw5, 484.000000, -1.000000);
Textdraw6 = TextDrawCreate(508.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.000000, -1.000000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 16777215);
TextDrawTextSize(Textdraw6, 495.000000, -1.000000);
Textdraw7 = TextDrawCreate(518.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.000000, -1.100000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, 16777215);
TextDrawTextSize(Textdraw7, 505.000000, -1.000000);
Textdraw8 = TextDrawCreate(529.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.000000, -1.300000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
TextDrawUseBox(Textdraw8, 1);
TextDrawBoxColor(Textdraw8, 16777215);
TextDrawTextSize(Textdraw8, 515.000000, -1.000000);
Textdraw9 = TextDrawCreate(541.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.000000, -1.500000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
TextDrawUseBox(Textdraw9, 1);
TextDrawBoxColor(Textdraw9, 16777215);
TextDrawTextSize(Textdraw9, 526.000000, -1.000000);
Textdraw10 = TextDrawCreate(553.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.000000, -1.700000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
TextDrawUseBox(Textdraw10, 1);
TextDrawBoxColor(Textdraw10, 16777215);
TextDrawTextSize(Textdraw10, 538.000000, -1.000000);
Textdraw11 = TextDrawCreate(565.000000, 401.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 1);
TextDrawLetterSize(Textdraw11, 0.000000, -2.000000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
TextDrawUseBox(Textdraw11, 1);
TextDrawBoxColor(Textdraw11, 16777215);
TextDrawTextSize(Textdraw11, 550.000000, -1.000000);
Textdraw13 = TextDrawCreate(446.000000, 367.000000, "KMH");
TextDrawBackgroundColor(Textdraw13, 255);
TextDrawFont(Textdraw13, 2);
TextDrawLetterSize(Textdraw13, 0.329999, 1.099999);
TextDrawColor(Textdraw13, -1);
TextDrawSetOutline(Textdraw13, 0);
TextDrawSetProportional(Textdraw13, 1);
TextDrawSetShadow(Textdraw13, 0);
Textdraw14 = TextDrawCreate(571.000000, 410.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw14, 255);
TextDrawFont(Textdraw14, 1);
TextDrawLetterSize(Textdraw14, 0.000000, -0.099999);
TextDrawColor(Textdraw14, -1);
TextDrawSetOutline(Textdraw14, 0);
TextDrawSetProportional(Textdraw14, 1);
TextDrawSetShadow(Textdraw14, 1);
TextDrawUseBox(Textdraw14, 1);
TextDrawBoxColor(Textdraw14, 190);
TextDrawTextSize(Textdraw14, 387.000000, 2.000000);
Textdraw15 = TextDrawCreate(571.000000, 359.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw15, 255);
TextDrawFont(Textdraw15, 1);
TextDrawLetterSize(Textdraw15, 0.000000, -0.099999);
TextDrawColor(Textdraw15, -1);
TextDrawSetOutline(Textdraw15, 0);
TextDrawSetProportional(Textdraw15, 1);
TextDrawSetShadow(Textdraw15, 1);
TextDrawUseBox(Textdraw15, 1);
TextDrawBoxColor(Textdraw15, 180);
TextDrawTextSize(Textdraw15, 387.000000, 2.000000);
SpeedUpdateTimer = SetTimer("SpeedUpdate",SPEED_UPDATE_TIMER,true);
//autohaus
Textdraw170000000000000000 = TextDrawCreate(0.000000, 0.000000, "Autohaus-Computer");
TextDrawBackgroundColor(Textdraw170000000000000000, 255);
TextDrawFont(Textdraw170000000000000000, 1);
TextDrawLetterSize(Textdraw170000000000000000, 0.619999, 3.099999);
TextDrawColor(Textdraw170000000000000000, -1);
TextDrawSetOutline(Textdraw170000000000000000, 0);
TextDrawSetProportional(Textdraw170000000000000000, 1);
TextDrawSetShadow(Textdraw170000000000000000, 1);
TextDrawUseBox(Textdraw170000000000000000, 1);
TextDrawBoxColor(Textdraw170000000000000000, 255);
TextDrawTextSize(Textdraw170000000000000000, 656.000000, 37.000000);
Textdraw1600000000000000 = TextDrawCreate(-3.000000, 303.000000, "OKPWADJ AWDJO OWAP DJAOIWD A awidOIAW jdA");
TextDrawBackgroundColor(Textdraw1600000000000000, 255);
TextDrawFont(Textdraw1600000000000000, 1);
TextDrawLetterSize(Textdraw1600000000000000, -0.769999, 14.199999);
TextDrawColor(Textdraw1600000000000000, 10);
TextDrawSetOutline(Textdraw1600000000000000, 0);
TextDrawSetProportional(Textdraw1600000000000000, 0);
TextDrawSetShadow(Textdraw1600000000000000, 0);
TextDrawUseBox(Textdraw1600000000000000, 1);
TextDrawBoxColor(Textdraw1600000000000000, 200);
TextDrawTextSize(Textdraw1600000000000000, 679.000000, 254.000000);
Textdraw16000000000000 = TextDrawCreate(-88.000000, 313.000000, "df sd fsdf we fse fsef s");
TextDrawBackgroundColor(Textdraw16000000000000, 255);
TextDrawFont(Textdraw16000000000000, 0);
TextDrawLetterSize(Textdraw16000000000000, 0.050000, 6.399999);
TextDrawColor(Textdraw16000000000000, -1);
TextDrawSetOutline(Textdraw16000000000000, 0);
TextDrawSetProportional(Textdraw16000000000000, 1);
TextDrawSetShadow(Textdraw16000000000000, 1);
TextDrawUseBox(Textdraw16000000000000, 1);
TextDrawBoxColor(Textdraw16000000000000, -1);
TextDrawTextSize(Textdraw16000000000000, 218.000000, 254.000000);
Textdraw17000000000000 = TextDrawCreate(245.000000, 315.000000, "Benutze ~r~SHIFT~w~ um das gewaehlte Fahrzeug");
TextDrawBackgroundColor(Textdraw17000000000000, 255);
TextDrawFont(Textdraw17000000000000, 1);
TextDrawLetterSize(Textdraw17000000000000, 0.500000, 1.000000);
TextDrawColor(Textdraw17000000000000, -1);
TextDrawSetOutline(Textdraw17000000000000, 0);
TextDrawSetProportional(Textdraw17000000000000, 1);
TextDrawSetShadow(Textdraw17000000000000, 1);
Textdraw160000000000 = TextDrawCreate(246.000000, 327.000000, "zu kaufen");
TextDrawBackgroundColor(Textdraw160000000000, 255);
TextDrawFont(Textdraw160000000000, 1);
TextDrawLetterSize(Textdraw160000000000, 0.500000, 1.000000);
TextDrawColor(Textdraw160000000000, -1);
TextDrawSetOutline(Textdraw160000000000, 0);
TextDrawSetProportional(Textdraw160000000000, 1);
TextDrawSetShadow(Textdraw160000000000, 1);
Textdraw170000000000 = TextDrawCreate(247.000000, 339.000000, "Nutze ~r~Numpad Links/Rechts~w~ um die");
TextDrawBackgroundColor(Textdraw170000000000, 255);
TextDrawFont(Textdraw170000000000, 1);
TextDrawLetterSize(Textdraw170000000000, 0.500000, 1.000000);
TextDrawColor(Textdraw170000000000, -1);
TextDrawSetOutline(Textdraw170000000000, 0);
TextDrawSetProportional(Textdraw170000000000, 1);
TextDrawSetShadow(Textdraw170000000000, 1);
Textdraw1600000000 = TextDrawCreate(249.000000, 352.000000, "einzelnen Fahrzeuge durchzublaettern");
TextDrawBackgroundColor(Textdraw1600000000, 255);
TextDrawFont(Textdraw1600000000, 1);
TextDrawLetterSize(Textdraw1600000000, 0.500000, 1.000000);
TextDrawColor(Textdraw1600000000, -1);
TextDrawSetOutline(Textdraw1600000000, 0);
TextDrawSetProportional(Textdraw1600000000, 1);
TextDrawSetShadow(Textdraw1600000000, 1);
Textdraw1700000000 = TextDrawCreate(36.000000, 383.000000, "Nutze ~r~F/Enter~w~ um das Autohaus zu verlassen");
TextDrawBackgroundColor(Textdraw1700000000, 255);
TextDrawFont(Textdraw1700000000, 1);
TextDrawLetterSize(Textdraw1700000000, 0.500000, 1.000000);
TextDrawColor(Textdraw1700000000, -1);
TextDrawSetOutline(Textdraw1700000000, 0);
TextDrawSetProportional(Textdraw1700000000, 1);
TextDrawSetShadow(Textdraw1700000000, 1);
Textdraw1700000000000000000 = TextDrawCreate(0.000000, 30.500000, "L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L\
L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L L ");
TextDrawBackgroundColor(Textdraw1700000000000000000, 255);
TextDrawFont(Textdraw1700000000000000000, 1);
TextDrawLetterSize(Textdraw1700000000000000000, 0.549999, 1.800000);
TextDrawColor(Textdraw1700000000000000000, 255);
TextDrawSetOutline(Textdraw1700000000000000000, 0);
TextDrawSetProportional(Textdraw1700000000000000000, 1);
TextDrawSetShadow(Textdraw1700000000000000000, 1);
TextDrawUseBox(Textdraw1700000000000000000, 1);
TextDrawBoxColor(Textdraw1700000000000000000, 255);
TextDrawTextSize(Textdraw1700000000000000000, 32.000000, 37.000000);
Textdraw1700000000000000001 = TextDrawCreate(10.000000, 421.000000, "Unten");
TextDrawBackgroundColor(Textdraw1700000000000000001, 255);
TextDrawFont(Textdraw1700000000000000001, 1);
TextDrawLetterSize(Textdraw1700000000000000001, 0.549999, 2.999999);
TextDrawColor(Textdraw1700000000000000001, 255);
TextDrawSetOutline(Textdraw1700000000000000001, 0);
TextDrawSetProportional(Textdraw1700000000000000001, 1);
TextDrawSetShadow(Textdraw1700000000000000001, 1);
TextDrawUseBox(Textdraw1700000000000000001, 1);
TextDrawBoxColor(Textdraw1700000000000000001, 255);
TextDrawTextSize(Textdraw1700000000000000001, 656.000000, 37.000000);
Textdraw1700000000000000002 = TextDrawCreate(650.000000, 19.500000, "R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R ");
TextDrawBackgroundColor(Textdraw1700000000000000002, 255);
TextDrawFont(Textdraw1700000000000000002, 1);
TextDrawLetterSize(Textdraw1700000000000000002, 0.549999, 1.800000);
TextDrawColor(Textdraw1700000000000000002, 255);
TextDrawSetOutline(Textdraw1700000000000000002, 0);
TextDrawSetProportional(Textdraw1700000000000000002, 1);
TextDrawSetShadow(Textdraw1700000000000000002, 1);
TextDrawUseBox(Textdraw1700000000000000002, 1);
TextDrawBoxColor(Textdraw1700000000000000002, 255);
TextDrawTextSize(Textdraw1700000000000000002, 603.000000, 37.000000);
Textdraw1700000000000000003 = TextDrawCreate(476.000000, 417.000000, "~r~ | ~w~ ||");
TextDrawBackgroundColor(Textdraw1700000000000000003, 255);
TextDrawFont(Textdraw1700000000000000003, 1);
TextDrawLetterSize(Textdraw1700000000000000003, 1.420000, 7.199999);
TextDrawColor(Textdraw1700000000000000003, -1);
TextDrawSetOutline(Textdraw1700000000000000003, 0);
TextDrawSetProportional(Textdraw1700000000000000003, 1);
TextDrawSetShadow(Textdraw1700000000000000003, 1);
loadAutoHausInformation();
AutoHausInfo[ALabel] = Text3D:-1;
AutoHausInfo[Pickup] = -1;
SetTimer("SaveAutoHausInformation",30000,1);
LoadVehicles();
//ADUTYANZEIGE
ADutyAnzeige = TextDrawCreate(487.000000, 171.000000, "Im Admindienst");
TextDrawBackgroundColor(ADutyAnzeige, 255);
TextDrawFont(ADutyAnzeige, 1);
TextDrawLetterSize(ADutyAnzeige, 0.529999, 2.200000);
TextDrawColor(ADutyAnzeige, -16776961);
TextDrawSetOutline(ADutyAnzeige, 0);
TextDrawSetProportional(ADutyAnzeige, 1);
TextDrawSetShadow(ADutyAnzeige, 1);
//reportsystem
Report1 = TextDrawCreate(637.000000, 140.000000, " ");
TextDrawBackgroundColor(Report1, 255);
TextDrawFont(Report1, 1);
TextDrawLetterSize(Report1, 0.500000, 1.000000);
TextDrawColor(Report1, -1);
TextDrawSetOutline(Report1, 0);
TextDrawSetProportional(Report1, 1);
TextDrawSetShadow(Report1, 1);
TextDrawUseBox(Report1, 1);
TextDrawBoxColor(Report1, 255);
TextDrawTextSize(Report1, 474.000000, 107.000000);
Report = TextDrawCreate(482.000000, 143.000000, "");
TextDrawBackgroundColor(Report, 65535);
TextDrawFont(Report, 1);
TextDrawLetterSize(Report, 0.449999, 1.700000);
TextDrawColor(Report, -1);
TextDrawSetOutline(Report, 1);
TextDrawSetProportional(Report, 1);
SetTimer("Anzeige",1000,1);
//fcar
for(new i=0;i<MAX_CARS;i++)
{
LFC(i);
}
for(new i=0;i<MAX_CARS;i++)
{
if(i == Frakcar[i])
{
if(FCInfo[i][CarPJ] >= 0) {ChangeVehiclePaintjob(i,FCInfo[i][CarPJ]);}
if(FCInfo[i][CarNitro] != 0) {AddVehicleComponent(i,FCInfo[i][CarNitro]);}
if(FCInfo[i][CarHyd] != 0) {AddVehicleComponent(i,FCInfo[i][CarHyd]);}
if(FCInfo[i][CarWheel] != 0) {AddVehicleComponent(i,FCInfo[i][CarWheel]);}
if(FCInfo[i][CarAusp] != 0) {AddVehicleComponent(i,FCInfo[i][CarAusp]);}
if(FCInfo[i][CarSideL] != 0) {AddVehicleComponent(i,FCInfo[i][CarSideL]);}
if(FCInfo[i][CarSideR] != 0) {AddVehicleComponent(i,FCInfo[i][CarSideR]);}
if(FCInfo[i][CarFB] != 0) {AddVehicleComponent(i,FCInfo[i][CarFB]);}
if(FCInfo[i][CarRB] != 0) {AddVehicleComponent(i,FCInfo[i][CarRB]);}
if(FCInfo[i][CarSpoiler] != 0) {AddVehicleComponent(i,FCInfo[i][CarSpoiler]);}
if(FCInfo[i][CarRoof] != 0) {AddVehicleComponent(i,FCInfo[i][CarRoof]);}
if(FCInfo[i][CarHood] != 0) {AddVehicleComponent(i,FCInfo[i][CarHood]);}
if(FCInfo[i][CarVentL] != 0) {AddVehicleComponent(i,FCInfo[i][CarVentL]);}
if(FCInfo[i][CarVentR] != 0) {AddVehicleComponent(i,FCInfo[i][CarVentR]);}
if(FCInfo[i][CarLamps] != 0) {AddVehicleComponent(i,FCInfo[i][CarLamps]);}
if(FCInfo[i][fcc1] >= -1) {ChangeVehicleColor(i,FCInfo[i][fcc1],FCInfo[i][fcc2]);}
if(FCInfo[i][fcc2] >= -1) {ChangeVehicleColor(i,FCInfo[i][fcc1],FCInfo[i][fcc2]);}
if(FCInfo[i][Numplate] != 0) {SetVehicleNumberPlate(i, FCInfo[i][Numplate]);}
FcarSave(i);
SetVehicleToRespawn(i);
}
}
Clock=TextDrawCreate(549,24, "00:00");
TextDrawLetterSize(Clock,0.55,2);
TextDrawFont(Clock,3);
TextDrawBackgroundColor(Clock,0x000000AA);
TextDrawSetOutline(Clock,2);
Date=TextDrawCreate(500,3, "01.01.2008");
TextDrawLetterSize(Date,0.55,2);
TextDrawFont(Date,3);
TextDrawBackgroundColor(Date,0x000000AA);
TextDrawSetOutline(Date,2);
SetTimer("time", 60000, 1); // After one minute you will se real time and date
//Faggios am Spawn
AddStaticVehicle(462,-1494.4590,927.7370,6.7863,90.3440,1,1);
AddStaticVehicle(462,-1494.4270,929.0237,6.7866,92.3982,1,1);
AddStaticVehicle(462,-1494.4340,930.2492,6.7883,95.1878,1,1);
AddStaticVehicle(462,-1494.3608,910.0109,6.7854,89.3318,1,1);
AddStaticVehicle(462,-1494.2830,911.1821,6.7851,89.6987,1,1);
AddStaticVehicle(462,-1494.2438,912.1486,6.7850,89.6245,1,1);
//Motor System
ManualVehicleEngineAndLights();
for (new i=0; i< MAX_VEHICLES; i++)
{
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
Engine[i] = false;
Lights[i] = false;
}
//ONGAMEMODEINIT
Create3DTextLabel("Hier ist der Autoimporteur \nDie Autos aus der Garage bekommst du, indem du einen Autoimporteur fragst \nTu das über > /report < \n\nMfG Autoimporteur", COLOR_WHITE,-1754.0514,954.1309,24.7422,20,0);
new path[200];
format(path,sizeof(path),"/serverinfo.ini");
sInfo[Zinsen] = dini_Int(path,"Zinsen");
sInfo[Steuern] = dini_Int(path,"Steuern");
sInfo[SAPDGehalt] = dini_Int(path,"SAPDGehalt");
sInfo[FBIGehalt] = dini_Int(path,"FBIGehalt");
sInfo[ARMYGehalt] = dini_Int(path,"ARMYGehalt");
sInfo[MEDICGehalt] = dini_Int(path,"MEDICGehalt");
for(new b = 1; b <MAX_BIZZ; b++) //Die Schleife
{
LoadBizz(b);
}
for(new h = 1; h <MAX_HAUS; h++) //Die Schleife
{
LoadHaus(h);
}
DisableInteriorEnterExits();
for (new i=0; i< MAX_VEHICLES; i++)
{
SetVehicleToRespawn(i);
}
ConnectNPC("ArmyBot","ArmyBot");//Das erste ArmyBot steht für den Namen hier im Script, das 2te für den Namen der .rec Datei
car_ArmyBot = CreateVehicle(470,354.3743,1776.7408,17.2199,308.8429,0,0, -1);//car_ArmyBot ist der Name des Autos mit dem der Bot fahrt, Die Positionen von CreateVehicle sind egal,
return 1;
//edit: Ich habe bemerkt das auch die gelben checkpoints an eingängen wie im singleplayer wieder da sind.
Jetzt spawnen zusätzlich noch die Dynamischen Autos nicht mehr, die die mit dini gemacht wurden.
Zeilen TD:
forward TextdrawUpdate(playerid, Float:speed);
public TextdrawUpdate(playerid, Float:speed)
{
new SS[4];
format(SS,4,"%f",speed);
TextDrawSetString(Speedo[playerid], SS);
if(speed >= 10) { TextDrawShowForPlayer(playerid, Textdraw1); }
else TextDrawHideForPlayer(playerid, Textdraw1);
if(speed >= 30) { TextDrawShowForPlayer(playerid, Textdraw2); }
else TextDrawHideForPlayer(playerid, Textdraw2);
if(speed >= 50) { TextDrawShowForPlayer(playerid, Textdraw3); }
else TextDrawHideForPlayer(playerid, Textdraw3);
if(speed >= 70) { TextDrawShowForPlayer(playerid, Textdraw4); }
else TextDrawHideForPlayer(playerid, Textdraw4);
if(speed >= 90) { TextDrawShowForPlayer(playerid, Textdraw5); }
else TextDrawHideForPlayer(playerid, Textdraw5);
if(speed >= 110) { TextDrawShowForPlayer(playerid, Textdraw6); }
else TextDrawHideForPlayer(playerid, Textdraw6);
if(speed >= 130) { TextDrawShowForPlayer(playerid, Textdraw7); }
else TextDrawHideForPlayer(playerid, Textdraw7);
if(speed >= 150) { TextDrawShowForPlayer(playerid, Textdraw8); }
else TextDrawHideForPlayer(playerid, Textdraw8);
if(speed >= 170) { TextDrawShowForPlayer(playerid, Textdraw9); }
else TextDrawHideForPlayer(playerid, Textdraw9);
if(speed >= 180) { TextDrawShowForPlayer(playerid, Textdraw10); }
else TextDrawHideForPlayer(playerid, Textdraw10);
if(speed >= 200) { TextDrawShowForPlayer(playerid, Textdraw11); }
else TextDrawHideForPlayer(playerid, Textdraw11);
return true;
}
Früher ging das ja auch
Zeilen Dynamisches Carsystem:
stock LFC(autoid)
{
new SDatei[64];
format(SDatei,50,"/fraccar/%d.txt",autoid);
if(!fexist(SDatei))return 0;
FCInfo[autoid][fmodelid] = dini_Int(SDatei,"Model");
FCInfo[autoid][fcx] = dini_Float(SDatei,"X");
FCInfo[autoid][fcy] = dini_Float(SDatei,"Y");
FCInfo[autoid][fcz] = dini_Float(SDatei,"Z");
FCInfo[autoid][fca] = dini_Float(SDatei,"A");
FCInfo[autoid][Frakid] = dini_Int(SDatei,"Fraktion");
FCInfo[autoid][fcc1] = dini_Int(SDatei,"Farbe1");
FCInfo[autoid][fcc2] = dini_Int(SDatei,"Farbe2");
FCInfo[autoid][open] = dini_Int(SDatei,"Open");
FCInfo[autoid][Opark] = dini_Int(SDatei,"Opark");
FCInfo[autoid][Numplate] = dini_Int(SDatei,"Numplate");
FCInfo[autoid][Neon] = dini_Int(SDatei,"Neon");
Frakcar[autoid] = CreateVehicle(FCInfo[autoid][fmodelid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
FCInfo[autoid][CarNitro] = dini_Int(SDatei,"CarNitro");
FCInfo[autoid][CarHyd] = dini_Int(SDatei,"CarHyd");
FCInfo[autoid][CarWheel] = dini_Int(SDatei,"CarWheel");
FCInfo[autoid][CarAusp] = dini_Int(SDatei,"CarAusp");
FCInfo[autoid][CarSideL] = dini_Int(SDatei,"CarSideL");
FCInfo[autoid][CarSideR] = dini_Int(SDatei,"CarSideR");
FCInfo[autoid][CarFB] = dini_Int(SDatei,"CarFB");
FCInfo[autoid][CarRB] = dini_Int(SDatei,"CarRB");
FCInfo[autoid][CarSpoiler] = dini_Int(SDatei,"CarSpoiler");
FCInfo[autoid][CarRoof] = dini_Int(SDatei,"CarRoof");
FCInfo[autoid][CarHood] = dini_Int(SDatei,"CarHood");
FCInfo[autoid][CarVentL] = dini_Int(SDatei,"CarVentL");
FCInfo[autoid][CarVentR] = dini_Int(SDatei,"CarVentR");
FCInfo[autoid][CarLamps] = dini_Int(SDatei,"CarLamps");
FCInfo[autoid][CarPJ] = dini_Int(SDatei,"CarPJ");
IsFrakCar[autoid] = 1;
AddFCarTuning(autoid);
return 1;
}
MfG Freaky
Hay,
ich habe ein Problem.
Mein Datum + Uhr und mein Tacho ist nicht mehr da.
MfG Freaky
was für loop?
Inbizz ist die Bizzid, damit man weiss wo er beim rausgehen spawnen soll....
Hallo,
ich habe gerade ein Haussystem gescriptet, wo man mit "N" rausgehen kann, doch die ID 0 kommt rein, aber nicht raus, die anderen kommen rein und raus.
Code:
else if(inBizz[playerid] != -1)
{
new b = inBizz[playerid];
new Innenraum = bInfo[b][Interior];
if(IsPlayerInRangeOfPoint(playerid,10,bInt[Innenraum][SpawnX],bInt[Innenraum][SpawnY],bInt[Innenraum][SpawnZ]))
{
SetPlayerPos(playerid,bInfo[b][PosX],bInfo[b][PosY],bInfo[b][PosZ]);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
inBizz[playerid] = -1;
return 1;
}
new h = inHaus[playerid];
new Innenraum1 = hInfo[h][Interior];
if(IsPlayerInRangeOfPoint(playerid,10,hInt[Innenraum1][SpawnX],hInt[Innenraum1][SpawnY],hInt[Innenraum1][SpawnZ]))
{
SetPlayerPos(playerid,hInfo[h][PosX],hInfo[h][PosY],hInfo[h][PosZ]);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
inHaus[playerid] = -1;
return 1;
}
return 1;
}
Hallo!
Mein Frakcarsystem buggt n bissel rum.
Wenn ich ein server restart mache, sind die Farben ganz anders!
Hier mein Load stock:
stock LFC(autoid)
{
new SDatei[64];
format(SDatei,50,"/fraccar/%d.txt",autoid);
if(!fexist(SDatei))return 0;
FCInfo[autoid][fmodelid] = dini_Int(SDatei,"Model");
FCInfo[autoid][fcx] = dini_Float(SDatei,"X");
FCInfo[autoid][fcy] = dini_Float(SDatei,"Y");
FCInfo[autoid][fcz] = dini_Float(SDatei,"Z");
FCInfo[autoid][fca] = dini_Float(SDatei,"A");
FCInfo[autoid][Frakid] = dini_Int(SDatei,"Fraktion");
FCInfo[autoid][fcc1] = dini_Int(SDatei,"Farbe1");
FCInfo[autoid][fcc2] = dini_Int(SDatei,"Farbe2");
FCInfo[autoid][open] = dini_Int(SDatei,"Open");
FCInfo[autoid][Opark] = dini_Int(SDatei,"Opark");
FCInfo[autoid][Numplate] = dini_Int(SDatei,"Numplate");
FCInfo[autoid][Neon] = dini_Int(SDatei,"Neon");
Frakcar[autoid] = CreateVehicle(FCInfo[autoid][fmodelid],FCInfo[autoid][fcx],FCInfo[autoid][fcy],FCInfo[autoid][fcz],FCInfo[autoid][fca],FCInfo[autoid][fcc1],FCInfo[autoid][fcc2],-1);
FCInfo[autoid][CarNitro] = dini_Int(SDatei,"CarNitro");
FCInfo[autoid][CarHyd] = dini_Int(SDatei,"CarHyd");
FCInfo[autoid][CarWheel] = dini_Int(SDatei,"CarWheel");
FCInfo[autoid][CarAusp] = dini_Int(SDatei,"CarAusp");
FCInfo[autoid][CarSideL] = dini_Int(SDatei,"CarSideL");
FCInfo[autoid][CarSideR] = dini_Int(SDatei,"CarSideR");
FCInfo[autoid][CarFB] = dini_Int(SDatei,"CarFB");
FCInfo[autoid][CarRB] = dini_Int(SDatei,"CarRB");
FCInfo[autoid][CarSpoiler] = dini_Int(SDatei,"CarSpoiler");
FCInfo[autoid][CarRoof] = dini_Int(SDatei,"CarRoof");
FCInfo[autoid][CarHood] = dini_Int(SDatei,"CarHood");
FCInfo[autoid][CarVentL] = dini_Int(SDatei,"CarVentL");
FCInfo[autoid][CarVentR] = dini_Int(SDatei,"CarVentR");
FCInfo[autoid][CarLamps] = dini_Int(SDatei,"CarLamps");
FCInfo[autoid][CarPJ] = dini_Int(SDatei,"CarPJ");
IsFrakCar[autoid] = 1;
AddFCarTuning(autoid);
return 1;
}