Ja, der Datensatz meines Spielers besteht.
Im Datensatz steht mein Geld leider auch auf 0$.
Ich bin eben noch mal gejoint, leider ist mein Geld wieder auf 0$.
stock LoadPlayer(playerid) {
SetPlayerColor(playerid, COLOR_GRAD1);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
PlayerInfo[playerid][pModel] = 264;
AddPlayer(playerid);
gPlayerLogged[playerid] = 0;
new playerip[256];
GetPlayerIp(playerid,playerip,sizeof(playerip));
strmid(PlayerInfo[playerid][pUserIP], playerip, 0, strlen(playerip), 255);
Logintime[playerid] = -1;
if(!IsPlayerNPC(playerid))
UsersOnline++;
MaxVeh[playerid] = 3;
CarKey[playerid] = 0;
gPlayerUsingLoopingAnim[playerid] = 0;
gPlayerAnimLibsPreloaded[playerid] = 0;
PortedTimer[playerid] = 0;
SetPVarInt(playerid, "PVTeam", -1);
SetPVarInt(playerid, "PVAdmin", 0);
SetPVarInt(playerid, "PVJob", 0);
currentHouse[playerid] = -1;
FirstSpawnAfterLogin[playerid] = 0; PlayerInfo[playerid][pIsearch] = 0;
SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);
CellTime[playerid] = 0; Mobile[playerid] = -1; RingTone[playerid] = 0; Uberweisungsid[playerid] = -1; Tot[playerid] = 0; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; GettingJob[playerid] = 0; AllowTune[playerid] = -1;
RobTimer[playerid] = -1; AntiRobTimer[playerid] = 0; TeamRadar[playerid] = 0; BNDRadar[playerid] = 0; MullManOwned[playerid] = -1; TutCP[playerid] = 0;
CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; NoDmTimer[playerid] = 0; NoDmWarnungen[playerid] = 0; UsedFind[playerid] = 0; Eisgekauft[playerid] = 0;
CP[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; HitSound[playerid] = 1; //ACode[playerid] = 0;
STDPlayer[playerid] = 0; RepairOffer[playerid] = -1; RepairPrice[playerid] = 0;
VertragOffer[playerid] = -1; Supportercar[playerid] = -1; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; HealProds[playerid] = 0; KitPrice[playerid] = -1;
LessonOffer[playerid] = -1; LessonPrice[playerid] = 0; TakingLesson[playerid] = 0; Bergwerkarbeit[playerid] = 0; RefillOffer[playerid] = -1; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
HotdogOffer[playerid] = -1; HotdogPrice[playerid] = 0; HealPrice[playerid] = -1; PlayerHeal[playerid] = -1; HealOffer[playerid] = -1; BlowJob[playerid] = -1; KitOffer[playerid] = -1;
UnDrugs[playerid] = 0; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; PlayerTied[playerid] = 0; Detektivschutz[playerid] = 0;
RegistrationStep[playerid] = 0; ConnectedToPC[playerid] = 0; JailPrice[playerid] = 0; MedicBill[playerid] = -1; MedicBillTimer[playerid] = -1; LoginTimer[playerid] = -1; Handyraubtimer[playerid] = -1; GoChase[playerid] = -1; ContractTaked[playerid] = 0; Maske[playerid] = 0; OrderReady[playerid] = 0; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0; EventEingeladen[playerid] = 0; TransportDuty[playerid] = 0;
BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicAccepted[playerid] = -1; WhelAccepted[playerid] = -1; MechanicCallTime[playerid] = 0; TobyPoints[playerid] = 0; FindTimePoints[playerid] = 0; TobyTime[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; Mobile[playerid] = -1; Music[playerid] = 0;
Spectate[playerid] = -1; PlayerDrunkTime[playerid] = 0; WheelmanAccepted[playerid] = -1; HaveDonuts[playerid] = 0; EatDonutAktive[playerid] = 0; PilotenDuty[playerid] = 0; Route[playerid] = 0; Angekommen[playerid] = 0; Geladen[playerid] = 0; LadeGeld[playerid] = 0; GeldStatus[playerid] = 0; Busdienst[playerid] = 0; Orten[playerid] = 0; Runterholen[playerid] = 0; ContractSperre[playerid] = 0;
gLastCar[playerid] = 0; WantedLoseAllow[playerid] = 0; SpawnKillAktiv[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; TogAdminChat[playerid] = 0; TogLoginLogout[playerid] = 1; TogAdminMessage[playerid] = 1;
gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0; PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; PlayerStonedTime[playerid] = 0;
TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; CodesHolding[playerid] = 0; TazerCan[playerid] = 0;
MatsHolding[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; PlayerInfo[playerid][pCash] = 0; Blitzed[playerid] = 0;
TransportValue[playerid] = 0; TransportMoney[playerid] = 0; WTransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
PlayerPaintballing[playerid] = 0; PlayerTeamPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
FallAngenommen[playerid] = -1; FallAngenommenTimer[playerid] = 0; FallAngenommenAnwalt[playerid] = -1;
ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; TotenOffer[playerid] = 999; InviteOffer[playerid] = -1; InviteTeam[playerid] = -1;
AntiAFKCode[playerid] = 0; AntiAFKTime[playerid] = 0; AntiAFKTimer[playerid] = 0; AFKChecker[playerid] = -1; InviteOrgOffer[playerid] = -1; InviteOrgTeam[playerid] = -1;
Kleidungsshop[playerid] = -1; AFKKick[playerid] = 0; PlayerInfo[playerid][pJoinhaben] = 0;
AFKModus[playerid] = 0;
JobFreeze[playerid] = 0; Weedkaufen[playerid] = 0; HotdogTime[playerid] = 0; //HotdogLager[playerid] = 0;
TicketSys[playerid][TSAdminID] = -1; PlayerInfo[playerid][pLKWLic] = 0;
TicketSys[playerid][TSUserID] = -1; PlayerInfo[playerid][CurrentPos][0] = 0; PlayerInfo[playerid][CurrentPos][1] = 0; PlayerInfo[playerid][CurrentPos][2] = 0;
strmid(TicketSys[playerid][TSText], "------", 0, strlen("------"), 255);
WantedHackZeit[playerid] = -1; HackArt[playerid] = 0; WantedHackKunde[playerid] = -1;
ImPrison[playerid] = 0;
ImCPPrison[playerid] = 0;
HackAnzahl[playerid] = 0;
DrugOffer[playerid] = 999;
DrugPrice[playerid] = 0;
DrogenGenommen[playerid] = 0;
DrugGram[playerid] = 0;
bietetAn[playerid]={-1,0};
Healsperre[playerid] = 0;
SDPistol[playerid] = 0;
Neumm[playerid] = 0;
Deagle[playerid] = 0;
MP5[playerid] = 0;
Shotgun[playerid] = 0;
AK47[playerid] = 0;
M4[playerid] = 0;
Rifle[playerid] = 0;
GivePlayerMoneys(playerid,PlayerInfo[playerid][pCash]); PlayerInfo[playerid][pBerg] = 0; PlayerInfo[playerid][pWarimVersteck] = 0; PlayerInfo[playerid][pAufgabe1] = 0; PlayerInfo[playerid][pHatschon] = 0; PlayerInfo[playerid][pSchongeandert] = 0;
PlayerInfo[playerid][pZigarette] = 0; PlayerInfo[playerid][pHatschon1] = 0;
PlayerInfo[playerid][pAuftrag1] = 0; PlayerInfo[playerid][pAuftrag2] = 0; PlayerInfo[playerid][pAuftrag3] = 0; PlayerInfo[playerid][pAuftrag4] = 0; PlayerInfo[playerid][pAuftrag5] = 0; PlayerInfo[playerid][pAuftrag6] = 0; PlayerInfo[playerid][pAuftrag7] = 0; PlayerInfo[playerid][pAuftrag8] = 0; PlayerInfo[playerid][pAuftrag9] = 0;
PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pStatus] = 0 ; PlayerInfo[playerid][pAdmin] = 0; PlayerInfo[playerid][pStartbonus] = 0; PlayerInfo[playerid][pKreditkartebenutzen] = 0; PlayerInfo[playerid][pKreditkarte] = 0; PlayerInfo[playerid][pGebDatum] = 0; PlayerInfo[playerid][pPersonalausweis] = 0;
PlayerInfo[playerid][pGewaschen] = 0; PlayerInfo[playerid][pAndreasLohn] = 0; PlayerInfo[playerid][pKartoffelnhaben] = 0; PlayerInfo[playerid][pKartoffelwaschen] = 0; PlayerInfo[playerid][pGehalt] = 0; PlayerInfo[playerid][pBanned] = 0; PlayerInfo[playerid][pGeldsack] = 0; PlayerInfo[playerid][pSchwul] = 0; PlayerInfo[playerid][pVerwarnung] = 0;
PlayerInfo[playerid][sPfandflaschen] = 0; PlayerInfo[playerid][pJonnysagt] = 0; PlayerInfo[playerid][pAlexsagt] = 0; PlayerInfo[playerid][pGuntersagt] = 0; PlayerInfo[playerid][pDrogenSamen] = 0;
PlayerInfo[playerid][pSchlagen] = 0; PlayerInfo[playerid][pBrecheisen] = 0; PlayerInfo[playerid][pReingegangen] = 0; PlayerInfo[playerid][pRausgegangen] = 0; PlayerInfo[playerid][pWheelmangerufen] = 0; PlayerInfo[playerid][pMedickit] = 0;
PlayerInfo[playerid][pDonatorRank] = 0; PlayerInfo[playerid][gPupgrade] = 0; PlayerInfo[playerid][pConnectTime] = 0; PlayerInfo[playerid][pReg] = 0; PlayerInfo[playerid][pSex] = 0; PlayerInfo[playerid][pMeldunggekommen] = 0;
PlayerInfo[playerid][pAlter] = 0; PlayerInfo[playerid][pOrigin] = 0; PlayerInfo[playerid][pRespekt] = 0; PlayerInfo[playerid][pBank] = 0; PlayerInfo[playerid][pJobLohn] = 0; PlayerInfo[playerid][pCrimes] = 0;
PlayerInfo[playerid][pDeaths] = 0; PlayerInfo[playerid][pArrested] = 0; PlayerInfo[playerid][pArrestTime] = 0; PlayerInfo[playerid][pPhoneBook] = 0;
PlayerInfo[playerid][pLottoNr] = 0; PlayerInfo[playerid][pFishes] = 0; PlayerInfo[playerid][pBiggestFish] = 0; PlayerInfo[playerid][pJob] = 0; PlayerInfo[playerid][pHeadValue] = 0;
PlayerInfo[playerid][pJailed] = 0; PlayerInfo[playerid][pJailTime] = 0; PlayerInfo[playerid][pMats] = 0; PlayerInfo[playerid][pSaveMats] = 0;
PlayerInfo[playerid][pDrugs] = 0;PlayerInfo[playerid][pSaveDrugs] = 0; PlayerInfo[playerid][pLeader] = -1; PlayerInfo[playerid][pMember] = -1; PlayerInfo[playerid][pRank] = 0;
PlayerInfo[playerid][pVertragszeit] = 5; PlayerInfo[playerid][pWirdtot] = 0;
PlayerInfo[playerid][pNewsSkill] = 0;
PlayerInfo[playerid][pFishSkill] = 0; PlayerInfo[playerid][pSHealth] = 50.0; PlayerInfo[playerid][pLocal] = -1; PlayerInfo[playerid][pMuted] = 0; PlayerInfo[playerid][pCoints] = 0; PlayerInfo[playerid][pGeiselnahme] = 0; Geiselnahme[playerid] = -1;
PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pPistolSkill] = 0; PlayerInfo[playerid][pMaschinePistolSkill] = 0; PlayerInfo[playerid][pSturmgewehrPistolSkill] = 0; PlayerInfo[playerid][pShotGunSkill] = 0;
PlayerInfo[playerid][pCarLicPoints] = 0; PlayerInfo[playerid][pBikeLicPoints] = 0; PlayerInfo[playerid][pZollpass] = 0; PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pGun3] = 0;
PlayerInfo[playerid][pMechSkill] = 0; PlayerInfo[playerid][pGun4] = 0; PlayerInfo[playerid][pAmmo1] = 0; PlayerInfo[playerid][pAmmo2] = 0; PlayerInfo[playerid][pAmmo3] = 0; PlayerInfo[playerid][pAmmo4] = 0;
PlayerInfo[playerid][pCarTime] = 0; PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayDayHad] = 0; PlayerInfo[playerid][pCDPlayer] = 0; PlayerInfo[playerid][pAlcoholPerk] = 0; PlayerInfo[playerid][pTeam] = -1; PlayerInfo[playerid][pNummer] = 0;
PlayerInfo[playerid][pPhotelkey] = -1; PlayerInfo[playerid][pBizKey] = -1; PlayerInfo[playerid][pCarLic] = 0; PlayerInfo[playerid][pFlyLic] = 0;
PlayerInfo[playerid][pPainKillerPerk] = 0; PlayerInfo[playerid][pDrugPerk] = 0; PlayerInfo[playerid][pMiserPerk] = 0; PlayerInfo[playerid][pTraderPerk] = 0;
PlayerInfo[playerid][pWarns] = 0;PlayerInfo[playerid][pFuel] = 0; PlayerInfo[playerid][pWantedLevel] = 0; PlayerInfo[playerid][pAdminOnDuty] = 0; PlayerInfo[playerid][pHurensohn] = 0; PlayerInfo[playerid][pHandyRob] = 0; PlayerInfo[playerid][pBankrob] = 0;
PlayerInfo[playerid][pInviteSperre] = 0; PlayerInfo[playerid][pWarnTime1] = 0; PlayerInfo[playerid][pWarnTime2] = 0; PlayerInfo[playerid][pImRaub] = 0; PlayerInfo[playerid][pTicketsopen] = 0; PlayerInfo[playerid][pSQLID] = -1; PlayerInfo[playerid][pHaus] = 0; PlayerInfo[playerid][pMieten] = 0;
PlayerInfo[playerid][pRolex] = 0; PlayerInfo[playerid][pSwissonic] = 0; PlayerInfo[playerid][pCasio] = 0; PlayerInfo[playerid][pBreitling] = 0; PlayerInfo[playerid][pNixon] = 0; PlayerInfo[playerid][pIceWatch] = 0; PlayerInfo[playerid][pHealPaket] = 0; PlayerInfo[playerid][pOverHealPaket] = 0;
PlayerInfo[playerid][pArmourPaket] = 0; PlayerInfo[playerid][pWaffenPaket] = 0;
strmid(PlayerInfo[playerid][pWerberName], "Niemand", 0, strlen("Niemand"), 255);
strmid(PlayerInfo[playerid][pForceName], "Niemand", 0, strlen("Niemand"), 255);
strmid(PlayerInfo[playerid][pOldName], "Niemand", 0, strlen("Niemand"), 255);
strmid(PlayerInfo[playerid][pOrgaName], "Keine", 0, strlen("Keine"), 255);
PlayerInfo[playerid][pOrgaID] = -1;
PlayerInfo[playerid][pOrgaLeader] = -1;
PlayerInfo[playerid][pOrgaManager] = -1;
PlayerInfo[playerid][pTut] = 0;
PlayerInfo[playerid][pTruckHaengerID] = -1;
PlayerInfo[playerid][pTHProdukte] = 0;
PlayerInfo[playerid][pDonatorZeit] = 0;
PlayerInfo[playerid][pFightingStyle] = 0;
PlayerInfo[playerid][pHandy] = 0;
PlayerInfo[playerid][pStartCoints] = 0;
PlayerInfo[playerid][pOnDutySkin] = 60;
PlayerInfo[playerid][pSpawnhealZeit] = 0;
PlayerInfo[playerid][pDeaglespawnZeit] = 0;
PlayerInfo[playerid][pM4SpawnZeit] = 0;
PlayerInfo[playerid][pMP5SpawnZeit] = 0;
PlayerInfo[playerid][pArmorSpawnZeit] = 0;
PlayerInfo[playerid][pMehrZinsenZeit] = 0;
ClearCrime(playerid);
ClearFishes(playerid);
ClearCooking(playerid);
ClearGroceries(playerid);
ClearMarriage(playerid);
//Car System//
for(new h = 0; h < MaxVeh[playerid]; h++){
Carlist[playerid][h][Typ]=-1;
Carlist[playerid][h][pos_x]=0.0;
Carlist[playerid][h][pos_y]=0.0;
Carlist[playerid][h][pos_z]=0.0;
Carlist[playerid][h][z_angle]=0.0;
Carlist[playerid][h][Status]=0;
Carlist[playerid][h][Lock]=0;
Carlist[playerid][h][Carid]=-1;
Carlist[playerid][h][Farbe1]=-1;
Carlist[playerid][h][Farbe2]=-1;
Carlist[playerid][h][mod1]=-1;
Carlist[playerid][h][mod2]=-1;
Carlist[playerid][h][mod3]=-1;
Carlist[playerid][h][mod4]=-1;
Carlist[playerid][h][mod5]=-1;
Carlist[playerid][h][mod6]=-1;
Carlist[playerid][h][mod7]=-1;
Carlist[playerid][h][mod8]=-1;
Carlist[playerid][h][mod9]=-1;
Carlist[playerid][h][mod10]=-1;
Carlist[playerid][h][mod11]=-1;
Carlist[playerid][h][mod12]=-1;
Carlist[playerid][h][mod13]=-1;
Carlist[playerid][h][mod14]=-1;
Carlist[playerid][h][mod15]=-1;
Carlist[playerid][h][mod16]=-1;
Carlist[playerid][h][mod17]=-1;
Carlist[playerid][h][Paintjob]=-1;
Carlist[playerid][h][OwnerID] = playerid;
Carlist[playerid][h][SpawnSaveX]=0.0;
Carlist[playerid][h][SpawnSaveY]=0.0;
Carlist[playerid][h][SpawnSaveZ]=0.0;
Carlist[playerid][h][SpawnSaveRot]=0.0;
Carlist[playerid][h][TankVolumen]=0;
Carlist[playerid][h][RepairTime] = 0;
Carlist[playerid][h][Versicherung] = 0;
Carlist[playerid][h][Abschleppzeit] = 0;
Carlist[playerid][h][Meter] = 0;
Carlist[playerid][h][Changed] = false;
}
Spectating[playerid] = -1;
//TUTORIAL88
Tut[0] = CreatePlayerTextDraw(playerid,437.428588, 251.953338, "usebox");
PlayerTextDrawLetterSize(playerid,Tut[0], 0.000000, 16.323331);
PlayerTextDrawTextSize(playerid,Tut[0], 192.285720, 0.000000);
PlayerTextDrawAlignment(playerid,Tut[0], 1);
PlayerTextDrawColor(playerid,Tut[0], 0);
PlayerTextDrawUseBox(playerid,Tut[0], true);
PlayerTextDrawBoxColor(playerid,Tut[0], 102);
PlayerTextDrawSetShadow(playerid,Tut[0], 0);
PlayerTextDrawSetOutline(playerid,Tut[0], 0);
PlayerTextDrawFont(playerid,Tut[0], 0);
Tut[1] = CreatePlayerTextDraw(playerid,268.190490, 256.000000, "Tutorial");
PlayerTextDrawLetterSize(playerid,Tut[1], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,Tut[1], 1);
PlayerTextDrawColor(playerid,Tut[1], -1);
PlayerTextDrawSetShadow(playerid,Tut[1], 0);
PlayerTextDrawSetOutline(playerid,Tut[1], 1);
PlayerTextDrawBackgroundColor(playerid,Tut[1], 51);
PlayerTextDrawFont(playerid,Tut[1], 2);
PlayerTextDrawSetProportional(playerid,Tut[1], 1);
Tut[2] = CreatePlayerTextDraw(playerid,220.952514, 275.626708, "0");
PlayerTextDrawLetterSize(playerid,Tut[2], 8.475517, -0.268799);
PlayerTextDrawAlignment(playerid,Tut[2], 1);
PlayerTextDrawColor(playerid,Tut[2], -1);
PlayerTextDrawSetShadow(playerid,Tut[2], 0);
PlayerTextDrawSetOutline(playerid,Tut[2], 1);
PlayerTextDrawBackgroundColor(playerid,Tut[2], 51);
PlayerTextDrawFont(playerid,Tut[2], 1);
PlayerTextDrawSetProportional(playerid,Tut[2], 1);
Tut[3] = CreatePlayerTextDraw(playerid, 308.571441, 273.066680, "Willkommen auf");
PlayerTextDrawLetterSize(playerid, Tut[3], 0.361238, 2.393598);
PlayerTextDrawAlignment(playerid, Tut[3], 2);
PlayerTextDrawColor(playerid, Tut[3], -5963521);
PlayerTextDrawSetShadow(playerid, Tut[3], 0);
PlayerTextDrawSetOutline(playerid, Tut[3], 1);
PlayerTextDrawBackgroundColor(playerid, Tut[3], 51);
PlayerTextDrawFont(playerid, Tut[3], 1);
PlayerTextDrawSetProportional(playerid, Tut[3], 1);
Tut[4] = CreatePlayerTextDraw(playerid,307.809448, 303.360015, "Hier ist die Bank of Los Santos.~n~Hier kannst du viele mögliche Dinge machen!");
PlayerTextDrawLetterSize(playerid,Tut[4], 0.215333, 1.301333);
PlayerTextDrawAlignment(playerid,Tut[4], 2);
PlayerTextDrawColor(playerid,Tut[4], -1);
PlayerTextDrawSetShadow(playerid,Tut[4], 0);
PlayerTextDrawSetOutline(playerid,Tut[4], 1);
PlayerTextDrawBackgroundColor(playerid,Tut[4], 51);
PlayerTextDrawFont(playerid,Tut[4], 1);
PlayerTextDrawSetProportional(playerid,Tut[4], 1);
Payday[0] = CreatePlayerTextDraw(playerid, 115.523803, 155.526657, "usebox");
PlayerTextDrawLetterSize(playerid, Payday[0], 0.000000, 17.318891);
PlayerTextDrawTextSize(playerid, Payday[0], 2.952381, 0.000000);
PlayerTextDrawAlignment(playerid, Payday[0], 1);
PlayerTextDrawColor(playerid, Payday[0], 0);
PlayerTextDrawUseBox(playerid, Payday[0], true);
PlayerTextDrawBoxColor(playerid, Payday[0], 102);
PlayerTextDrawSetShadow(playerid, Payday[0], 0);
PlayerTextDrawSetOutline(playerid, Payday[0], 0);
PlayerTextDrawFont(playerid, Payday[0], 0);
Payday[1] = CreatePlayerTextDraw(playerid, 25.142864, 159.573348, "Payday!");
PlayerTextDrawLetterSize(playerid, Payday[1], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Payday[1], 1);
PlayerTextDrawColor(playerid, Payday[1], -16776961);
PlayerTextDrawSetShadow(playerid, Payday[1], 0);
PlayerTextDrawSetOutline(playerid, Payday[1], 1);
PlayerTextDrawBackgroundColor(playerid, Payday[1], 51);
PlayerTextDrawFont(playerid, Payday[1], 3);
PlayerTextDrawSetProportional(playerid, Payday[1], 1);
Payday[2] = CreatePlayerTextDraw(playerid, 5.333301, 178.346694, "0");
PlayerTextDrawLetterSize(playerid, Payday[2], 4.892666, 0.268799);
PlayerTextDrawAlignment(playerid, Payday[2], 1);
PlayerTextDrawColor(playerid, Payday[2], -1);
PlayerTextDrawSetShadow(playerid, Payday[2], 0);
PlayerTextDrawSetOutline(playerid, Payday[2], 1);
PlayerTextDrawBackgroundColor(playerid, Payday[2], 51);
PlayerTextDrawFont(playerid, Payday[2], 1);
PlayerTextDrawSetProportional(playerid, Payday[2], 1);
Payday[3] = CreatePlayerTextDraw(playerid, 9.904723, 184.320037, "Alter Stand: 220.000$");
PlayerTextDrawLetterSize(playerid, Payday[3], 0.174571, 1.408000);
PlayerTextDrawAlignment(playerid, Payday[3], 1);
PlayerTextDrawColor(playerid, Payday[3], -1);
PlayerTextDrawSetShadow(playerid, Payday[3], 0);
PlayerTextDrawSetOutline(playerid, Payday[3], 1);
PlayerTextDrawBackgroundColor(playerid, Payday[3], 51);
PlayerTextDrawFont(playerid, Payday[3], 1);
PlayerTextDrawSetProportional(playerid, Payday[3], 1);
//Rot
Hacker[0] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Hacker[0], 0.000000, 49.413703);
PlayerTextDrawTextSize(playerid, Hacker[0], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Hacker[0], 1);
PlayerTextDrawColor(playerid, Hacker[0], 0);
PlayerTextDrawUseBox(playerid, Hacker[0], true);
PlayerTextDrawBoxColor(playerid, Hacker[0], -16776961);
PlayerTextDrawSetShadow(playerid, Hacker[0], 0);
PlayerTextDrawSetOutline(playerid, Hacker[0], 0);
PlayerTextDrawFont(playerid, Hacker[0], 0);
//Weiß
Hacker[1] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Hacker[1], 0.000000, 49.413703);
PlayerTextDrawTextSize(playerid, Hacker[1], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Hacker[1], 1);
PlayerTextDrawColor(playerid, Hacker[1], 0);
PlayerTextDrawUseBox(playerid, Hacker[1], true);
PlayerTextDrawBoxColor(playerid, Hacker[1], -1);
PlayerTextDrawSetShadow(playerid, Hacker[1], 0);
PlayerTextDrawSetOutline(playerid, Hacker[1], 0);
PlayerTextDrawFont(playerid, Hacker[1], 0);
//Schwarz
Hacker[2] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Hacker[2], 0.000000, 49.413703);
PlayerTextDrawTextSize(playerid, Hacker[2], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Hacker[2], 1);
PlayerTextDrawColor(playerid, Hacker[2], 0);
PlayerTextDrawUseBox(playerid, Hacker[2], true);
PlayerTextDrawBoxColor(playerid, Hacker[2], 255);
PlayerTextDrawSetShadow(playerid, Hacker[2], 0);
PlayerTextDrawSetOutline(playerid, Hacker[2], 0);
PlayerTextDrawFont(playerid, Hacker[2], 0);
//Orange
Hacker[3] = CreatePlayerTextDraw(playerid, 641.619079, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Hacker[3], 0.000000, 49.413703);
PlayerTextDrawTextSize(playerid, Hacker[3], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Hacker[3], 1);
PlayerTextDrawColor(playerid, Hacker[3], 0);
PlayerTextDrawUseBox(playerid, Hacker[3], true);
PlayerTextDrawBoxColor(playerid, Hacker[3], -5963521);
PlayerTextDrawSetShadow(playerid, Hacker[3], 0);
PlayerTextDrawSetOutline(playerid, Hacker[3], 0);
PlayerTextDrawFont(playerid, Hacker[3], 0);
for(new i = 0; i < MaxUberweisung; i++)
strmid(Uberweisungen[playerid][i], "Keine Überweisungen vorhanden", 0, strlen("Keine Überweisung vorhanden"), 255);
if(IsPlayerNPC(playerid)) {
gPlayerAccount[playerid] = 1;
gPlayerLogged[playerid] = 1;
if(strcmp(playername, "Drogendealer", true) == 0) {
PlayerInfo[playerid][pChar] = 29;
SetPlayerSkin(playerid, 29);
SpawnPlayer(playerid);
}else if(strcmp(playername, "Coinshop", true) == 0) {
PlayerInfo[playerid][pChar] = 28;
SetPlayerSkin(playerid, 28);
SpawnPlayer(playerid);
}else if(strcmp(playername, "Stadthalle", true) == 0) {
PlayerInfo[playerid][pChar] = 11;
SetPlayerSkin(playerid, 11);
SpawnPlayer(playerid);
}else if(strcmp(playername, "Mitarbeiter", true) == 0) {
PlayerInfo[playerid][pChar] = 187;
SetPlayerSkin(playerid, 187);
SpawnPlayer(playerid);
}else if(strcmp(playername, "BSN", true) == 0) {
PlayerInfo[playerid][pChar] = 205;
SetPlayerSkin(playerid, 205);
SpawnPlayer(playerid);
}else if(strcmp(playername, "Dimitri", true) == 0) {
PlayerInfo[playerid][pChar] = 29;
SetPlayerSkin(playerid, 29);
SpawnPlayer(playerid);
}else if(strcmp(playername, "Manfred", true) == 0) {
PlayerInfo[playerid][pChar] = 57;
SetPlayerSkin(playerid, 57);
SpawnPlayer(playerid);
}else if(strcmp(playername, "Nico", true) == 0) {
PlayerInfo[playerid][pChar] = 58;
SetPlayerSkin(playerid, 58);
SpawnPlayer(playerid);
}
}
new plrIP[16],string[258];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
PlayerInfo[playerid][pChar] = 1;
SpawnPlayer(playerid);
format(string, sizeof(string), "{FFA500}Spieler{FBF8EF}: %s [ID: %d] hat den Server betreten.",playername, playerid);
ForAllPlayers(i) {
WantedLabel[playerid][i] = -1;
if(IsPlayerConnected(i)) {
if(TogLoginLogout[i] == 0) {
SendClientMessage(i, COLOR_LIGHTGREEN, string); //Connect message
} } }
new VAR = 0,TextString[123];
new BanHammer[128], BanReason[128], BPZeit;
SetPlayerColor(playerid, COLOR_GRAD2);
format(TextString, sizeof(TextString), "SELECT * FROM `bannedplayers` WHERE `Name`='%s'", playername);
self_mysql_queryEx(TextString);
mysql_store_result(MySQLConnection);
if(mysql_num_rows(MySQLConnection) != 0)
{
mysql_fetch_row_format(TextString);
new val[256];
self_mysql_get_field("Reason", val); strmid(BanReason, val, 0, strlen(val), 255);
self_mysql_get_field("Hammer", val); strmid(BanHammer, val, 0, strlen(val), 255);
self_mysql_get_field("Time", val); BPZeit = strval( val );
if(BPZeit != -1)
{
if(BPZeit > Time())
{
VAR = 1;
}
else
{
format(TextString, sizeof(TextString), "DELETE FROM `bannedplayers` WHERE `Name`='%s'", playername);
self_mysql_queryEx(TextString);
VAR = 0;
}
}
else
{
VAR = 1;
}
if(VAR == 1)
{
if(BPZeit == -1)
{
ShowPlayerMarkers(400);
SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0);
LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
TogglePlayerControllable(playerid,0);
SetTimerEx("SetConnectBan",200,0,"i",playerid);
return 1;
}
else
{
ShowPlayerMarkers(400);
SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0);
LoginTimer[playerid] = SetTimerEx("Tobyistgeil",20000,0,"i",playerid);
TogglePlayerControllable(playerid,0);
SetTimerEx("SetConnectTimeBan",200,0,"i",playerid);
return 1;
}
}
}
return 1;
}
Alles anzeigen