Ich brauche hier wirklich hilfe.
public OnPlayerRequestClass(playerid, classid)
{
TextDrawShowForAll(Uhr);
if(IsPlayerNPC(playerid))return 1;
new SpielerDatei[64];
format(SpielerDatei,sizeof(SpielerDatei),"/Accounts/%s.ini",SpielerName(playerid));
if(dini_Exists(SpielerDatei))
{
new string[180];
format(string, sizeof(string),"{FFFFFF}Willkommen zurück, {FFFA00} %s\n{FFFFFF}Schön das du uns wieder besuchst\nGeb unten dein Passwort ein,\num weiter zu Spielen",MeinName(playerid));
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login Vorgang",string,"Login","Abbrechen");
}
else
{
new string[180];
format(string, sizeof(string),"{FFFFFF}Herzlich Willkommen,{00E1FF}%s\n{FFFFFF}Du musst dich Registrieren\nGeb einfach unten\nein gewünschtes Passwort ein",MeinName(playerid));
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Register Vorgang",string,"Register","Abbrechen");
}
if(GetPVarInt(playerid,"Banned") == 1)
{
SendClientMessage(playerid,rot,"Du bist gesperrt");
Kick(playerid);
}
FirstSpawn[playerid] = 0;
RemoveBuildingForPlayer(playerid, 985, 2497.4063, 2777.0703, 11.5313, 0.25);
RemoveBuildingForPlayer(playerid, 986, 2497.4063, 2769.1094, 11.5313, 0.25);
RemoveBuildingForPlayer(playerid, 5935, 1120.1563, -1303.4531, 18.5703, 0.25);
RemoveBuildingForPlayer(playerid, 5737, 1120.1563, -1303.4531, 18.5703, 0.25);
RemoveBuildingForPlayer(playerid, 2001, 329.6875, 173.8984, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1776, 330.6797, 178.5000, 1020.0703, 0.25);
RemoveBuildingForPlayer(playerid, 1776, 331.9219, 178.5000, 1020.0703, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 341.1328, 168.7969, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2002, 349.4063, 167.8594, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1722, 350.3750, 168.1797, 1018.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1722, 351.1094, 168.2656, 1018.9844, 0.25);
RemoveBuildingForPlayer(playerid, 2009, 353.6719, 162.3906, 1018.9531, 0.25);
RemoveBuildingForPlayer(playerid, 1806, 354.5000, 162.9063, 1018.9531, 0.25);
RemoveBuildingForPlayer(playerid, 2010, 356.8125, 160.5156, 1018.9688, 0.25);
RemoveBuildingForPlayer(playerid, 1999, 355.7109, 163.3906, 1018.9531, 0.25);
RemoveBuildingForPlayer(playerid, 1806, 356.8047, 162.6484, 1018.9531, 0.25);
RemoveBuildingForPlayer(playerid, 1502, 354.8906, 168.6719, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 351.9844, 192.5078, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 352.0078, 192.5781, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 351.9844, 193.4219, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 351.9844, 194.3359, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 351.9844, 195.2578, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 352.0078, 193.5000, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 352.0078, 195.3281, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 352.0078, 194.4141, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2186, 357.7734, 199.0391, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 14599, 358.7109, 162.0859, 1026.7031, 0.25);
RemoveBuildingForPlayer(playerid, 14598, 364.7266, 173.8906, 1022.9375, 0.25);
RemoveBuildingForPlayer(playerid, 2002, 369.7813, 178.4141, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1776, 371.5938, 178.4531, 1020.0703, 0.25);
RemoveBuildingForPlayer(playerid, 14632, 364.9297, 188.1797, 1020.4844, 0.25);
RemoveBuildingForPlayer(playerid, 14633, 364.9297, 188.1797, 1020.4844, 0.25);
RemoveBuildingForPlayer(playerid, 14600, 366.8672, 188.1797, 1020.4844, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8047, 192.5078, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8047, 193.4219, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8047, 194.3359, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8047, 195.2578, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8281, 192.5781, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8281, 193.5000, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8281, 194.4141, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 359.8281, 195.3281, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 365.3438, 195.6250, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 365.3438, 196.5391, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 365.3438, 198.3750, 1018.9766, 0.25);
RemoveBuildingForPlayer(playerid, 2167, 365.3438, 197.4531, 1018.9766, 0.25);
return 1;
}
OnGameModeInit.
public OnGameModeInit()
{
for( new a = 0;a<MAX_PLAYERS;a++)
{
Tacho[a] = TextDrawCreate(425.0,390.0,"");
TextDrawLetterSize(Tacho[a],0.4,1.1);
TextDrawFont(Tacho[a],1);
TextDrawSetShadow(Tacho[a],2);
TextDrawSetOutline(Tacho[a],1);
}
ManualVehicleEngineAndLights();
for(new i= 0;i<MAX_VEHICLES;i++)
{
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor[i] = false;
Tank[i] = 100;
}
SetTimer("BenzinVerlust",VERLUST,true);
ZUSTAND = TextDrawCreate(500.000000, 381.000000, "Zustand: ");
TextDrawBackgroundColor(ZUSTAND, 255);
TextDrawFont(ZUSTAND, 1);
TextDrawLetterSize(ZUSTAND, 0.300000, 0.799999);
TextDrawColor(ZUSTAND, -1);
TextDrawSetOutline(ZUSTAND, 0);
TextDrawSetProportional(ZUSTAND, 1);
TextDrawSetShadow(ZUSTAND, 1);
TextDrawUseBox(ZUSTAND, 1);
TextDrawBoxColor(ZUSTAND, 225);
TextDrawTextSize(ZUSTAND, 605.000000, 0.000000);
//FraktionsPickups
therz=CreatePickup(1240,1,1085.2430,2116.0183,15.3504,-1);
tarmor=CreatePickup(1242,1,1084.7565,2119.3716,15.3504,-1);
tskins=CreatePickup(1275,1,1084.8936,2111.8057,15.3504,-1);
mskins=CreatePickup(1275,1,351.3163,197.6244,1019.9844,-1);
mherz=CreatePickup(1240,1,351.1917,191.0428,1019.9844,-1);
oherz=CreatePickup(1240,1,324.2799,303.7295,999.1484,-1);
oarmor=CreatePickup(1242,1,324.6213,307.4822,999.1484,-1);
oskins=CreatePickup(1275,1,322.0921,316.4826,999.1484,-1);
ostern=CreatePickup(1247,1,324.4090,305.7594,999.1484,-1);
aherz=CreatePickup(1240,1,222.8103,1855.1088,12.9330,-1);
aarmor=CreatePickup(1242,1,219.5759,1854.7181,12.9025,-1);
astern=CreatePickup(1247,1,214.0314,1854.8090,12.9253,-1);
adacstern=CreatePickup(1247,1,1265.9454,-1640.0272,13.5469,-1);
adacherz=CreatePickup(1240,1,1263.3475,-1639.2876,13.5517,-1);
//Pickups
pup1=CreatePickup(1239,1,1199.3177,-918.1366,43.1228,-1);
pup2=CreatePickup(1239,1,1315.5721,-897.6895,39.5781,-1);
pup3=CreatePickup(1239,1,1368.9950,-1279.6796,13.5469,-1);
pup4=CreatePickup(1239,1,1481.0400,-1772.3123,18.7958,-1);
pup5=CreatePickup(1239,1,2397.8018,-1899.1838,13.5469,-1);
pup6=CreatePickup(1247,1,351.3374,194.4359,1019.9844,-1);
pup7=CreatePickup(1239,2,2543.1941,2823.3740,10.8203,-1);
pup8=CreatePickup(1239,2,238.3292,1872.5686,11.4609,-1);
pup9=CreatePickup(342,2,261.3253,1816.4425,1.0078,-1);
pup10=CreatePickup(359,2,293.4064,1815.1014,1.0078,-1);
pup11=CreatePickup(360,2,2601.1382,2848.8403,10.8203,-1);
pup12=CreatePickup(1636,2,2595.8098,2848.7937,10.8203,-1);
pup13=CreatePickup(1275,2,2592.2478,2848.4751,10.8203,-1);
pup14=CreatePickup(1239,1,2591.9463,2842.3704,10.8203,-1);
//Tor Variablen
AlkaTorStatus = 0;
MedicTorStatus = 0;
ArmytorStatus = 0;
TerTorStatus = 0;
HasKey = 0;
Dienst = 0;
//Armybase
CreateObject(1649, 266.5, 1880.6999511719, 16, 90, 0, 0);
CreateObject(1649, 266.5, 1884, 16, 90, 0, 0);
CreateObject(1649, 270.89999389648, 1880.6999511719, 16, 90, 0, 0);
CreateObject(1649, 270.89999389648, 1884, 16, 90, 0, 0);
CreateObject(1649, 270.89999389648, 1887.3000488281, 16, 90, 0, 0);
CreateObject(1649, 266.5, 1887.3000488281, 16, 90, 0, 0);
Army1 = CreateObject(10841, 214.30000305176, 1875.6999511719, 14.199999809265, 0, 0, 359.75);
Army2 = CreateObject(980, 238.5, 1869.8000488281, 11.60000038147, 0, 0, 270)
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//Echtzeit Uhr
Uhr = TextDrawCreate(545.000000,2.000000,"");
TextDrawBackgroundColor(Uhr,255);
TextDrawFont(Uhr,3);
TextDrawLetterSize(Uhr,0.52,2.29999);
TextDrawColor(Uhr,-1);
TextDrawSetOutline(Uhr,0);
TextDrawSetProportional(Uhr,1);
TextDrawSetShadow(Uhr,1);
Admindienst = TextDrawCreate(487.000000, 143.000000, "Admindienst\naktiv");
TextDrawBackgroundColor(Admindienst, 255);
TextDrawFont(Admindienst, 1);
TextDrawLetterSize(Admindienst, 0.399899, 1.400000);
TextDrawColor(Admindienst, 16711935);
TextDrawSetOutline(Admindienst, 1);
TextDrawSetProportional(Admindienst, 1);
SetTimer("UpdateUhr",1000,1);
SetTimer("UpdateTacho",1000,true);
//Beim Tod Freezen
SetTimer("FreezeTodTimer",5000,1);
//Settings
UsePlayerPedAnims();
DisableInteriorEnterExits();
ShowPlayerMarkers(0);
return 1;
}