Hallo
Sobald ich folgende Codes einfüge da sie davor nicht geklappt haben werden die Stats nicht mehr richtig angezeigt:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_PASSENGER)
{
new pOldCar[MAX_PLAYERS];
pOldCar[playerid] = GetPlayerVehicleID(playerid);
if(pOldCar[playerid] == BotCarDirk)
{
SendClientMessage(playerid,COLOR_GREEN,"Dirk: Du bezahlst 20$ für dein Busticket.");
GivePlayerMoneys(playerid,-20);
}
}
new string[256],string1[200],string2[30],string3[40],string4[20],
playername[MAX_PLAYER_NAME];
ForAllPlayers(i)
{
if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && Spectate[i] == playerid)
{
if(oldstate == PLAYER_STATE_ONFOOT && (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER))
{
PlayerSpectateVehicle(i,GetPlayerVehicleID(playerid));
}
else if((oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) && newstate == PLAYER_STATE_ONFOOT)
{
PlayerSpectatePlayer(i,playerid);
}
}
}
GetPlayerName(playerid, playername, sizeof(playername));
if(newstate == PLAYER_STATE_ONFOOT)
{
AllowTune[playerid] = -1;
if(oldstate == PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(gLastCar[playerid]) == 440 || GetVehicleModel(gLastCar[playerid]) == 456 || GetVehicleModel(gLastCar[playerid]) == 552)
{
if(Gas[gLastCar[playerid]] < 100)
{
new VID,
FillUp,
TankKosten;
VID = gLastCar[playerid];
FillUp = GasMax - Gas[VID];
TankKosten = FillUp * 15;
Gas[VID] += FillUp;
format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (15$ pro Liter)betankt.", TankKosten);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoneys(playerid, -TankKosten);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
}
if(GetVehicleModel(gLastCar[playerid]) == 515 || GetVehicleModel(gLastCar[playerid]) == 532 || GetVehicleModel(gLastCar[playerid]) == 437 || GetVehicleModel(gLastCar[playerid]) == 431)
{
if(Gas[gLastCar[playerid]] < 100)
{
new VID,
FillUp,
TankKosten;
VID = gLastCar[playerid];
FillUp = GasMax - Gas[VID];
TankKosten = FillUp * 30;
Gas[VID] += FillUp;
format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (30$ pro Liter)betankt.", TankKosten);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoneys(playerid, -TankKosten);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
}
if(GetVehicleModel(gLastCar[playerid]) == 420 || GetVehicleModel(gLastCar[playerid]) == 438)
{
if(Gas[gLastCar[playerid]] < 100)
{
new VID,
FillUp,
TankKosten;
VID = gLastCar[playerid];
FillUp = GasMax - Gas[VID];
TankKosten = FillUp * 5;
Gas[VID] += FillUp;
format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (5$ pro Liter)betankt.", TankKosten);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoneys(playerid, -TankKosten);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
}
if(TransporterRobberID == playerid)
{
for(new h=0; h<sizeof(RobTransporter); h++){
if(gLastCar[playerid] == RobTransporter[h]){
DisablePlayerCheckpoint(playerid);
TransporterRobberID = -1;
CP[playerid] = 0;
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(gLastCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(gLastCar[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_LIGHTBLUE, " Das Ausrauben des Banktransporters ist fehlgeschlagen");
format(string, sizeof(string), "Funk: %s ist beim versuch den Geldtransporter zu Stehlen gescheitert.!", playername);
SendCopMessage(COLOR_RADIO,string);
}}}
if(PlayerInfo[playerid][pJob] == 17)
{
for(new h=0; h<sizeof(StatdreiniegerAuto); h++){
if(gLastCar[playerid] == StatdreiniegerAuto[h]){
if(CP[playerid] >= 74 && CP[playerid] <= 90){
DisablePlayerCheckpoint(playerid);
CP[playerid] = 0;
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(gLastCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(gLastCar[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, COLOR_LIGHTBLUE, " Du hast die Reiniegung abgebrochen und bekommst daher kein Geld !");
}}}}
new VEH = gLastCar[playerid];
if(Locked[VEH] == 1){
Locked[VEH] = 0;
ForAllPlayers(i){SetVehicleParamsForPlayer(VEH,i, 0, 0);}
}
if(Spectating[playerid] != -1 || GangAutoSpectating[playerid] != -1)
{
Spectating[playerid] = -1;
GangAutoSpectating[playerid] = -1;
}
}
if(oldstate == PLAYER_STATE_PASSENGER)
{
if(PlayerTied[playerid] == 1)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE, "Du wirst in 15 Sekunden Automatich vom System unfreezt!");
SetTimerEx("TieUnfreeze",15000,0,"i",playerid);
}
}
TextDrawHideForPlayer(playerid,Tacho[playerid]);
TextDrawHideForPlayer(playerid,Tacho1[playerid]);
TextDrawHideForPlayer(playerid,Tacho2[playerid]);
TextDrawHideForPlayer(playerid,Tacho3[playerid]);
TextDrawHideForPlayer(playerid,Tacho4[playerid]);
TextDrawHideForPlayer(playerid,Tacho5[playerid]);
TextDrawHideForPlayer(playerid,Tacho7[playerid]);
TextDrawHideForPlayer(playerid,Tacho6[playerid]);
//TextDrawHideForPlayer(playerid,AntiAFK[playerid]);
if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
{
PlayerInKart[playerid] = 0;
KartingPlayers --;
}
if(TransportDuty[playerid] > 0)
{
if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
else if(TransportDuty[playerid] == 2)
{
BusDrivers -= 1;
}
TransportDuty[playerid] = 0;
StopEngine(playerid,gLastCar[playerid]);
format(string, sizeof(string), "* Du bist nun ausser Dienst und hast $%d verdient.", TransportMoney[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoneys(playerid, TransportMoney[playerid]);
TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
SetPlayerToTeamColor(playerid);
}
if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
TransportTime[TransportDriver[playerid]] = 0;
TransportCost[TransportDriver[playerid]] = 0;
format(string, sizeof(string), "~w~Taxikosten~n~~r~$%d",TransportCost[playerid]);
GameTextForPlayer(playerid, string, 5000, 1);
format(string, sizeof(string), "~w~Passagier verlässt das Taxi~n~~g~Lohn $%d",TransportCost[playerid]);
GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
GivePlayerMoneys(playerid, -TransportCost[playerid]);
TransportCost[playerid] = 0;
TransportTime[playerid] = 0;
TransportDriver[playerid] = 999;
}
}
if(WantedHackZeit[playerid] > 0)
{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht mehr in deinem Hacker Van, daher wurde dein Hackversuch abgebrochen !");
WantedHackZeit[playerid] = -1;
WantedHackKunde[playerid] = -1;
JobFreeze[playerid] = 600;
SendCopMessage(COLOR_RADIO, "Funk: Der Hackversuch wurde abgebrochen{FF0000} (Ausgestiegen)");
TogglePlayerControllable(playerid, 1);
}
}
if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER){
new vehicleid = GetPlayerVehicleID(playerid);
if(VehRadio[vehicleid] == 0){ StopAudioStreamForPlayer(playerid);}
else if(VehRadio[vehicleid] == 1){ PlayAudioStreamForPlayer(playerid, "http://www.antenne.de/webradio/antenne.m3u");}
else if(VehRadio[vehicleid] == 2){ PlayAudioStreamForPlayer(playerid, "http://www.antenne.de/webradio/channels/chillout.m3u");}
else if(VehRadio[vehicleid] == 3){ PlayAudioStreamForPlayer(playerid, "http://85.25.86.69:8100/listen.pls");}
else if(VehRadio[vehicleid] == 4){ PlayAudioStreamForPlayer(playerid, "http://www.ndr.de/resources/metadaten/audio/m3u/ndrloop25.m3u");}
else if(VehRadio[vehicleid] == 5){ PlayAudioStreamForPlayer(playerid, "http://bcb-high.rautemusik.fm/listen.pls");}
else if(VehRadio[vehicleid] == 6){ PlayAudioStreamForPlayer(playerid, "http://house-high.rautemusik.fm/rm.page//listen.pls");}
else if(VehRadio[vehicleid] == 7){ PlayAudioStreamForPlayer(playerid, "http://listen.dancecore.fm/listen.pls");}
else if(VehRadio[vehicleid] == 8){ PlayAudioStreamForPlayer(playerid, "http://www.shape-fm.de/mp3.pls");}
else if(VehRadio[vehicleid] == 9){ PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/aacplus.pls");}
else if(VehRadio[vehicleid] == 10){ PlayAudioStreamForPlayer(playerid, "http://club-high.rautemusik.fm/rm.page//listen.pls");}
else if(VehRadio[vehicleid] == 11){ PlayAudioStreamForPlayer(playerid, "http://harder-high.rautemusik.fm/listen.pls");}
else if(VehRadio[vehicleid] == 12){ PlayAudioStreamForPlayer(playerid, "http://ahdjs.net/listen.pls");}
else if(VehRadio[vehicleid] == 13){ PlayAudioStreamForPlayer(playerid, "http://listen.hardbase.fm/aacplus.pls");}
else if(VehRadio[vehicleid] == 14){ PlayAudioStreamForPlayer(playerid, "http://jam-high.rautemusik.fm/rm.page//listen.pls");}
else if(VehRadio[vehicleid] == 15){ PlayAudioStreamForPlayer(playerid, "http://blackbeats.fm/listen.m3u");}
else if(VehRadio[vehicleid] == 16){ PlayAudioStreamForPlayer(playerid, "http://truehiphophigh.dyndns.org:9020/listen.pls");}
else if(VehRadio[vehicleid] == 17){ PlayAudioStreamForPlayer(playerid, "http://www.jazz.fm/streaming/JAZZFM91.pls");}
else if(VehRadio[vehicleid] == 18){ PlayAudioStreamForPlayer(playerid, "http://rock-high.rautemusik.fm//listen.pls");}
else if(VehRadio[vehicleid] == 19){ PlayAudioStreamForPlayer(playerid, "http://metal-only.blitz-stream.de/listen.m3u");}
else if(VehRadio[vehicleid] == 20){ PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen.m3u");}
else if(VehRadio[vehicleid] == 21){ PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen2.m3u");}
else if(VehRadio[vehicleid] == 22){ PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen3.m3u");}
}
if(newstate == PLAYER_STATE_PASSENGER){
new vehicleid = GetPlayerVehicleID(playerid);
if(GetPlayerWeapon(playerid) != 29) {
SetPlayerArmedWeapon(playerid, 29); }
GetPlayerName(playerid, playername, sizeof(playername));
if(PlayerInfo[playerid][pAdminOnDuty] == 0){
if(PlayerInfo[playerid][pJailed] != 0)
{
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), ">> %s wurde bei dem versuch in ein Auto zu steigen gekillt <<", playername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}}
ForAllPlayers(i){
if(IsPlayerConnected(i)){
if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0){
if(PlayerInfo[playerid][pCash] < TransportValue[i]){
format(string, sizeof(string), "* Du brauchst $%d um in das Taxi einsteigen zu können.", TransportValue[i]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
RemovePlayerFromVehicle(playerid);
}
else{
if(TransportDuty[i] == 1)
{
format(string, sizeof(string), "* Du bezahlst $%d an den Taxifahrer.", TransportValue[i]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Gast %s hat das Taxi betreten.", playername);
SendClientMessage(i, COLOR_LIGHTBLUE, string);
TransportTime[i] = 1;
TransportTime[playerid] = 1;
TransportCost[playerid] = TransportValue[i];
TransportCost[i] = TransportValue[i];
TransportDriver[playerid] = i;
}
else if(TransportDuty[i] == 2)
{
format(string, sizeof(string), "* Du bezahlst $%d an den Busfahrer.", TransportValue[i]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Gast %s hat den Bus betreten.", playername);
SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
GivePlayerMoneys(playerid, - TransportValue[i]);
TransportMoney[i] += TransportValue[i];
}}}}}
if(newstate == PLAYER_STATE_DRIVER){
gLastCar[playerid] = GetPlayerVehicleID(playerid);
// format(string,sizeof(string),"~w~Geschw: \t~g~0 km/h ~n~~w~Benzin:\t~g~ %d%%~n~~w~Fahrzeug:\t~p~ %s",Gas[GetPlayerVehicleID(playerid)],VehNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
new VID = GetPlayerVehicleID(playerid);
new value,
Float:xX,
Float:yY,
Float:zZ,
Float:X,
Float:Y,
Float:Z;
GetVehiclePos(VID, xX, yY, zZ);
GetVehicleVelocity(VID, X, Y, Z);
value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
new Speed[20];
new Float:leben;
if(value >= 0 && value <= 75){Speed = "~g~";}
if(value > 75){Speed = "~r~";}
new Tank[20];
if(Gas[VID] > 10 && Gas[VID] <= 20){Tank = "~y~";}
if(Gas[VID] <= 10){Tank = "~r~";}
if(Gas[VID] > 20){Tank = "~g~";}
//GetVehicleHealth(VID,leben);
VehSpeed[VID] = value;
GetVehicleHealth(VID,leben);
format(string,sizeof(string),"~r~%s",VehNames[GetVehicleModel(VID)-400]);
format(string1,sizeof(string1),"~r~KM/H:~g~ %d",value);
format(string2,sizeof(string2),"~r~Tank:~g~ %s %d", Tank, Gas[VID]);
format(string4,sizeof(string4),"~r~Zustand:~g~ %.1f",leben/10);
format(string3,sizeof(string3),"~r~KM:~g~ Deaktiviert");
TextDrawSetString(Tacho3[playerid], string);
TextDrawSetString(Tacho4[playerid],string1);
TextDrawSetString(Tacho6[playerid],string2);
TextDrawSetString(Tacho5[playerid],string4);
TextDrawSetString(Tacho7[playerid],string3);
TextDrawShowForPlayer(playerid, Tacho[playerid]);
TextDrawShowForPlayer(playerid, Tacho1[playerid]);
TextDrawShowForPlayer(playerid, Tacho2[playerid]);
TextDrawShowForPlayer(playerid, Tacho3[playerid]);
TextDrawShowForPlayer(playerid, Tacho4[playerid]);
TextDrawShowForPlayer(playerid, Tacho5[playerid]);
TextDrawShowForPlayer( playerid,Tacho6[playerid]);
TextDrawShowForPlayer(playerid, Tacho7[playerid]);
//TextDrawShowForPlayer(playerid, AntiAFK[playerid]);
new newcar = GetPlayerVehicleID(playerid);
new typ = IsAutohausCar(newcar);
new GATyp = IsGangAutohausCar(newcar);
if(GetVehicleModel(newcar) == 447 || GetVehicleModel(newcar) == 425 || GetVehicleModel(newcar) == 432)
{
if(IsACop(playerid) && OnDuty[playerid] == 1 || PlayerInfo[playerid][pAdminOnDuty] == 1)
{
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Du kannst in dieses Fahrzeug nicht einsteigen, du wurdest gekickt");
Kick(playerid);
}
}
GetPlayerName(playerid, playername, sizeof(playername));
SetPlayerArmedWeapon(playerid, 0);
//new string[128];
//Autohaus
if(PlayerInfo[playerid][pAdminOnDuty] == 0){
if(PlayerInfo[playerid][pJailed] != 0){
SetPlayerHealth(playerid, 0);
format(string, sizeof(string), ">> %s wurde bei dem versuch in ein Auto zu steigen gekillt <<", playername);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}}
if(typ != -1){
if(Kaufliste[typ][Autohaus] == 2 && PlayerInfo[playerid][pDonatorRank] != 2){
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Donator Rank !");
RemovePlayerFromVehicle(playerid);
return 1;
}
//TogglePlayerControllable(playerid,0);
Spectating[playerid] = typ;
ForAllPlayers(i){
if(IsPlayerConnected(i)){
SetVehicleParamsForPlayer(newcar, i, 0, 1);
}}
SendClientMessage(playerid, COLOR_GRÜN, "~*~ Autohaus ~*~");
format(string,sizeof(string),"Name: %s",Kaufliste[typ][Name]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof(string),"Preis: %s$",GetPoint(Kaufliste[typ][Preis]));
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof(string),"Reparaturkosten: %s$",GetPoint(Kaufliste[typ][Reparatur]));
SendClientMessage(playerid, COLOR_YELLOW, string);
SendClientMessage(playerid, COLOR_GREEN, "Dieses Fahrzeug ist zu verkaufen. Um es zu kaufen, benutze: /buycar");
}
//Autohaus Ende
if(GATyp != -1){
if(PlayerInfo[playerid][pLeader] != -1 || PlayerInfo[playerid][pRank] == 12 && PlayerInfo[playerid][pMember] != -1){
//TogglePlayerControllable(playerid,0);
GangAutoSpectating[playerid] = GATyp;
ForAllPlayers(i){
if(IsPlayerConnected(i)){
SetVehicleParamsForPlayer(newcar, i, 0, 1);
}}
SendClientMessage(playerid, COLOR_GRÜN, "~*~ GangAutohaus ~*~");
format(string,sizeof(string),"Name: %s",GangAutoKaufliste[GATyp][GAName]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof(string),"Preis: %s$",GetPoint(GangAutoKaufliste[GATyp][GAPreis]));
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof(string),"Reparaturkosten: %s$",GetPoint(GangAutoKaufliste[GATyp][GAReparatur]));
SendClientMessage(playerid, COLOR_YELLOW, string);
SendClientMessage(playerid, COLOR_GREEN, "Dieses Fahrzeug ist zu verkaufen. Um es zu kaufen, benutze: /buygangcar");
//SendClientMessage(playerid, COLOR_GREEN, "Um das Fahrzeug zu verlassen, benutze: /exitcar");
}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Leader !");
RemovePlayerFromVehicle(playerid);
}}
if(IsARad(newcar)){
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(newcar,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
if(PlayerInfo[playerid][pConnectTime] < 10 && !IsARad(newcar)) SendClientMessage(playerid, COLOR_GRÜN, " /motor um den Motor zu Starten! /licht um das licht zu starten!.(/motorhelp) !");
if(IsABoat(newcar)){
if(PlayerInfo[playerid][pBoatLic] != 1){
if(TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Bootschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid,1);
return 1;
}}}
else if(IsAPlane(newcar)){
if(PlayerInfo[playerid][pFlyLic] != 1){
if(TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Flugschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1);
return 1;
}}}
else if(IsAMotorrad(newcar)){
if(PlayerInfo[playerid][pCarLic] != 1)
{
if(TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast kein Führerschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1);
return 1;
}}}
else if(IsALKW(newcar)){
if(PlayerInfo[playerid][pCarLic] != 1){
if(TakingLesson[playerid] == 1){}
else{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast kein Führerschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1;
}}}
else{
if(PlayerInfo[playerid][pCarLic] != 1){
if(GetPlayerDrunkLevel(playerid) >= 2000){
PlayerInfo[playerid][pWantedLevel] += 1;
SetPlayerCriminal(playerid, 255, "Fahren unter Drogen/Alkohol einfluss");
}
else if(TakingLesson[playerid] == 1 || TakingLesson[playerid] == 2){
}
else if(IsAFahrrad(newcar) || GetVehicleModel(newcar) == 462)
{
// SendClientMessage(playerid, COLOR_LIGHTRED, " Fahrzeuge wie Faggio's und Fahrräder darf man bei uns auch ohne Führerschein fahren, also sehr gut geeignet für Neulinge.");
// SendClientMessage(playerid, COLOR_LIGHTRED, " In der Stadthalle kannst du den Führerschein machen, benutze /navi um die Stadthalle zu finden.");
}
else
{
SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Führerschein !");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,1);
return 1;
}
}
else if(GetPlayerDrunkLevel(playerid) >= 2000)
{
PlayerInfo[playerid][pWantedLevel] += 1;
SetPlayerCriminal(playerid, 255, "Fahren unter Drogen/Alkohol einfluss");
}
}
if(GetVehicleModel(newcar) == 440 || GetVehicleModel(newcar) == 456)
{
format(string, sizeof(string), "Produkte: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
SendClientMessage(playerid, COLOR_GRÜN, string);
SendClientMessage(playerid, COLOR_WHITE, "Soldat: Hier gibt es Materalien");
SendClientMessage(playerid, COLOR_WHITE, "Soldat: Gebe folgendes ein /load /buyprods /sellprods");
}
for(new h=0; h<sizeof(RobTransporter); h++){
if(GetPlayerVehicleID(playerid) == RobTransporter[h]){
if(IsACop(playerid) && OnDuty[playerid] == 1)
{
}
else
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_GREY, "Nutze '/robtransporter' um den Banktransporter auszurauben, oder /exit um ihn zu verlassen!");
}
}
}
for(new h=0; h<sizeof(PilotFlug); h++){
if(GetPlayerVehicleID(playerid) == PilotFlug[h]){
if(PlayerInfo[playerid][pJob] == 18 || PlayerInfo[playerid][pAdmin] >= 2000)
{
SendClientMessage(playerid, COLOR_GREY, "Fliege nun zum Verlassenden Flughafen nach LV, dort angekommen, nutze /loadimport.");
SetPlayerCheckpoint(playerid,365.2481, 2536.8669, 16.6653, 15);
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Pilot.");
}}}
for(new h=0; h<sizeof(StatdreiniegerAuto); h++){
if(GetPlayerVehicleID(playerid) == StatdreiniegerAuto[h]){
if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pAdmin] >= 1337)
{
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_GREY, "Nutze '/streetcleaning' um die reiniegung zu beginnen, oder /exit um abzubrechen!");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "Du bist nicht bei der Stadtreiniegung!");
}}}
if(IsATaxiFahrerCar(newcar)){
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_GREY, " ");
SendClientMessage(playerid, COLOR_RED, "_____________ Taxi _____________");
SendClientMessage(playerid, COLOR_YELLOW, "Wenn du dir Geld durch Taxi fahren dazu verdienen möchtest,");
SendClientMessage(playerid, COLOR_YELLOW, "gib /fare [Preis] ein oder um abzubrechen /exit");
SendClientMessage(playerid, COLOR_GREY, " ");
}
if(IsABusFahrerCar(newcar)){
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_GREY, " ");
SendClientMessage(playerid, COLOR_RED, "_____________ Bus _____________");
SendClientMessage(playerid, COLOR_YELLOW, "Wenn du dir Geld durch Bus fahren dazu verdienen möchtest,");
SendClientMessage(playerid, COLOR_YELLOW, "gib /fare [Preis] ein oder um abzubrechen /exit");
SendClientMessage(playerid, COLOR_GREY, " ");
}
for(new h = 0; h < sizeof(Karts); h++){
if(newcar == Karts[h]){
if(PlayerKarting[playerid] != 1){
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, " Du nimmst an keinem Kartrennen teil! Gib beim gelben 'i' /enter ein.");
}
else{
PlayerInKart[playerid] = 1;
KartingPlayers ++;
}}}}
return 1;
}
Wird dieser Code nicht richtig angezeigt:
public ShowStats(playerid, targetid)
{
if(IsPlayerConnected(playerid) && IsPlayerConnected(targetid))
{
new cash = PlayerInfo[targetid][pCash];
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Los Santos"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "San Fierro"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Las Venturas"; }
new TeamText[20];
if(PlayerInfo[targetid][pMember] == -1 && PlayerInfo[targetid][pLeader] == -1) { TeamText = "Zivilist"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { TeamText = "LV-PD"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { TeamText = "Drift Access"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { TeamText = "Feuerwehr"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { TeamText = "Medic"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { TeamText = "La Cosa Nostra"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { TeamText = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7) { TeamText = "FBI"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8) { TeamText = "Hitman Agency"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { TeamText = "News Reporter"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { TeamText = "Wheelman Agency"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { TeamText = "Fahrschullehrer"; }
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12) { TeamText = "Regierung"; }
else if(PlayerInfo[targetid][pMember] == 13 || PlayerInfo[targetid][pLeader] == 13) { TeamText = "Ordnungsamt"; }
else if(PlayerInfo[targetid][pMember] == 14 || PlayerInfo[targetid][pLeader] == 14) { TeamText = "LS-PD"; }
else if(PlayerInfo[targetid][pMember] == 15 || PlayerInfo[targetid][pLeader] == 15) { TeamText = "Biker Boys"; }
else if(PlayerInfo[targetid][pMember] == 16 || PlayerInfo[targetid][pLeader] == 16) { TeamText = "SF-PD"; }
else if(PlayerInfo[targetid][pMember] == 17 || PlayerInfo[targetid][pLeader] == 17) { TeamText = "Camorra"; }
else if(PlayerInfo[targetid][pMember] == 18 || PlayerInfo[targetid][pLeader] == 18) { TeamText = "V.L.Aztecas"; }
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19) { TeamText = "Grove Street"; }
else if(PlayerInfo[targetid][pMember] == 20 || PlayerInfo[targetid][pLeader] == 20) { TeamText = "Ballas"; }
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21) { TeamText = "West Coast Customs"; }
else if(PlayerInfo[targetid][pMember] == 22 || PlayerInfo[targetid][pLeader] == 22) { TeamText = "Triaden"; }
else if(PlayerInfo[targetid][pMember] == 23 || PlayerInfo[targetid][pLeader] == 23) { TeamText = "Red Soldiers"; }
else if(PlayerInfo[targetid][pMember] == 24 || PlayerInfo[targetid][pLeader] == 24) { TeamText = "L.S.Vagos"; }
else if(PlayerInfo[targetid][pMember] == 25 || PlayerInfo[targetid][pLeader] == 25) { TeamText = "Guerilla"; }
else if(PlayerInfo[targetid][pMember] == 26 || PlayerInfo[targetid][pLeader] == 26) { TeamText = "Cali Kartell"; }
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
else if(STDPlayer[targetid] == 2) { dtext = "Tripper"; }
else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
else { dtext = "Keine"; }
new jtext[20];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Anwalt"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Hacker"; }
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "KFZ-Mechaniker"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Taschedieb"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffenhändler"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Bauer"; }
else if(PlayerInfo[targetid][pJob] == 11) { jtext = "Hotdog-Verkäufer"; }
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Tuner"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Trucker"; }
else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Stadtreiniger"; }
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Pilot"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Kurierfahrer"; }
else if(PlayerInfo[targetid][pJob] == 20) { jtext = "Müllmann"; }
else if(PlayerInfo[targetid][pJob] == 21) { jtext = "Busfahrer"; }
else { jtext = "Arbeitslos"; }
new drank[20];
if(PlayerInfo[targetid][pDonatorRank] == 1) { drank = "Premium"; }
else if(PlayerInfo[targetid][pDonatorRank] == 2)
{
drank = "Donator";
}
else { drank = "Normal"; }
new married[24];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
GetPlayerRankText(targetid);
new age = PlayerInfo[targetid][pAlter],
ptime = PlayerInfo[targetid][pConnectTime],
lotto = PlayerInfo[targetid][pLottoNr],
deaths = PlayerInfo[targetid][pDeaths],
fishes = PlayerInfo[targetid][pFishes],
bigfish = PlayerInfo[targetid][pBiggestFish],
crimes = PlayerInfo[targetid][pCrimes],
warrests = PlayerInfo[targetid][pArrestTime]/20,
drugs = PlayerInfo[targetid][pDrugs],
SaveMats = PlayerInfo[targetid][pSaveMats],
SaveDrugs = PlayerInfo[targetid][pSaveDrugs],
mats = PlayerInfo[targetid][pMats],
SaveCodes = PlayerInfo[targetid][pSaveCodes],
Codes = PlayerInfo[targetid][pCodes],
wanted = PlayerInfo[targetid][pWantedLevel],
level = PlayerInfo[targetid][pLevel],
exp = PlayerInfo[targetid][pRespekt],
kills = PlayerInfo[targetid][pKills],
skills = PlayerInfo[targetid][psKills],
Nummer = PlayerInfo[targetid][pNummer],
account = PlayerInfo[targetid][pBank],
nxtlevel = PlayerInfo[targetid][pLevel]+1,
expamount = nxtlevel*levelexp,
costlevel = nxtlevel*levelcost,
housekey = PlayerInfo[targetid][pPhousekey],
bizkey = PlayerInfo[targetid][pBizKey],
intir = GetPlayerInterior(targetid),
local = PlayerInfo[targetid][pLocal],
warns = PlayerInfo[targetid][pWarns],
Float:shealth = PlayerInfo[targetid][pSHealth],
Float:Health,
DrunkLevel = GetPlayerDrunkLevel(targetid),
SQLid = PlayerInfo[targetid][pSQLID],
name[MAX_PLAYER_NAME],
Float:px,
Float:py,
Float:pz,
detskill,
anwaltskill,
drogenskill,
autoskill,
newsskill
,kfzskill,
fishskill,
busskill;
new level1 = PlayerInfo[playerid][pDetSkill];
if(level1 >= 0 && level1 <= 50) { detskill = 1;}
else if(level1 >= 51 && level1 <= 100) { detskill = 2;}
else if(level1 >= 101 && level1 <= 200){ detskill = 3;}
else if(level1 >= 201 && level1 <= 400) { detskill = 4;}
else if(level1 >= 401){ detskill = 5;}
new level2 = PlayerInfo[playerid][pAnwaltSkill];
if(level2 >= 0 && level2 <= 50) { anwaltskill = 1;}
else if(level2 >= 51 && level2 <= 100) { anwaltskill = 2;}
else if(level2 >= 101 && level2 <= 200) { anwaltskill = 3;}
else if(level2 >= 201 && level2 <= 400) { anwaltskill = 4;}
else if(level2 >= 401) { anwaltskill = 5;}
new level3 = PlayerInfo[playerid][pDrugsSkill];
if(level3 >= 0 && level3 <= 50) { drogenskill = 1; }
else if(level3 >= 51 && level3 <= 100) { drogenskill = 2; }
else if(level3 >= 101 && level3 <= 200) { drogenskill = 3; }
else if(level3 >= 201 && level3 <= 400) { drogenskill = 4; }
else if(level3 >= 401) { drogenskill = 5; }
new level4 = PlayerInfo[playerid][pJackSkill];
if(level4 >= 0 && level4 <= 50) { autoskill = 1; }
else if(level4 >= 51 && level4 <= 100) { autoskill = 2; }
else if(level4 >= 101 && level4 <= 200){ autoskill = 3; }
else if(level4 >= 201 && level4 <= 400){ autoskill = 4; }
else if(level4 >= 401) { autoskill = 5; }
new level5 = PlayerInfo[playerid][pNewsSkill];
if(level5 >= 0 && level5 <= 50) {newsskill = 1;}
else if(level5 >= 51 && level5 <= 100) {newsskill = 2;}
else if(level5 >= 101 && level5 <= 200) {newsskill = 3;}
else if(level5 >= 201 && level5 <= 400) {newsskill = 4;}
else if(level5 >= 401){newsskill = 5;}
new level6 = PlayerInfo[playerid][pMechSkill];
if(level6 >= 0 && level6 <= 50) {kfzskill = 1;}
else if(level6 >= 51 && level6 <= 100) {kfzskill = 2;}
else if(level6 >= 101 && level6 <= 200) {kfzskill = 3;}
else if(level6 >= 201 && level6 <= 400){kfzskill = 4;}
else if(level6 >= 401){kfzskill = 5;}
new level7 = PlayerInfo[playerid][pFishSkill];
if(level7 >= 0 && level7 <= 50) { fishskill = 1;}
else if(level7 >= 51 && level7 <= 250) { fishskill = 2;}
else if(level7 >= 251 && level7 <= 500) { fishskill = 3;}
else if(level7 >= 501 && level7 <= 999) { fishskill = 4;}
else if(level7 >= 1000) { fishskill = 5;}
new level8 = PlayerInfo[playerid][pBusSkill];
if(level8 >=0 && level8 <=25) {busskill = 1;}
else if(level8 >=26 && level8 <=50) {busskill = 2;}
else if(level8 >51 && level8 <=75) {busskill = 3;}
else if(level8 >=76 && level8 <=100) {busskill = 4;}
else if(level8 >=101 && level8 <=125) {busskill = 5;}
else if(level8 >=126 && level8 <=150){busskill = 6;}
else if(level8 >=151 && level8 <=175){busskill = 7;}
else if(level8 >=176 && level8 <=200){busskill = 8;}
else if(level8 >=201 && level8 <=225) {busskill = 9;}
else if(level8 >=226 && level8 <=250){busskill = 10;}
else if(level8 >=251 && level8 <=275) {busskill = 11;}
if(PlayerInfo[targetid][pDonatorRank] == 2)
{
costlevel = costlevel/2;
}
new coordsstring1[50];
new coordsstring2[256];
new coordsstring3[256];
new coordsstring4[256];
new coordsstring5[256];
new coordsstring6[256];
new coordsstring7[256];
new coordsstring8[256];
new coordsstring9[256];
new coordsstring10[256];
new coordsstring11[256];
new insgesamtstring[2000];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid, Health);
GetPlayerPos(targetid, px, py, pz);
format(coordsstring1, sizeof(coordsstring1),"{73FF00}Stats von %s ",name);
format(coordsstring2, sizeof(coordsstring2), "Level:[%d] Geschlecht:[%s] \nAlter:[%d] Spawnenergie:[%.1f] \nBargeld:[%s$] Bank:[%s$] \nTel.:[%d]", level,atext,age,shealth, GetPoint(cash), GetPoint(account), Nummer);
format(coordsstring3, sizeof(coordsstring3), "Accounttyp:[%s] Ehe:[%s] \nSpielzeit:[%d] Spawn:[%s] \nRespekt:[%d/%d] NextLevel:[%s$] ", drank,married,ptime,otext,exp,expamount,GetPoint(costlevel));
if(PlayerInfo[targetid][pInviteSperre] > 0 || PlayerInfo[targetid][pDonatorZeit] > 10)
{
if(PlayerInfo[targetid][pInviteSperre] > 0 && PlayerInfo[targetid][pDonatorZeit] > 10)
{
new DonatorTimes[4], DonatorTim = PlayerInfo[targetid][pDonatorZeit]-Time();
ConvertSecEx( DonatorTim , DonatorTimes[0] , DonatorTimes[1] , DonatorTimes[2] , DonatorTimes[3]);
new _converts[4], Zeit = PlayerInfo[targetid][pInviteSperre]-Time();
ConvertSecEx( Zeit , _converts[0] , _converts[1] , _converts[2] , _converts[3]);
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] \nDonator-Restzeit:[%d Tage, %d Stunden %d Minuten] \nMinuten seit Payday:[%d]", warns, DonatorTimes[3], DonatorTimes[2], DonatorTimes[1], PlayerInfo[targetid][pPayDay]);
}
if(PlayerInfo[targetid][pInviteSperre] == 0 && PlayerInfo[targetid][pDonatorZeit] > 10)
{
new DonatorTimes[4], DonatorTim = PlayerInfo[targetid][pDonatorZeit]-Time();
ConvertSecEx( DonatorTim , DonatorTimes[0] , DonatorTimes[1] , DonatorTimes[2] , DonatorTimes[3]);
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] \nDonator-Restzeit:[%d Tage, %d Stunden %d Minuten] \nMinuten seit Payday:[%d]", warns, DonatorTimes[3], DonatorTimes[2], DonatorTimes[1], PlayerInfo[targetid][pPayDay]);
}
if(PlayerInfo[targetid][pInviteSperre] > 0 && PlayerInfo[targetid][pDonatorZeit] < 10)
{
new _converts[4], Zeit = PlayerInfo[targetid][pInviteSperre]-Time();
ConvertSecEx( Zeit , _converts[0] , _converts[1] , _converts[2] , _converts[3]);
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] \nMinuten seit Payday:[%d]", warns, PlayerInfo[targetid][pPayDay]);
}
}
else
{
format(coordsstring4, sizeof(coordsstring4), "Verwarnungen:[%d] Minuten seit Payday:[%d]", warns, PlayerInfo[targetid][pPayDay]);
}
format(coordsstring5, sizeof(coordsstring5), "Team:[%s] Organisation:[%s] \nRank:[%s] \nJob:[%s]",TeamText, PlayerInfo[targetid][pOrgaName],RankText,jtext);
format(coordsstring6, sizeof(coordsstring6), "Fische:[%d] Größter Fisch:[%d] Materialien:[%d] \nDrogen:[%d] SafeMats:[%d] \nSafeDrugs:[%d] HackingCodes:[%d(+%d)/100]",fishes,bigfish,mats,drugs,SaveMats,SaveDrugs,Codes,SaveCodes);
format(coordsstring7, sizeof(coordsstring7), "LottoNr:[%d] Kondome:[%d]",lotto,Condom[targetid]);
format(coordsstring8, sizeof(coordsstring8), "Kills(DM):[%d(%d)] Tode:[%d] \nWantedLevel:[%d] \nVerbrechen:[%d] Gefängniszeit:[%d Min.] \nDM-Rate:[%0.2f]",kills,skills,deaths,wanted,crimes,warrests,Float:PlayerInfo[targetid][psKills]/Float:PlayerInfo[targetid][pConnectTime]);
format(coordsstring9, sizeof(coordsstring9), "Health:[%.1f]",Health);
if(PlayerInfo[playerid][pAdmin] >= 4)
{
format(coordsstring10, sizeof(coordsstring10), "Haus Schlüssel:[%d] Business Schlüssel:[%d] \nInterior:[%d] Location:[%d] \nIP:[%s] Logverzeichnis:[%d]", housekey,bizkey,intir,local, PlayerInfo[targetid][pUserIP],SQLid);
}
else
{
format(coordsstring10, sizeof(coordsstring10), "Haus Schlüssel:[%d] Business Schlüssel:[%d] \nInterior:[%d] Location:[%d] \nLogverzeichnis:[%d]", housekey,bizkey,intir,local,SQLid);
}
format(coordsstring11,sizeof(coordsstring11),"Detektiv-Skill: [%d]\nAnwalt-Skill: [%d]\nDealer-Skill: [%d]\nDieb-Skill: [%d]\nNews-Skill: [%d]\nMechaniker-Skill: [%d]\nFish-Skill: [%d]\nBusfahrer-Skill: [%d]",detskill,anwaltskill,drogenskill,autoskill,newsskill,kfzskill,fishskill,busskill);
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(insgesamtstring,sizeof(insgesamtstring), "\n{73FF00}[[Account]]{FFFFFF}\n%s\n%s\n%s\n\n{73FF00}[[Beruf]]{FFFFFF}\n%s\n\n{73FF00}[[Besitz]]{FFFFFF}\n%s\n%s\n\n{73FF00}[[Verbrechen]]{FFFFFF}\n%s\n\n{73FF00}[[Zustand]]{FFFFFF}\n%s\n\n{FF8200}[[Zusatz]]\n%s", coordsstring2, coordsstring3, coordsstring4, coordsstring5, coordsstring6, coordsstring7, coordsstring8, coordsstring9, coordsstring10);
ShowPlayerDialog(playerid, StatsDialoge, DIALOG_STYLE_MSGBOX, coordsstring1, insgesamtstring, "Schließen", "");
}
else
{
format(insgesamtstring,sizeof(insgesamtstring),"\n{73FF00}[[Account]]{FFFFFF}\n%s\n%s\n%s\n\n{73FF00}[[Beruf]]{FFFFFF}\n%s\n\n{73FF00}[[Besitz]]{FFFFFF}\n%s\n%s\n\n{73FF00}[[Verbrechen]]{FFFFFF}\n%s\n\n{73FF00}[[Zustand]]{FFFFFF}\n%sn\n{73FF00}[[Skill]]\n%s",coordsstring2, coordsstring3, coordsstring4, coordsstring5, coordsstring6, coordsstring7, coordsstring8,coordsstring9,coordsstring11);
ShowPlayerDialog(playerid, StatsDialoge, DIALOG_STYLE_MSGBOX, coordsstring1, insgesamtstring, "Schließen", "");
}
}
}
Dort werden Skills nicht angezeigt.
Ich hoffe ihr könnt mir helfen.
Mfg,