oky kucke ich mal gleich
aber habe diesen errror bekommen im log
oky kucke ich mal gleich
aber habe diesen errror bekommen im log
ich habe keine ackslimit in meine Server cfg
echo Executing Server Config...
lanmode 0
rcon_password Unbekannt
maxplayers 200
port 7777
hostname
plugins crashdetect sscanf MapAndreas mysql sscanf streamer
gamemode0
filterscripts
announce 0
query 1
weburl
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 150
logtimeformat [%H:%M:%S]
language German/Deutsch
password
conncookies 1
cookielogging 1
Alles anzeigen
Hallo Breadfish
ich habe folgendes Problem
ich spiele auf mein server und plötzlich werde ich gekickt und dann steht im log
"[warning] client exceeded 'ackslimit' 89.145.1.140:59259 (3545) Limit: 3000/sec"
wie kann ich das beheben
ichn habe schon "/rcon ackslimit 5000" eingegeben und es passiert nicks
printf("4/1"); das ist der letzte
also es ligt irgendwo hier der fehler
if(Spieler[playerid][pAdmin] > 0 && Spieler[playerid][pAdminOnduty] == 1)
{
printf("4/1");
SetPlayerColor(playerid,ROT);
format(string,24,"["#SERVERTAG"]%s",Spieler[playerid][pName]);
SetPlayerName(playerid,string);
AdminDienst[playerid] = Create3DTextLabel(""#HTML_RED"["#SERVERTAG"] "#HTML_WHITE" Team Mitglied im Dienst",0x0F87B53E,30.0,40.0,50.0,20.0,GetPlayerVirtualWorld(playerid),1);
printf("4/2");
}
nicks steht da das finde ich jetzt ja so komisch
weil das server crash liegt woll an onplayerspawn weil das immer noch ist
public OnPlayerSpawn(playerid)
{
new Text3D:bot_name[5],string[250];
if(IsPlayerNPC(playerid))
{
if(!strcmp(SpielerName(playerid),"[BOT]Hohle",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,159);
}
if(!strcmp(SpielerName(playerid),"[BOT]BlowJob",true))
{
SetPlayerInterior(playerid,2);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,237);
}
if(!strcmp(SpielerName(playerid),"[BOT]Kerl1",true))
{
SetPlayerInterior(playerid,2);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,170);
}
if(!strcmp(SpielerName(playerid),"[BOT]BarMannP",true))
{
SetPlayerInterior(playerid,2);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,98);
}
if(!strcmp(SpielerName(playerid),"[BOT]NutteAussen",true))
{
SetPlayerInterior(playerid,2);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,85);
bot_name[4] = Create3DTextLabel(""#HTML_WHITE"Taste N zum Interagieren", 0xFFFFFFFF, 0, 0, 0, 7.5, 4);
Attach3DTextLabelToPlayer(bot_name[4],playerid, 0.0, 0.0, 0.1);
}
if(!strcmp(SpielerName(playerid),"[BOT]KerlAussen",true))
{
SetPlayerInterior(playerid,2);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,73);
}
if(!strcmp(SpielerName(playerid),"[BOT]Gino",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,29);
}
if(!strcmp(SpielerName(playerid),"[BOT]Thor",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,113);
}
if(!strcmp(SpielerName(playerid),"[BOT]David",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,46);
}
if(!strcmp(SpielerName(playerid),"[BOT]Maik",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,59);
}
if(!strcmp(SpielerName(playerid),"[BOT]C4Heli",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,287);
Spieler[playerid][pFlugLic] = 1;
Spieler[playerid][pCarLic] = 1;
Spieler[playerid][pMotorLic] = 1;
Spieler[playerid][pBootLic] = 1;
PutPlayerInVehicle(playerid,C4Heli,0);
}
if(!strcmp(SpielerName(playerid),"[BOT]C4Soldat",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,287);
isArmyC4[playerid] = true;
new Text3D:label;
SetPVarFloat(playerid, "Leben", 100.00);
SetPVarInt(playerid, "Label", _:label);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
GiveWeapon(playerid,34,1,false);
}
if(!strcmp(SpielerName(playerid),"[BOT]ZugBot",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,61);
Spieler[playerid][pFlugLic] = 1;
Spieler[playerid][pCarLic] = 1;
Spieler[playerid][pMotorLic] = 1;
Spieler[playerid][pBootLic] = 1;
PutPlayerInVehicle(playerid,ZugBotAuto,0);
}
if(!strcmp(SpielerName(playerid),"[BOT]Stadthalle6",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
}
if(!strcmp(SpielerName(playerid),"[BOT]Stadthalle3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,250);
}
if(!strcmp(SpielerName(playerid),"[BOT]Stadthalle1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,93);
}
if(!strcmp(SpielerName(playerid),"[BOT]Park8",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,259);
}
if(!strcmp(SpielerName(playerid),"[BOT]Park6",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,60);
}
if(!strcmp(SpielerName(playerid),"[BOT]Park5",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,59);
}
if(!strcmp(SpielerName(playerid),"[BOT]Park1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,93);
}
if(!strcmp(SpielerName(playerid),"[BOT]Motorrad5",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,60);
}
if(!strcmp(SpielerName(playerid),"[BOT]Motorrad4",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,55);
}
if(!strcmp(SpielerName(playerid),"[BOT]Motorrad1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,170);
}
if(!strcmp(SpielerName(playerid),"[BOT]Masken",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,143);
bot_name[0] = Create3DTextLabel(""#HTML_WHITE"Taste N zum Interagieren", 0xFFFFFFFF, 0, 0, 0, 7.5, 4);
Attach3DTextLabelToPlayer(bot_name[0],playerid, 0.0, 0.0, 0.1);
}
if(!strcmp(SpielerName(playerid),"[BOT]Binco4",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,98);
}
if(!strcmp(SpielerName(playerid),"[BOT]Binco1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,170);
}
if(!strcmp(SpielerName(playerid),"[BOT]Autohaus5",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,170);
}
if(!strcmp(SpielerName(playerid),"[BOT]Autohaus1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,20);
}
if(!strcmp(SpielerName(playerid),"[BOT]Direktor",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,57);
bot_name[1] = Create3DTextLabel("{3399FF}| Bank Direktor |\n{FFFFFF}Anvisieren mit einer Waffe um den Bankraub zu beginnen\nund Warnschuss abgeben", 0xFFFFFFFF, 0, 0, 0, 7.5, 4);
Attach3DTextLabelToPlayer(bot_name[1],playerid, 0.0, 0.0, 0.1);
}
if(!strcmp(SpielerName(playerid),"[BOT]Wache1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
new Text3D:label;
SetPVarFloat(playerid, "Leben", 100.00);
format(string,128,""#HTML_GREEN"[ Sicherheitsdienst ]\n"#HTML_RED"Leben: "#HTML_WHITE"100");
label = Create3DTextLabel(string, GRAU, 0.0, 0.0, 0.0, 7.0, 0);
SetPVarInt(playerid, "Label", _:label);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
GiveWeapon(playerid,25,1,false);
istNPCWache[playerid] = true;
}
if(!strcmp(SpielerName(playerid),"[BOT]Wache2",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
new Text3D:label;
SetPVarFloat(playerid, "Leben", 100.00);
format(string,128,""#HTML_GREEN"[ Sicherheitsdienst ]\n"#HTML_RED"Leben: "#HTML_WHITE"100");
label = Create3DTextLabel(string, GRAU, 0.0, 0.0, 0.0, 7.0, 0);
SetPVarInt(playerid, "Label", _:label);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
GiveWeapon(playerid,25,1,false);
istNPCWache[playerid] = true;
}
if(!strcmp(SpielerName(playerid),"[BOT]Wache3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
new Text3D:label;
SetPVarFloat(playerid, "Leben", 100.00);
format(string,128,""#HTML_GREEN"[ Sicherheitsdienst ]\n"#HTML_RED"Leben: "#HTML_WHITE"100");
label = Create3DTextLabel(string, GRAU, 0.0, 0.0, 0.0, 7.0, 0);
SetPVarInt(playerid, "Label", _:label);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
GiveWeapon(playerid,25,1,false);
istNPCWache[playerid] = true;
}
if(!strcmp(SpielerName(playerid),"[BOT]Wache4",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
new Text3D:label;
SetPVarFloat(playerid, "Leben", 100.00);
format(string,128,""#HTML_GREEN"[ Sicherheitsdienst ]\n"#HTML_RED"Leben: "#HTML_WHITE"100");
label = Create3DTextLabel(string, GRAU, 0.0, 0.0, 0.0, 7.0, 0);
SetPVarInt(playerid, "Label", _:label);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1);
GiveWeapon(playerid,25,1,false);
istNPCWache[playerid] = true;
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,12);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank2",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,17);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,55);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank6",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,184);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank7",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,148);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank8",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,186);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank10",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,170);
}
if(!strcmp(SpielerName(playerid),"[BOT]Bank12",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
}
if(!strcmp(SpielerName(playerid),"[BOT]RollerVerkauf",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,180);
bot_name[2] = Create3DTextLabel("{FF0000}|Jack|{3399FF}\n| Roller Verkauf |\n{FFFFFF}Taste 'N' zum Interagieren\nRollerkosten: 50$", 0xFFFFFFFF, 0, 0, 0, 40.0, 4);
Attach3DTextLabelToPlayer(bot_name[2],playerid, 0.0, 0.0, 0.1);
}
if(!strcmp(SpielerName(playerid),"[BOT]Friseur",true))
{
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,241);
}
if(!strcmp(SpielerName(playerid),"[BOT]BallonFahrt",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,185);
bot_name[3] = Create3DTextLabel("{3399FF}| Ballon Fahrt |\n{FFFFFF}Taste 'N' zum Interagieren", 0xFFFFFFFF, 0, 0, 0, 7.5, 4);
Attach3DTextLabelToPlayer(bot_name[3],playerid, 0.0, 0.0, 0.1);
}
if(!strcmp(SpielerName(playerid),"[BOT]Noob1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,56);
}
if(!strcmp(SpielerName(playerid),"[BOT]Noob3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,60);
}
if(!strcmp(SpielerName(playerid),"[BOT]Noob7",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,90);
}
if(!strcmp(SpielerName(playerid),"[BOT]Noob8",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,71);
}
if(!strcmp(SpielerName(playerid),"[BOT]Sicherheit1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,166);
}
if(!strcmp(SpielerName(playerid),"[BOT]Sicherheit2",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,165);
}
if(!strcmp(SpielerName(playerid),"[BOT]Luxus1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,186);
}
if(!strcmp(SpielerName(playerid),"[BOT]Luxus2",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,188);
}
if(!strcmp(SpielerName(playerid),"[BOT]Luxus3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,150);
}
if(!strcmp(SpielerName(playerid),"[BOT]ChefHolz",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,153);
}
if(!strcmp(SpielerName(playerid),"[BOT]BarDame",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,172);
}
if(!strcmp(SpielerName(playerid),"[BOT]BarMann",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,171);
}
if(!strcmp(SpielerName(playerid),"[BOT]Tanz1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,60);
}
if(!strcmp(SpielerName(playerid),"[BOT]Tanz2",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,59);
}
if(!strcmp(SpielerName(playerid),"[BOT]Tanz3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,143);
}
if(!strcmp(SpielerName(playerid),"[BOT]TanzReich",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,98);
}
if(!strcmp(SpielerName(playerid),"[BOT]Tanz8",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,91);
}
if(!strcmp(SpielerName(playerid),"[BOT]Tanz9",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,60);
}
if(!strcmp(SpielerName(playerid),"[BOT]Dodo1",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,61);
Spieler[playerid][pFlugLic] = 1;
PutPlayerInVehicle(playerid,DodoWerbung[0],0);
}
if(!strcmp(SpielerName(playerid),"[BOT]Dodo2",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,61);
Spieler[playerid][pFlugLic] = 1;
PutPlayerInVehicle(playerid,DodoWerbung[1],0);
}
if(!strcmp(SpielerName(playerid),"[BOT]Dodo3",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,61);
Spieler[playerid][pFlugLic] = 1;
PutPlayerInVehicle(playerid,DodoWerbung[2],0);
}
if(!strcmp(SpielerName(playerid),"[BOT]Dodo4",true))
{
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkin(playerid,61);
Spieler[playerid][pFlugLic] = 1;
PutPlayerInVehicle(playerid,DodoWerbung[3],0);
}
return true;
}
if(Spieler[playerid][Eingeloggt] == 1 && !IsPlayerNPC(playerid))
{
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
for(new wp = 0; wp <3;wp++) PlayerTextDrawHide(playerid,SkillDraw[playerid][wp]);
if(Spieler[playerid][pAdmin] > 0 && Spieler[playerid][pAdminOnduty] == 1)
{
SetPlayerColor(playerid,ROT);
format(string,24,"["#SERVERTAG"]%s",Spieler[playerid][pName]);
SetPlayerName(playerid,string);
AdminDienst[playerid] = Create3DTextLabel(""#HTML_RED"["#SERVERTAG"] "#HTML_WHITE" Team Mitglied im Dienst",0x0F87B53E,30.0,40.0,50.0,20.0,GetPlayerVirtualWorld(playerid),1);
Attach3DTextLabelToPlayer(AdminDienst[playerid],playerid,0.0,0.0,0.6);
}
GangZoneHideForPlayer(playerid,fischerzone);
CreateErfolg(playerid,35,"Neugeboren","Spawne neu nach einen","Tot oder Relogg",1,10);
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
UnFreeze(playerid);
SetPlayerACHealth(playerid,99.99);
SetPlayerWorldBounds(playerid,20000.0000, -20000.0000, 20000.0000, -20000.0000);
if(schneean == 1) SetTimerEx("CreateSchnee",40000,false,"i",playerid);
if(Spieler[playerid][pAdminOnduty] == 1)
{
SetPlayerColor(playerid,ROT);
}
if(Spieler[playerid][pEingesperrt] == 1)
{
SetPlayerSkinEx(playerid,62);
new pdrandom = random(3);
SetPlayerWeather(playerid, 1);
SendClientMessage(playerid,WEISS,""#HTML_RED"Info: "#HTML_WHITE"Du bist im Knast!");
SendClientMessage(playerid,WEISS,""#HTML_RED"Info: "#HTML_WHITE"Verwende '/knastzeit' für eine Übersicht deiner verbleibenden Zeit!");
if(Spieler[playerid][pCuffed] == 1)
{
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
RemovePlayerAttachedObject(playerid,6);
Spieler[playerid][pCuffed] = 0;
}
if(pdrandom == 1)
{
SetPlayerPosEx(playerid,2565.5803,-122.6399,-81.8141);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
if(pdrandom == 2)
{
SetPlayerPosEx(playerid,2566.8472,-126.2727,-81.8141);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
else
SetPlayerPosEx(playerid,-2565.0432,-129.3921,-81.8141);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
if(Spieler[playerid][pEingesperrt] == 2)
{
SetPlayerSkinEx(playerid,62);
new fbirandom = random(4);
SetPlayerWeather(playerid, 1);
SendClientMessage(playerid,WEISS,""#HTML_RED"Info: "#HTML_WHITE"Du bist im Knast!");
SendClientMessage(playerid,WEISS,""#HTML_RED"Info: "#HTML_WHITE"Verwende '/knastzeit' für eine Übersicht deiner verbleibenden Zeit!");
if(Spieler[playerid][pCuffed] == 1)
{
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
RemovePlayerAttachedObject(playerid,6);
Spieler[playerid][pCuffed] = 0;
}
if(fbirandom == 1)
{
SetPlayerPosEx(playerid,214.9694, 109.9100, 999.0160);
SetPlayerInterior(playerid,10);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
if(fbirandom == 2)
{
SetPlayerPosEx(playerid,218.9317, 110.2861, 999.0160);
SetPlayerInterior(playerid,10);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
if(fbirandom == 2)
{
SetPlayerPosEx(playerid,222.6597, 110.8108, 999.0160);
SetPlayerInterior(playerid,10);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
else
SetPlayerPosEx(playerid,226.8989, 111.1386, 999.0160);
SetPlayerInterior(playerid,10);
Freeze(playerid);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
if(minigamespieler[playerid] == 1)
{
SetPlayerWeather(playerid, 1);
SetPlayerPosEx(playerid,MINIGAMEARENA);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerACHealth(playerid,99.99);
}
if(Paintball[playerid] > 0)
{
SetPlayerWeather(playerid, 1);
new rSpawn = random(sizeof(PBSpawns));
ResetWeapons(playerid,false);
SetPlayerPosEx(playerid,PBSpawns[rSpawn][0],PBSpawns[rSpawn][1],PBSpawns[rSpawn][2]);
SetPlayerInterior(playerid,30);
SetPlayerACHealth(playerid,99.99);
SetACArmour(playerid,100);
if(Paintball[playerid] == 2)
{
new count = 0,teamwhitecount = 0,teambluecount = 0;
SetPlayerVirtualWorld(playerid,31);
for(new i= 0; i <MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(Paintball[i] == 2)
{
count++;
if(TDPPaintballTeam[i] == 1) teamwhitecount++;
if(TDPPaintballTeam[i] == 2) teambluecount++;
}
}
}
if(teamwhitecount > teambluecount) TDPPaintballTeam[playerid] = 2;
if(teamwhitecount < teambluecount) TDPPaintballTeam[playerid] = 1;
switch(TDPPaintballTeam[playerid])
{
case 1:
{
SendClientMessage(playerid,GRAU,""#HTML_RED"Team: "#HTML_WHITE"Du bist im Team Weiß");
GiveWeapon(playerid,24,500,false);
GiveWeapon(playerid,25,500,false);
GiveWeapon(playerid,29,500,false);
GiveWeapon(playerid,31,500,false);
GiveWeapon(playerid,34,500,false);
SetPlayerSkin(playerid,83);
}
case 2:
{
SendClientMessage(playerid,GRAU,""#HTML_RED"Team: "#HTML_WHITE"Du bist im Team Weiß");
GiveWeapon(playerid,24,500,false);
GiveWeapon(playerid,25,500,false);
GiveWeapon(playerid,29,500,false);
GiveWeapon(playerid,31,500,false);
GiveWeapon(playerid,34,500,false);
SetPlayerSkin(playerid,84);
}
}
}
else if(Paintball[playerid] == 1)
{
SetPlayerVirtualWorld(playerid,30);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,999);
GiveWeapon(playerid,24,500,false);
GiveWeapon(playerid,25,500,false);
GiveWeapon(playerid,29,500,false);
GiveWeapon(playerid,31,500,false);
GiveWeapon(playerid,34,500,false);
return true;
}
}
if(Spieler[playerid][pEingesperrt] == 0 && Paintball[playerid] == 0 && minigamespieler[playerid] == 0)
{
switch(Spieler[playerid][pSpawn])
{
case 0: //Zivi
{
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
SetPlayerColor(playerid,WEISS);
SetPlayerPosEx(playerid,NOOBSPAWNSPAWN);
SetPlayerFacingAngle(playerid,-90.00);
SetPlayerInterior(playerid,NOOBSPAWNSPAWNINT);
SetPlayerVirtualWorld(playerid,NOOBSPAWNSPAWNWELT);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 1: //Fraktion
{
switch(Spieler[playerid][pFraktion])
{
case 1://Polizei
{
SetPlayerWeather(playerid, 1);
SetPlayerColor(playerid,WEISS);
Freeze(playerid);
SetPlayerPosEx(playerid,-2516.1130,-105.6042,-81.8141+1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
}
case 2: //Kripo
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,SPAWNKRIPO+1);
SetPlayerInterior(playerid,10);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 3: //Arzt
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 4: //ADAC
{
Freeze(playerid);
SetPlayerPosEx(playerid,1798.7173,-2045.3315,13.5560);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 5: //News reporter
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,NEWSSPAWN+1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
GiveWeapon(playerid,43,999,false);
GiveWeapon(playerid,41,999,false);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 7: //grove Street
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,2496.4373,-1708.6318,1014.7422+1);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,5);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 8: //Ballas
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,331.9128,1121.5629,1083.8903+1);
SetPlayerInterior(playerid,5);
SetPlayerVirtualWorld(playerid,5);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 11: //Yakuza
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,222.3797, 1040.6150, 1158.2000+1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 12: //Triaden
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,961.2267,98.2043,1001.2659+1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 13: //Fahrschule
{
Freeze(playerid);
SetPlayerPosEx(playerid,FSSpawn+1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 14: //Feuerwehr
{
Freeze(playerid);
SetPlayerPosEx(playerid,SPAWNFEUERWEHR+1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
case 15: //Terroristen
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerPosEx(playerid,307.7416,307.4384,1003.3047+1);
SetPlayerInterior(playerid,4);
SetPlayerVirtualWorld(playerid,0);
SetPlayerSkinEx(playerid,Spieler[playerid][pFraktSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
}
}
case 2: // Haus
{
new hausid;
SetPlayerWeather(playerid, 1);
if(Spieler[playerid][pHouseID] != defaulth) { hausid = Spieler[playerid][pHouseID]; }
if(Spieler[playerid][pMieter] != defaulth) { hausid = Spieler[playerid][pMieter]; }
SetPlayerPosEx(playerid,HouseInfo[hausid][hiPos][0],HouseInfo[hausid][hiPos][1],HouseInfo[hausid][hiPos][2]);
SetPlayerInterior(playerid,HouseInfo[hausid][hint]);
SetPlayerVirtualWorld(playerid,HouseInfo[hausid][hvWorld]);
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
CreateErfolg(playerid,38,"Trautes Heim","Spawne zum ersten","mal in deinem Haus",1,10);
}
case 3: //Hotel
{
if(Spieler[playerid][CheckInDoppel] == 1)
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerInterior(playerid,Spieler[playerid][CheckInInt]);
SetPlayerVirtualWorld(playerid,Spieler[playerid][CheckInWelt]);
SetPlayerPosEx(playerid,-2734.2800,-728.5209,3157.7061);
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
else if(Spieler[playerid][CheckInEinzel] == 1)
{
SetPlayerWeather(playerid, 1);
Freeze(playerid);
SetPlayerInterior(playerid,Spieler[playerid][CheckInInt]);
SetPlayerVirtualWorld(playerid,Spieler[playerid][CheckInWelt]);
SetPlayerPosEx(playerid,-2738.9231,-776.1133,3157.7158);
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
TextDrawShowForPlayer(playerid, AllesSchwarz[0]);
TextDrawShowForPlayer(playerid, AllesSchwarz[1]);
TextDrawShowForPlayer(playerid, AllesSchwarz[2]);
SetTimerEx("EntfernungSpawnFreeze",5000,false,"i",playerid);
}
}
case 4: //Wohnwagen
{
for(new slot=0;slot<MAX_PLAYER_VEHS;slot++)
{
if(IsValidVehicle(Pfahrzeug[slot][playerid][Vehicle]))
{
if(Pfahrzeug[slot][playerid][modelid] == 508)
{
SetPlayerWeather(playerid, 1);
SetPlayerPosEx(playerid,767.9480,1402.6608,-4.5741);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,Pfahrzeug[slot][playerid][Vehicle]);
SetPlayerWorldBounds(playerid,20000.0000,-20000.0000,20000.0000,-20000.0000);
PlayerInJourney[playerid] = Pfahrzeug[slot][playerid][Vehicle];
}
}
}
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
}
case 5:
{
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
SetPlayerPosEx(playerid,Spieler[playerid][pSpawnGrundKords][0],Spieler[playerid][pSpawnGrundKords][1],Spieler[playerid][pSpawnGrundKords][2]);
}
}
}
if(Spieler[playerid][pTot] == 1 && Spieler[playerid][pAdminOnduty] == 0 && MedicOnline > 0)
{
if(GetPlayerInterior(playerid) == 0 && GetPlayerVirtualWorld(playerid) == 0)
{
Delete3DTextLabel(gestorben[playerid]);
SetPlayerPosEx(playerid,Spieler[playerid][TotKord][0],Spieler[playerid][TotKord][1],Spieler[playerid][TotKord][2]);
Freeze(playerid);
ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,1,1,0,0,1);
format(string,sizeof(string),"Spieler %s [ID: %i] benötigt\neinen Rettungsdienst\n",SpielerName(playerid),playerid);
gestorben[playerid] = Create3DTextLabel(string,WEISS,Spieler[playerid][TotKord][0],Spieler[playerid][TotKord][1],Spieler[playerid][TotKord][2]+0.5,10.0,0,0);
sterbtimer[playerid] = SetTimerEx("Sterben",180000,false,"i",playerid);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(Spieler[i][pFraktion] == 3 && Spieler[i][pJobStart] == 0)
{
new iconid = random(50)+5;
SetPlayerMapIcon(i,iconid,Spieler[playerid][TotKord][0],Spieler[playerid][TotKord][1],Spieler[playerid][TotKord][2],21,0,MAPICON_LOCAL);
format(string,sizeof(string),""#HTML_RED"Einsatz: "#HTML_WHITE"Spieler %s benötigt sofortige Hilfe! [Marker wurde gesetzt!]");
FraktionsChat(3,WEISS,string);
}
}
}
return true;
}
}
else if(Spieler[playerid][pTot] == 1 && Spieler[playerid][pAdminOnduty] == 0 && MedicOnline == 0)
{
format(string,sizeof(string),""#HTML_RED"R.I.P\n"#HTML_WHITE"%s",SpielerName(playerid));
tot3DText[playerid] = Create3DTextLabel(string,WEISS,Spieler[playerid][TotKord][0],Spieler[playerid][TotKord][1],Spieler[playerid][TotKord][2]+0.3,10.0,0,0);
new khrandom = random(sizeof(KHBett));
SetPlayerPosEx(playerid,KHBett[khrandom][kbX],KHBett[khrandom][kbY],KHBett[khrandom][kbZ]);
SetPlayerInterior(playerid,KHBett[khrandom][kbInt]);
SetPlayerVirtualWorld(playerid,KHBett[khrandom][kbVWelt]);
SetPlayerCameraPos(playerid,KHBett[khrandom][kbKameraX],KHBett[khrandom][kbKameraY],KHBett[khrandom][kbKameraZ]);
SetPlayerCameraLookAt(playerid,KHBett[khrandom][kbKameraZuX],KHBett[khrandom][kbKameraZuY],KHBett[khrandom][kbKameraZuZ]);
Freeze(playerid);
ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,1,1,0,0,1);
switch(Spieler[playerid][pVersicherungKH])
{
case 0: {
khTimer[playerid] = SetTimerEx("KrankenFrei",300000,false,"i",playerid);
GameTextForPlayer(playerid,"Du bist im~n~~r~Krankenhaus!~n~~w~Dauer: 5 Minuten~n~Versicherung: Keine",20000, 5);
}
case 1: {
khTimer[playerid] = SetTimerEx("KrankenFrei",150000,false,"i",playerid);
GameTextForPlayer(playerid,"Du bist im~n~~r~Krankenhaus!~n~~w~Dauer: 2,5 Minuten~n~Versicherung: AEK",20000, 5);
}
case 2: {
khTimer[playerid] = SetTimerEx("KrankenFrei",75000,false,"i",playerid);
GameTextForPlayer(playerid,"Du bist im~n~~r~Krankenhaus!~n~~w~Dauer: 1,25 Minuten~n~Versicherung: HOP",20000, 5);
}
}
SetTimerEx("TextLabelWegTot",60000,false,"i",playerid);
return true;
}
if(Spieler[playerid][pInStrafe] == 2)
{
ResetWeapons(playerid,false);
SetPlayerPosEx(playerid,CHECKPOINTSYSTEM+1);
SetPlayerInterior(playerid,0);
SetPlayerSkin(playerid,130);
PlayerTextDrawShow(playerid,Anzeige[playerid][0]);
PlayerTextDrawShow(playerid,Anzeige[playerid][1]);
format(string,sizeof(string),"CPs:");
PlayerTextDrawSetString(playerid,Anzeige[playerid][1],string);
PlayerTextDrawShow(playerid,Anzeige[playerid][3]);
PlayerTextDrawShow(playerid,Anzeige[playerid][2]);
format(string,sizeof(string),"%i/%i",Spieler[playerid][pChecksGelaufen],Spieler[playerid][pChecksGesamt]);
PlayerTextDrawSetString(playerid,Anzeige[playerid][2],string);
SetPlayerWorldBounds(playerid,1122.5243,1006.0865,-280.9827,-372.5940);
new rSpawn = random(sizeof(StrafenCheckpoints));
SetPlayerCheckpoint(playerid,StrafenCheckpoints[rSpawn][0],StrafenCheckpoints[rSpawn][1],StrafenCheckpoints[rSpawn][2],1.0);
SendClientMessage(playerid,GRAU,""#TEXT"Da du im Gangjail offline gegangen bist (Spielfaktor) hast du eine Strafe von 25 Checkpoints erhalten!");
Spieler[playerid][pInStrafe] = 1;
}
if(Spieler[playerid][pInStrafe] == 1)
{
ResetWeapons(playerid,false);
SetPlayerPosEx(playerid,CHECKPOINTSYSTEM+1);
SetPlayerInterior(playerid,0);
SetPlayerSkin(playerid,130);
PlayerTextDrawShow(playerid,Anzeige[playerid][0]);
PlayerTextDrawShow(playerid,Anzeige[playerid][1]);
format(string,sizeof(string),"CPs:");
PlayerTextDrawSetString(playerid,Anzeige[playerid][1],string);
PlayerTextDrawShow(playerid,Anzeige[playerid][3]);
PlayerTextDrawShow(playerid,Anzeige[playerid][2]);
format(string,sizeof(string),"%i/%i",Spieler[playerid][pChecksGelaufen],Spieler[playerid][pChecksGesamt]);
PlayerTextDrawSetString(playerid,Anzeige[playerid][2],string);
SetPlayerWorldBounds(playerid,1122.5243,1006.0865,-280.9827,-372.5940);
new rSpawn = random(sizeof(StrafenCheckpoints));
SetPlayerCheckpoint(playerid,StrafenCheckpoints[rSpawn][0],StrafenCheckpoints[rSpawn][1],StrafenCheckpoints[rSpawn][2],1.0);
SendClientMessage(playerid,GRAU,""#TEXT"Deine Strafe ist noch nicht vorbei!");
}
Spieler[playerid][StonedHP] = 0.0;
TextDrawShowForPlayer(playerid,SERVERUHR);
TextDrawShowForPlayer(playerid,SERVERDATUM);
for(new i = 0; i < 3; i++) { TextDrawShowForPlayer(playerid,Information[i]); }
if(Spieler[playerid][SpielerConfig][2] == 1) { PlayerTextDrawShow(playerid,LebenPlayer[playerid]); }
for(new i = 0; i < 5; i++) { TextDrawShowForPlayer(playerid,Logo[i]); }
Delete3DTextLabel(AdminDienst[playerid]);
Delete3DTextLabel(gestorben[playerid]);
Delete3DTextLabel(tot3DText[playerid]);
UnFreeze(playerid);
SetCameraBehindPlayer(playerid);
for(new gfirma=0;gfirma<MAX_FIRMENGR;gfirma++)
{
ZeigeZone(playerid, GFirmaInfo[gfirma][grid], 0xFFFFFFE7);
}
for(new hb = 0;hb<MAX_GRUNDSTUCKE;hb++)
{
if(HausBau[hb][HBGekauft] == 1) { ZeigeZone(playerid,HausBau[hb][HBZone],0xF55C9522); }
else if(HausBau[hb][HBGekauft] == 0) { ZeigeZone(playerid,HausBau[hb][HBZone],0x00FFB4FF); }
}
for(new ctf=0;ctf<MAX_CTF_GEBIETE;ctf++)
{
ZeigeZone(playerid, CTFInfo[ctf][CTFGangZone], CTFZoneFarbe(CTFInfo[ctf][ctffid]));
}
}
return true;
}
habe noch eine frage ich habe im script "SpawnPlayer(playerid);"
brauche ich dann im script auch "SetPlayerSpawn" ??
oder reicht auch "OnPlayerSpawn"
das zeigt er an
[16:44:50] [debug] Run time error 4: "Array index out of bounds"
[16:44:50] [debug] Accessing element at index 65535 past array upper bound 999
[16:44:50] [debug] AMX backtrace:
[16:44:50] [debug] #0 00032950 in public OnPlayerDeath (63, 65535, 54) from Haupt-Script.amx
[16:45:31] [debug] Run time error 4: "Array index out of bounds"
[16:45:31] [debug] Accessing element at index 65535 past array upper bound 999
[16:45:31] [debug] AMX backtrace:
[16:45:31] [debug] #0 00032950 in public OnPlayerDeath (63, 65535, 54) from Haupt-Script.amx
ist drine hatte den als pastebin aber habe es so jetzt gemacht
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerNPC(killerid))return true;
new string[600],Float:Pos[3],string2[350], dropcount = 0, hrank[25],
Float: fDistance;
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
Spieler[playerid][Funkgerat] = 0;
Spieler[playerid][TotKord][0] = Pos[0];
Spieler[playerid][TotKord][1] = Pos[1];
Spieler[playerid][TotKord][2] = Pos[2];
RemovePlayerAttachedObject(playerid,9);
RemovePlayerAttachedObject(playerid,7);
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
ImShamalInterior[playerid] = 0;
ShamalID[playerid] = -1;
CreateErfolg(playerid,20,"Von wegen Unsterblich","Stirb 1x","",0,10);
fDistance = GetPlayerDistanceFromPoint(killerid,Pos[0],Pos[1],Pos[2]);
if(Spieler[playerid][pBankRaubSumme] > 1) { RemovePlayerAttachedObject(playerid,0); Spieler[playerid][pBankRaubSumme] = 0; }
if(fDistance > 149.99) {
CreateErfolg(killerid,0,"Wie ein Geist","Ein Kill aus 150","Meter Entfernung",1,25);
}
if(rustungan[playerid] != 0) { RemovePlayerAttachedObject(playerid,9); rustungan[playerid] = 0; }
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID && Paintball[playerid] == 0)
{
format(string,sizeof(string),"Mord : Angreifer: %s * Opfer: %s",Spieler[killerid][pName],Spieler[playerid][pName]);
Log("DeathMatchLogsqllog",string);
}
if(Spieler[playerid][pJobStart] == 1)
{
DestroyVehicle(AngelVeh[playerid]);
DisablePlayerCheckpoint(playerid);
Spieler[playerid][KeinCPMehr] = 0;
Spieler[playerid][pJobStart] = 0;
JobMarker[playerid] = 0;
KillTimer(JobTimer[playerid]);
for(new i=0;i<4;i++){ PlayerTextDrawHide(playerid,Anzeige[playerid][i]); }
SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
EntfernungJobVariable(playerid);
UnFreeze(playerid);
SetCameraBehindPlayer(playerid);
RemovePlayerMapIcon(playerid, 1);
RemovePlayerMapIcon(playerid, 2);
RemovePlayerMapIcon(playerid, 3);
RemovePlayerMapIcon(playerid, 6);
imHolzfaller[playerid] = false;
if(Spieler[playerid][pJob] == 3) { DestroyVehicle(BackerCarPlayer[playerid]); BackerStartCP[playerid] = 0; DisablePlayerCheckpoint(playerid); BackerCARVar[playerid] = -1; }
if(Spieler[playerid][pJob] != 4) { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); }
if(Spieler[playerid][pJob] == 4) { EntfernungObjekteHolz(playerid); DeleteVehicle(holzauto[playerid]); }
if(Spieler[playerid][pJob] == 5) { SchiffEntfernung(playerid); DeleteVehicle(gabelauto[playerid]); }
if(Spieler[playerid][pJob] == 6) { RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); }
if(Spieler[playerid][pJob] == 1) { DeleteVehicle(AngelVeh[playerid]); Fischbestand[playerid] = 0; }
}
for(new i=0;i<sizeof(Shark);i++)
{
if(Shark[i][sh_targetid] != playerid) continue;
RandPosInZone(Shark[i][sh_minx],Shark[i][sh_miny],Shark[i][sh_maxx],Shark[i][sh_maxy],Shark[i][sh_rpos][0],Shark[i][sh_rpos][1]);
MoveDynamicObject(Shark[i][sh_obj],Shark[i][sh_rpos][0],Shark[i][sh_rpos][1],Shark[i][sh_z],MIN_SHARK_SWIMSPEED,Shark[i][sh_xr],Shark[i][sh_yr],Shark[i][sh_zr]);
Shark[i][sh_targetid] = -1;
}
if(IsPlayerConnected(killerid) && IsPlayerConnected(playerid) && !IsPlayerNPC(playerid) && !IsPlayerNPC(killerid))
{
Spieler[killerid][pMorde] += 1;
Spieler[playerid][pTote] += 1;
if(Spieler[killerid][pMorde] > 24)
{
CreateErfolg(killerid,37,"Einer nach dem Anderen","Toete 25 Spieler","",0,2);
}
if(Spieler[killerid][pMorde] > 99)
{
CreateErfolg(killerid,17,"Menschenjaeger","Toete 100 Spieler","",0,10);
}
if(Spieler[killerid][pMorde] > 999)
{
CreateErfolg(killerid,19,"Totesengel","Toete 1000 Spieler","",0,50);
}
if(Spieler[playerid][pTote] > 99)
{
CreateErfolg(killerid,21,"Opfer der Gewalt","Sterbe 100x","",0,10);
}
}
for(new i = 0; i < MAX_TOTENINFO; i++)
{
if(TotenInfo[i][tccreate] != 1 && Paintball[playerid] == 0 && Spieler[killerid][pFraktion] != 1 || Spieler[killerid][pFraktion] != 2 && Spieler[killerid][pDuty] != 1)
{
TotenInfo[i][tcid] = i;
TotenInfo[i][tccreate] = 1;
TotenInfo[i][tctime] = 30;
TotenInfo[i][tcpos][0] = Pos[0]; TotenInfo[i][tcpos][1] = Pos[1]; TotenInfo[i][tcpos][2] = Pos[2];
TotenInfo[i][tcpickup] = CreatePickup(1254,1,TotenInfo[i][tcpos][0],TotenInfo[i][tcpos][1],TotenInfo[i][tcpos][2]);
TotenInfo[i][tclabel] = Create3DTextLabel(""#HTML_RED"/search",WEISS,Pos[0],Pos[1],Pos[2]+1,15.0,0,0);
if(Spieler[killerid][pHitman] == 1 && Spieler[playerid][pContract][0] == 1)
{
strmid(TotenInfo[i][tckiller],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
strmid(TotenInfo[i][tctoter],Spieler[playerid][pName],0,strlen(Spieler[playerid][pName]),MAX_PLAYER_NAME+1);
format(string,sizeof(string),"%s",WaffenName(GetPlayerWeapon(killerid)));
strmid(TotenInfo[i][tcwaffe],string,0,strlen(string),25);
break;
}
else
strmid(TotenInfo[i][tckiller],Spieler[killerid][pName],0,strlen(Spieler[killerid][pName]),MAX_PLAYER_NAME+1);
strmid(TotenInfo[i][tctoter],Spieler[playerid][pName],0,strlen(Spieler[playerid][pName]),MAX_PLAYER_NAME+1);
format(string,sizeof(string),"%s",WaffenName(GetPlayerWeapon(killerid)));
strmid(TotenInfo[i][tcwaffe],string,0,strlen(string),25);
break;
}
}
if(Spieler[playerid][pFraktion] == 1 && Spieler[playerid][pDuty] == 1 && Spieler[killerid][pLevel] > 0 && Paintball[playerid] == 0)
{
Spieler[killerid][pWanteds] += 1;
for(new draw=0;draw<3;draw++) PlayerTextDrawShow(killerid,Wanteddraw[killerid][draw]);
format(string,sizeof(string),"%i",Spieler[killerid][pWanteds]);
PlayerTextDrawSetString(killerid,Wanteddraw[killerid][1],string);
switch(Spieler[killerid][pWanteds])
{
case 1,2,3:{hrank="(Kleinverbrecher)";}
case 4,5,6,7:{hrank="(Schurke)";}
case 8,9,10,11,12:{hrank="(Strassengauner)";}
case 13,14,15,16,17:{hrank="(Drahtzieher)";}
case 18,19,20,21,22:{hrank="(Schwer Verbrecher)";}
case 23,24,25,26,27:{hrank="(Ex-Knacki)";}
case 28,29,30:{hrank="(Staatsfeind)";}
default: {hrank="Fehlerhaft";}
}
format(string,sizeof(string),"%s",hrank);
PlayerTextDrawSetString(killerid,Wanteddraw[killerid][2],string);
strmid(Spieler[killerid][pWantedGrund],"Polizisten Mord",0,strlen("Polizisten Mord"),35);
strmid(Spieler[killerid][pWantedZeuge],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
UpdateWantedTextLabel(killerid,Spieler[killerid][pWanteds]);
Spieler[killerid][LastWanted] = 120;
format(string,sizeof(string),""#HTML_RED"Wanted: "#HTML_WHITE"%s hat 1 Wanted wegen Polizisten Mord erhalten",Spieler[killerid][pName]);
WantedChat(WEISS,string);
SendClientMessage(killerid,WEISS,""#HTML_RED"Wanted: "#HTML_WHITE"Du hast 1 Wanted wegen Polizisten Mord erhalten!");
CreateErfolg(killerid,15,"Gesucht","Toete einen Polizisten","",0,10);
}
if(Spieler[playerid][pFraktion] == 2 && Spieler[playerid][pDuty] == 1 && Spieler[killerid][pLevel] > 0 && Paintball[playerid] == 0)
{
Spieler[killerid][pWanteds] += 2;
for(new draw=0;draw<3;draw++) PlayerTextDrawShow(killerid,Wanteddraw[killerid][draw]);
format(string,sizeof(string),"%i",Spieler[killerid][pWanteds]);
PlayerTextDrawSetString(killerid,Wanteddraw[killerid][1],string);
switch(Spieler[killerid][pWanteds])
{
case 1,2,3:{hrank="(Kleinverbrecher)";}
case 4,5,6,7:{hrank="(Schurke)";}
case 8,9,10,11,12:{hrank="(Strassengauner)";}
case 13,14,15,16,17:{hrank="(Drahtzieher)";}
case 18,19,20,21,22:{hrank="(Schwer Verbrecher)";}
case 23,24,25,26,27:{hrank="(Ex-Knacki)";}
case 28,29,30:{hrank="(Staatsfeind)";}
default: {hrank="Fehlerhaft";}
}
format(string,sizeof(string),"%s",hrank);
PlayerTextDrawSetString(killerid,Wanteddraw[killerid][2],string);
strmid(Spieler[killerid][pWantedGrund],"FBI Beamten Mord",0,strlen("FBI Beamten Mord"),35);
strmid(Spieler[killerid][pWantedZeuge],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
UpdateWantedTextLabel(killerid,Spieler[killerid][pWanteds]);
Spieler[killerid][LastWanted] = 120;
format(string,sizeof(string),""#HTML_RED"Wanted: "#HTML_WHITE"%s hat 2 Wanteds wegen FBI Beamten Mord erhalten",Spieler[killerid][pName]);
WantedChat(WEISS,string);
SendClientMessage(killerid,WEISS,""#HTML_RED"Wanted: "#HTML_WHITE"Du hast 2 Wanteds wegen FBI Beamten Mord erhalten!");
CreateErfolg(killerid,15,"Gesucht","Toete einen Polizisten","",0,10);
}
if(runterseil[playerid] == 1) {
for(new sh=0;sh<=MAX_HOHE;sh++) {
DestroyObject(seil[playerid][sh]);
DisablePlayerCheckpoint(playerid);
}
runterseil[playerid] = 0;
}
for(new i_slot=0,gun,ammo;i_slot<13;i_slot++)
{
GetPlayerWeaponData(playerid,i_slot,gun,ammo);
if(gun != 0 && ammo != 0 && Paintball[playerid] == 0 && GetPlayerInterior(playerid) == 0 && GetPlayerVirtualWorld(playerid) == 0)
{
dropcount++;
CreateDroppedGun(playerid,gun,ammo,Pos[0]+random(2)-random(2),Pos[1]+random(2)-random(2),Pos[2]);
}
}
if(Spieler[playerid][pWanteds] > 0 && Spieler[killerid][pFraktion] == 1 || Spieler[killerid][pFraktion] == 2 && Spieler[playerid][pArrestZeit] > 0 && Paintball[playerid] == 0)
{
new arresttime = Spieler[playerid][pWanteds]*5;
new geldleave = floatround(Spieler[playerid][pWanteds]*100);
Spieler[playerid][pArrestZeit] = arresttime;
Spieler[playerid][pKaution] = 1;
if(Spieler[killerid][pFraktion] == 2) { Spieler[playerid][pEingesperrt] = 2; }
if(Spieler[killerid][pFraktion] == 1) { Spieler[playerid][pEingesperrt] = 1; }
Spieler[playerid][pWanteds] = 0;
for(new draw=0;draw<3;draw++) PlayerTextDrawHide(playerid,Wanteddraw[playerid][draw]);
UpdateWantedTextLabel(playerid,Spieler[playerid][pWanteds]);
strmid(Spieler[playerid][pWantedGrund],"Unbekannt",0,strlen("Unbekannt"),35);
strmid(Spieler[playerid][pWantedZeuge],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
format(string,sizeof(string),""#HTML_RED"Knast: "#HTML_WHITE"Beamter %s hat %s erwischt! Kaution: Nein",SpielerName(killerid),SpielerName(playerid));
WantedChat(WEISS,string);
format(string,sizeof(string),""#HTML_RED"Knast: "#HTML_WHITE"Beamter %s hat dich erschossen. (Geldstrafe: %d$)! Kaution: Nein",SpielerName(killerid),geldleave);
SendClientMessage(playerid,GRAU,string);
ACMoney(playerid,-geldleave);
Spieler[killerid][pGeld] += geldleave/2;
staatskasse += geldleave;
SaveAccount(playerid);
return true;
}
if(Paintball[playerid] != 0)
{
if(IsPlayerConnected(killerid) && !IsPlayerNPC(killerid))
{
if(Paintball[killerid] == 1)
{
GameTextForPlayer(killerid,"~g~Kill",1000,4);
GameTextForPlayer(playerid,"~r~Tot",1000,4);
for(new i = 0; i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i) && Spieler[i][Eingeloggt] == 1)
{
if(Paintball[i] == 1)
{
format(string,sizeof(string),""#HTML_RED"Paintball "#HTML_WHITE"%s wurde von %s gekillt",Spieler[playerid][pName],Spieler[killerid][pName]);
SendClientMessage(i,GRAU,string);
}
}
}
return true;
}
if(Paintball[killerid] == 2)
{
new team[6];
if(TDPPaintballTeam[killerid] != TDPPaintballTeam[playerid])
{
GameTextForPlayer(killerid,"~g~Team Kill",1000,4);
GameTextForPlayer(playerid,"~r~Team Kill",1000,4);
switch(TDPPaintballTeam[playerid])
{
case 1:{team="Weiß"; TDMPaintballTeamPoints[1]++;}
case 2:{team="Blau"; TDMPaintballTeamPoints[0]++;}
}
}
else
{
GameTextForPlayer(killerid,"~r~Team Kill",1000,4);
GameTextForPlayer(playerid,"~r~Team Kill",1000,4);
switch(TDPPaintballTeam[playerid])
{
case 1:{team="Weiß"; TDMPaintballTeamPoints[1] += 2;}
case 2:{team="Blau"; TDMPaintballTeamPoints[0] += 2;}
}
}
for(new i = 0; i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i) && Paintball[i] == 2 && Spieler[i][Eingeloggt] == 1)
{
format(string,sizeof(string),""#HTML_RED"Paintball (Team): "#HTML_WHITE"%s wurde von %s getötet",Spieler[playerid][pName],Spieler[killerid][pName]);
SendClientMessage(i,GRAU,string);
format(string,sizeof(string),""#HTML_RED"Team Weiß: "#HTML_WHITE"%d/40 | "#HTML_RED"Team Blau: "#HTML_WHITE"%d/40",TDMPaintballTeamPoints[0],TDMPaintballTeamPoints[1]);
SendClientMessage(i,GRAU,string);
if(TDMPaintballTeamPoints[0] >= 40)
{
TDMPaintballTeamPoints[0] = 0;
TDMPaintballTeamPoints[1] = 0;
SendClientMessage(i,GRAU,""#HTML_RED"Paintball Sieg: "#HTML_WHITE"Team Weiß hat gewonnen");
CreateErfolg(i,6,"Duellist","Gewinne ein Paintball","Match",1,10);
if(Spieler[i][pFraktion] != 0)
{
SetPlayerSkinEx(i,Spieler[i][pFraktSkin]);
SetPlayerPosEx(i,PAINTBALLARENA);
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}
else if(Spieler[i][pFraktion] == 0)
{
SetPlayerSkinEx(i,Spieler[i][pSkin]);
SetPlayerPosEx(i,PAINTBALLARENA);
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}
Paintball[i] = 0;
}
if(TDMPaintballTeamPoints[1] >= 40)
{
TDMPaintballTeamPoints[0] = 0;
TDMPaintballTeamPoints[1] = 0;
SendClientMessage(i,GRAU,""#HTML_RED"Paintball Sieg: "#HTML_WHITE"Team Blau hat gewonnen");
CreateErfolg(i,6,"Duellist","Gewinne ein Paintball","Match",1,10);
if(Spieler[i][pFraktion] != 0)
{
SetPlayerSkinEx(i,Spieler[i][pFraktSkin]);
SetPlayerPosEx(i,PAINTBALLARENA);
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}
else if(Spieler[i][pFraktion] == 0)
{
SetPlayerSkinEx(i,Spieler[i][pSkin]);
SetPlayerPosEx(i,PAINTBALLARENA);
SetPlayerInterior(i,0);
SetPlayerVirtualWorld(i,0);
}
Paintball[i] = 0;
}
}
}
}
return true;
}
return true;
}
if(GetPlayerState(killerid) == 2 && Paintball[playerid] == 0)
{
if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
{
format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Totparken",Spieler[killerid][pName]);
SendClientMessageToAll(ROT,string);
format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: Totparken\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
SetTimerEx("FixKick",2500,0,"i",killerid);
}
}
if(istEinAdmin(playerid,1) && Spieler[playerid][pAdminOnduty] == 1 && Paintball[playerid] == 0)
{
if(Spieler[killerid][pAdmin] > 0)
{
format(string,sizeof(string),""#HTML_RED"Kill Info: "#HTML_WHITE"Team Mitglied %s hat dich abgeschossen!",Spieler[killerid][pName]);
SendClientMessage(playerid,GRAU,string);
format(string,sizeof(string),""#HTML_RED"Kill Info: "#HTML_WHITE"Du hast das Team Mitglied %s (Aduty) abgeschossen, passe besser auf!",Spieler[playerid][pName]);
SendClientMessage(killerid,GRAU,string);
}
else
format(string,sizeof(string),""#HTML_RED""#SERVERTAG": "#HTML_WHITE"Das System hat den Spieler %s bestraft (50 Checkpoints). Grund: DM/SDM auf Admin im Dienst",Spieler[killerid][pName]);
SendClientMessageToAll(GRAU,string);
Spieler[killerid][pChecksGesamt] = 50;
Spieler[killerid][pChecksGelaufen] = 0;
Spieler[killerid][pInStrafe] = 1;
SpawnPlayer(killerid);
}
if(Spieler[killerid][pHitman] == 1)
{
RemovePlayerAttachedObject(playerid,0);
SetPlayerName(playerid,Spieler[playerid][pName]);
}
if(Spieler[killerid][pHitman] == 1 && maskehat[killerid] == true && Paintball[playerid] == 0)
{
if(Spieler[playerid][pContract][0] == 1)
{
format(string,sizeof(string),""#HTML_RED"Auftragskill: "#HTML_WHITE"Du wurdest soeben von einem Hitman ausgeschaltet!");
SendClientMessage(playerid,GRAU,string);
ACMoney(killerid,Spieler[playerid][pContract][0]);
Spieler[playerid][pContract][0] = 0;
Spieler[playerid][pContract][1] = 0;
CreateErfolg(killerid,39,"Guter Auftrag","Kille ein Contract","als Hitman",1,35);
CreateErfolg(playerid,3,"Unbeliebt","Werde von einem","Hitman ausgeschaltet",1,25);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i) && Spieler[i][pHitman] == 1)
{
format(string,sizeof(string),""#HTML_RED"Auftragskill erledigt: "#HTML_WHITE"Der Spieler %s (Auftragssumme: %d$) wurde soeben von einem Hitman ausgeschaltet!",
Spieler[playerid][pName],Spieler[playerid][pContract][1]);
}
}
}
}
if(Spieler[playerid][pInStrafe] == 1)
{
format(string,sizeof(string),""#HTML_RED""#SERVERTAG": "#HTML_WHITE"Das System hat den Spieler %s bestraft (50 Checkpoints). Grund: DM/SDM auf Prison Sträfling",Spieler[killerid][pName]);
SendClientMessageToAll(GRAU,string);
Spieler[killerid][pChecksGesamt] = 50;
Spieler[killerid][pChecksGelaufen] = 0;
Spieler[killerid][pInStrafe] = 1;
SpawnPlayer(killerid);
}
if(Spieler[playerid][imEvent] == 1)
{
SetPlayerPosEx(playerid,Spieler[playerid][PosVorEvent][0],Spieler[playerid][PosVorEvent][1],Spieler[playerid][PosVorEvent][2]);
SetPlayerFacingAngle(playerid,Spieler[playerid][PosVorEvent][3]);
SetPlayerInterior(playerid,Spieler[playerid][VorEventInt]);
SetPlayerVirtualWorld(playerid,Spieler[playerid][VorEventWelt]);
DestroyVehicle(DerbyAuto[playerid]);
SendClientMessage(playerid,GRAU,""#HTML_RED"Info: "#HTML_WHITE"Da du gestorben bist, bist du nun disqualifiziert!");
Spieler[playerid][imEvent] = 0;
}
if(InNoDMZone(playerid) != -1)
{
if(KickBereitsNO[killerid] == true) return true;
format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: No DM Zonen Kill",Spieler[killerid][pName]);
SendClientMessageToAll(ROT,string);
format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: No DM Zonen Kill\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
SetTimerEx("FixKick",2500,0,"i",killerid);
KickBereitsNO[killerid] = true;
return true;
}
if(Spieler[killerid][pEingesperrt] != 0)
{
SendClientMessage(killerid,WEISS,""#HTML_RED"Info: "#HTML_WHITE"Knast DM! Strafe +2 Minuten");
Spieler[killerid][pArrestZeit] += 2;
knastDM[killerid] += 1;
if(knastDM[killerid] == 3)
{
Spieler[killerid][pArrestZeit] += 10;
format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Knast Deathmatch",Spieler[killerid][pName]);
SendClientMessageToAll(ROT,string);
format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: Knast DM\nZudem erhältst du eine Strafe von +10 Minuten\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
SaveAccount(killerid);
SetTimerEx("FixKick",2500,0,"i",killerid);
return true;
}
}
if(IstNixGutWaffe(GetPlayerWeapon(killerid)) == 1 && GetPlayerWeapon(killerid) != 0)
{
if(Paintball[killerid] != 0) return true;
if(!istEinAdmin(killerid,6))
{
format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Das System hat den Spieler %s gebannt. Grund: Fakekill",Spieler[killerid][pName]);
SendClientMessageToAll(LEUCHTENDESROT,string);
format(string,sizeof(string),"%s,\nDu wurdest so eben wegen Fakekill vom Server gebannt.\nSolltest du zu Unrecht gebannt wurden sein, melde dich bitte im Teamspeak Server oder im Forum.\nMit freundlichen Grüssen\n"#SERVERTAG" Team\n\nForum: "#WEBURL"\nTeamspeak: "TSIP"",Spieler[killerid][pName]);
ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Verlassen","");
BanUser(killerid,"System","Fakekill");
BansHeute +=1;
return true;
}
}
if(inFS[playerid] == 1)
{
KillTimer(TaxiTimer[playerid]); inFS[playerid] = 0;
for(new i = 0; i<5;i++) { DriveschoolQuestion[playerid][i] = 0; }
for(new i = 0; i<4;i++) { DriveschoolQuestion2[playerid][i] = 0; }
for(new i = 0; i<3;i++) { DriveschoolQuestion3[playerid][i] = 0; }
for(new i = 0; i<3;i++) { DriveschoolQuestion4[playerid][i] = 0; }
for(new i = 0; i<2;i++) { DriveschoolQuestion5[playerid][i] = 0; }
for(new i = 0; i<16;i++) { fscp[playerid][i] = 0; }
for(new i = 0; i<14;i++) { fscp2[playerid][i] = 0; }
for(new i = 0; i<14;i++) { fscp3[playerid][i] = 0; }
for(new i = 0; i<8;i++) { fscp4[playerid][i] = 0; }
for(new i = 0; i<5;i++) { fscp6[playerid][i] = 0; }
PlayerTextDrawHide(playerid,Anzeige[playerid][0]);
PlayerTextDrawHide(playerid,Anzeige[playerid][1]);
PlayerTextDrawHide(playerid,Anzeige[playerid][3]);
PlayerTextDrawHide(playerid,Anzeige[playerid][2]);
fahrschulauto[playerid] = 0;
DestroyVehicle(fahrschulauto[playerid]);
fahrschulauto2[playerid] = 0;
DestroyVehicle(fahrschulauto2[playerid]);
FSFehler[playerid] = 0;
SendClientMessage(playerid,GRAU,""#HTML_RED"Durchgefallen: "#HTML_WHITE"Du bist gestorben, daher hast du die Prüfung nicht bestanden!");
}
for(new i= 0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && Spieler[i][pTV] == playerid)
{
TogglePlayerSpectating(i,0);
Spieler[i][pTV] = -1;
}
}
}
for(new ctf=0;ctf<MAX_CTF_GEBIETE;ctf++)
{
if(IsPlayerInZone(playerid,CTFInfo[ctf][cPos1X],CTFInfo[ctf][cPos1Y],CTFInfo[ctf][cPos2X],CTFInfo[ctf][cPos2Y]))
{
if(Spieler[playerid][FlaggeAufgenommen] == 1)
{
CTFInfo[ctf][flPosX1_2] = Pos[0];
CTFInfo[ctf][flPosY1_2] = Pos[1];
CTFInfo[ctf][flPosZ1_2] = Pos[2];
CTFInfo[ctf][flaggeverteidigerliegen] = 1;
RemovePlayerAttachedObject(playerid,5);
CTFInfo[ctf][CTFPickup] = CreateDynamicObject(2993,CTFInfo[ctf][flPosX1_2],CTFInfo[ctf][flPosY1_2],CTFInfo[ctf][flPosZ1_2]+0.3,0,0,0);
format(string,sizeof(string),""#HTML_GREEN"Flagge der Verteidiger\n"#HTML_WHITE"Verteidiger: %s\nFallen gelassen durch: %s",FraktionsCTFName(CTFInfo[ctf][ctffid]),Spieler[playerid][pName]);
CTFSystem3DText[ctf] = Create3DTextLabel(string,WEISS,CTFInfo[ctf][flPosX1_2],CTFInfo[ctf][flPosY1_2],CTFInfo[ctf][flPosZ1_2]+1,15.0,0,0);
Spieler[playerid][FlaggeAufgenommen] = 0;
format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Flagge der Gegner wurde fallen gelassen!");
FraktionsChat(Spieler[playerid][pFraktion],WEISS,string2);
format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Eure Flagge wurde fallen gelassen!");
FraktionsChat(CTFInfo[ctf][ctffid],WEISS,string2);
}
else if(Spieler[playerid][FlaggeAufgenommen2] == 1)
{
CTFInfo[ctf][flPosX2_2] = Pos[0];
CTFInfo[ctf][flPosY2_2] = Pos[1];
CTFInfo[ctf][flPosZ2_2] = Pos[2];
CTFInfo[ctf][flaggeangreiferliegen] = 1;
RemovePlayerAttachedObject(playerid,5);
CTFInfo[ctf][CTFPickup2] = CreateDynamicObject(2993,CTFInfo[ctf][flPosX2_2],CTFInfo[ctf][flPosY2_2],CTFInfo[ctf][flPosZ2_2]+0.3,0,0,0);
SetDynamicObjectMaterial(CTFInfo[ctf][CTFPickup2],1, 10357, "tvtower_sfs", "ws_transmit_red", 0xFFFFFFFF);
format(string,sizeof(string),""#HTML_RED"Flagge der Angreifer\n"#HTML_WHITE"Angreifer: %s\nFallen gelassen durch: %s",FraktionsCTFName(CTFInfo[ctf][angreifer]),Spieler[playerid][pName]);
CTFSystem3DText2[ctf] = Create3DTextLabel(string,WEISS,CTFInfo[ctf][flPosX2_2],CTFInfo[ctf][flPosY2_2],CTFInfo[ctf][flPosZ2_2]+1,15.0,0,0);
Spieler[playerid][FlaggeAufgenommen2] = 0;
format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Flagge der Gegner wurde fallen gelassen!");
FraktionsChat(Spieler[playerid][pFraktion],WEISS,string2);
format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Eure Flagge wurde fallen gelassen!");
FraktionsChat(CTFInfo[ctf][angreifer],WEISS,string2);
}
}
}
/*
if(GetPlayerLevel(playerid) == NEULINGLEVEL && Paintball[playerid] == 0)
{
if(istEinAdmin(playerid,1)) return SendClientMessage(killerid,WEISS,"Du hast so eben ein Neuling getötet!");
format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Neulings Kill",Spieler[killerid][pName]);
SendClientMessageToAll(ROT,string);
format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: DM / SDM auf einen Neuling\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
SetTimerEx("FixKick",2500,0,"i",killerid);
KickBereits[playerid] = true;
}
if(GetPlayerLevel(killerid) == NEULINGLEVEL && Paintball[killerid] == 0)
{
if(KickBereits[playerid] == true) return true;
format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Kill als Neuling",Spieler[killerid][pName]);
SendClientMessageToAll(ROT,string);
format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: DM / SDM als Neuling\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
SetTimerEx("FixKick",2500,0,"i",killerid);
KickBereits[killerid] = false;
}
*/
return true;
}
Hallo Breadfish
ich habe folgendes Problem wenn jemand stirbt Crasht der Server
Vieleicht findet ihr den Fehler ich suche schon seit 2 tagen aber nichs gefunden
[list=1][*]public OnPlayerDeath(playerid, killerid, reason)
[*]{
[*] if(IsPlayerNPC(killerid))return true;
[*] new string[600],Float:Pos[3],string2[350], dropcount = 0, hrank[25],
[*] Float: fDistance;
[*] GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
[*] Spieler[playerid][Funkgerat] = 0;
[*] Spieler[playerid][TotKord][0] = Pos[0];
[*] Spieler[playerid][TotKord][1] = Pos[1];
[*] Spieler[playerid][TotKord][2] = Pos[2];
[*] RemovePlayerAttachedObject(playerid,9);
[*] RemovePlayerAttachedObject(playerid,7);
[*] RemovePlayerAttachedObject(playerid,1);
[*] RemovePlayerAttachedObject(playerid,2);
[*] ImShamalInterior[playerid] = 0;
[*] ShamalID[playerid] = -1;
[*] CreateErfolg(playerid,20,"Von wegen Unsterblich","Stirb 1x","",0,10);
[*] fDistance = GetPlayerDistanceFromPoint(killerid,Pos[0],Pos[1],Pos[2]);
[*] if(Spieler[playerid][pBankRaubSumme] > 1) { RemovePlayerAttachedObject(playerid,0); Spieler[playerid][pBankRaubSumme] = 0; }
[*] if(fDistance > 149.99) {
[*] CreateErfolg(killerid,0,"Wie ein Geist","Ein Kill aus 150","Meter Entfernung",1,25);
[*] }
[*] if(rustungan[playerid] != 0) { RemovePlayerAttachedObject(playerid,9); rustungan[playerid] = 0; }
[*] if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID && Paintball[playerid] == 0)
[*] {
[*] format(string,sizeof(string),"Mord : Angreifer: %s * Opfer: %s",Spieler[killerid][pName],Spieler[playerid][pName]);
[*] Log("DeathMatchLogsqllog",string);
[*] }
[*] if(Spieler[playerid][pJobStart] == 1)
[*] {
[*] DestroyVehicle(AngelVeh[playerid]);
[*] DisablePlayerCheckpoint(playerid);
[*] Spieler[playerid][KeinCPMehr] = 0;
[*] Spieler[playerid][pJobStart] = 0;
[*] JobMarker[playerid] = 0;
[*] KillTimer(JobTimer[playerid]);
[*] for(new i=0;i<4;i++){ PlayerTextDrawHide(playerid,Anzeige[playerid][i]); }
[*] SetPlayerSkinEx(playerid,Spieler[playerid][pSkin]);
[*] EntfernungJobVariable(playerid);
[*] UnFreeze(playerid);
[*] SetCameraBehindPlayer(playerid);
[*] RemovePlayerMapIcon(playerid, 1);
[*] RemovePlayerMapIcon(playerid, 2);
[*] RemovePlayerMapIcon(playerid, 3);
[*] RemovePlayerMapIcon(playerid, 6);
[*] imHolzfaller[playerid] = false;
[*] if(Spieler[playerid][pJob] == 3) { DestroyVehicle(BackerCarPlayer[playerid]); BackerStartCP[playerid] = 0; DisablePlayerCheckpoint(playerid); BackerCARVar[playerid] = -1; }
[*] if(Spieler[playerid][pJob] != 4) { SetPlayerVirtualWorld(playerid,0); SetPlayerInterior(playerid,0); }
[*] if(Spieler[playerid][pJob] == 4) { EntfernungObjekteHolz(playerid); DeleteVehicle(holzauto[playerid]); }
[*] if(Spieler[playerid][pJob] == 5) { SchiffEntfernung(playerid); DeleteVehicle(gabelauto[playerid]); }
[*] if(Spieler[playerid][pJob] == 6) { RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); }
[*] if(Spieler[playerid][pJob] == 1) { DeleteVehicle(AngelVeh[playerid]); Fischbestand[playerid] = 0; }
[*] }
[*] for(new i=0;i<sizeof(Shark);i++)
[*] {
[*] if(Shark[i][sh_targetid] != playerid) continue;
[*] RandPosInZone(Shark[i][sh_minx],Shark[i][sh_miny],Shark[i][sh_maxx],Shark[i][sh_maxy],Shark[i][sh_rpos][0],Shark[i][sh_rpos][1]);
[*] MoveDynamicObject(Shark[i][sh_obj],Shark[i][sh_rpos][0],Shark[i][sh_rpos][1],Shark[i][sh_z],MIN_SHARK_SWIMSPEED,Shark[i][sh_xr],Shark[i][sh_yr],Shark[i][sh_zr]);
[*] Shark[i][sh_targetid] = -1;
[*] }
[*] if(IsPlayerConnected(killerid) && IsPlayerConnected(playerid) && !IsPlayerNPC(playerid) && !IsPlayerNPC(killerid))
[*] {
[*] Spieler[killerid][pMorde] += 1;
[*] Spieler[playerid][pTote] += 1;
[*] if(Spieler[killerid][pMorde] > 24)
[*] {
[*] CreateErfolg(killerid,37,"Einer nach dem Anderen","Toete 25 Spieler","",0,2);
[*] }
[*] if(Spieler[killerid][pMorde] > 99)
[*] {
[*] CreateErfolg(killerid,17,"Menschenjaeger","Toete 100 Spieler","",0,10);
[*] }
[*] if(Spieler[killerid][pMorde] > 999)
[*] {
[*] CreateErfolg(killerid,19,"Totesengel","Toete 1000 Spieler","",0,50);
[*] }
[*] if(Spieler[playerid][pTote] > 99)
[*] {
[*] CreateErfolg(killerid,21,"Opfer der Gewalt","Sterbe 100x","",0,10);
[*] }
[*] }
[*] for(new i = 0; i < MAX_TOTENINFO; i++)
[*] {
[*] if(TotenInfo[i][tccreate] != 1 && Paintball[playerid] == 0 && Spieler[killerid][pFraktion] != 1 || Spieler[killerid][pFraktion] != 2 && Spieler[killerid][pDuty] != 1)
[*] {
[*] TotenInfo[i][tcid] = i;
[*] TotenInfo[i][tccreate] = 1;
[*] TotenInfo[i][tctime] = 30;
[*] TotenInfo[i][tcpos][0] = Pos[0]; TotenInfo[i][tcpos][1] = Pos[1]; TotenInfo[i][tcpos][2] = Pos[2];
[*] TotenInfo[i][tcpickup] = CreatePickup(1254,1,TotenInfo[i][tcpos][0],TotenInfo[i][tcpos][1],TotenInfo[i][tcpos][2]);
[*] TotenInfo[i][tclabel] = Create3DTextLabel(""#HTML_RED"/search",WEISS,Pos[0],Pos[1],Pos[2]+1,15.0,0,0);
[*] if(Spieler[killerid][pHitman] == 1 && Spieler[playerid][pContract][0] == 1)
[*] {
[*] strmid(TotenInfo[i][tckiller],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
[*] strmid(TotenInfo[i][tctoter],Spieler[playerid][pName],0,strlen(Spieler[playerid][pName]),MAX_PLAYER_NAME+1);
[*] format(string,sizeof(string),"%s",WaffenName(GetPlayerWeapon(killerid)));
[*] strmid(TotenInfo[i][tcwaffe],string,0,strlen(string),25);
[*] break;
[*] }
[*] else
[*] strmid(TotenInfo[i][tckiller],Spieler[killerid][pName],0,strlen(Spieler[killerid][pName]),MAX_PLAYER_NAME+1);
[*] strmid(TotenInfo[i][tctoter],Spieler[playerid][pName],0,strlen(Spieler[playerid][pName]),MAX_PLAYER_NAME+1);
[*] format(string,sizeof(string),"%s",WaffenName(GetPlayerWeapon(killerid)));
[*] strmid(TotenInfo[i][tcwaffe],string,0,strlen(string),25);
[*] break;
[*] }
[*] }
[*] if(Spieler[playerid][pFraktion] == 1 && Spieler[playerid][pDuty] == 1 && Spieler[killerid][pLevel] > 0 && Paintball[playerid] == 0)
[*] {
[*] Spieler[killerid][pWanteds] += 1;
[*] for(new draw=0;draw<3;draw++) PlayerTextDrawShow(killerid,Wanteddraw[killerid][draw]);
[*] format(string,sizeof(string),"%i",Spieler[killerid][pWanteds]);
[*] PlayerTextDrawSetString(killerid,Wanteddraw[killerid][1],string);
[*] switch(Spieler[killerid][pWanteds])
[*] {
[*] case 1,2,3:{hrank="(Kleinverbrecher)";}
[*] case 4,5,6,7:{hrank="(Schurke)";}
[*] case 8,9,10,11,12:{hrank="(Strassengauner)";}
[*] case 13,14,15,16,17:{hrank="(Drahtzieher)";}
[*] case 18,19,20,21,22:{hrank="(Schwer Verbrecher)";}
[*] case 23,24,25,26,27:{hrank="(Ex-Knacki)";}
[*] case 28,29,30:{hrank="(Staatsfeind)";}
[*] default: {hrank="Fehlerhaft";}
[*] }
[*] format(string,sizeof(string),"%s",hrank);
[*] PlayerTextDrawSetString(killerid,Wanteddraw[killerid][2],string);
[*] strmid(Spieler[killerid][pWantedGrund],"Polizisten Mord",0,strlen("Polizisten Mord"),35);
[*] strmid(Spieler[killerid][pWantedZeuge],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
[*] UpdateWantedTextLabel(killerid,Spieler[killerid][pWanteds]);
[*] Spieler[killerid][LastWanted] = 120;
[*] format(string,sizeof(string),""#HTML_RED"Wanted: "#HTML_WHITE"%s hat 1 Wanted wegen Polizisten Mord erhalten",Spieler[killerid][pName]);
[*] WantedChat(WEISS,string);
[*] SendClientMessage(killerid,WEISS,""#HTML_RED"Wanted: "#HTML_WHITE"Du hast 1 Wanted wegen Polizisten Mord erhalten!");
[*] CreateErfolg(killerid,15,"Gesucht","Toete einen Polizisten","",0,10);
[*] }
[*] if(Spieler[playerid][pFraktion] == 2 && Spieler[playerid][pDuty] == 1 && Spieler[killerid][pLevel] > 0 && Paintball[playerid] == 0)
[*] {
[*] Spieler[killerid][pWanteds] += 2;
[*] for(new draw=0;draw<3;draw++) PlayerTextDrawShow(killerid,Wanteddraw[killerid][draw]);
[*] format(string,sizeof(string),"%i",Spieler[killerid][pWanteds]);
[*] PlayerTextDrawSetString(killerid,Wanteddraw[killerid][1],string);
[*] switch(Spieler[killerid][pWanteds])
[*] {
[*] case 1,2,3:{hrank="(Kleinverbrecher)";}
[*] case 4,5,6,7:{hrank="(Schurke)";}
[*] case 8,9,10,11,12:{hrank="(Strassengauner)";}
[*] case 13,14,15,16,17:{hrank="(Drahtzieher)";}
[*] case 18,19,20,21,22:{hrank="(Schwer Verbrecher)";}
[*] case 23,24,25,26,27:{hrank="(Ex-Knacki)";}
[*] case 28,29,30:{hrank="(Staatsfeind)";}
[*] default: {hrank="Fehlerhaft";}
[*] }
[*] format(string,sizeof(string),"%s",hrank);
[*] PlayerTextDrawSetString(killerid,Wanteddraw[killerid][2],string);
[*] strmid(Spieler[killerid][pWantedGrund],"FBI Beamten Mord",0,strlen("FBI Beamten Mord"),35);
[*] strmid(Spieler[killerid][pWantedZeuge],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
[*] UpdateWantedTextLabel(killerid,Spieler[killerid][pWanteds]);
[*] Spieler[killerid][LastWanted] = 120;
[*] format(string,sizeof(string),""#HTML_RED"Wanted: "#HTML_WHITE"%s hat 2 Wanteds wegen FBI Beamten Mord erhalten",Spieler[killerid][pName]);
[*] WantedChat(WEISS,string);
[*] SendClientMessage(killerid,WEISS,""#HTML_RED"Wanted: "#HTML_WHITE"Du hast 2 Wanteds wegen FBI Beamten Mord erhalten!");
[*] CreateErfolg(killerid,15,"Gesucht","Toete einen Polizisten","",0,10);
[*] }
[*] if(runterseil[playerid] == 1) {
[*] for(new sh=0;sh<=MAX_HOHE;sh++) {
[*] DestroyObject(seil[playerid][sh]);
[*] DisablePlayerCheckpoint(playerid);
[*] }
[*] runterseil[playerid] = 0;
[*] }
[*] for(new i_slot=0,gun,ammo;i_slot<13;i_slot++)
[*] {
[*] GetPlayerWeaponData(playerid,i_slot,gun,ammo);
[*] if(gun != 0 && ammo != 0 && Paintball[playerid] == 0 && GetPlayerInterior(playerid) == 0 && GetPlayerVirtualWorld(playerid) == 0)
[*] {
[*] dropcount++;
[*] CreateDroppedGun(playerid,gun,ammo,Pos[0]+random(2)-random(2),Pos[1]+random(2)-random(2),Pos[2]);
[*] }
[*] }
[*] if(Spieler[playerid][pWanteds] > 0 && Spieler[killerid][pFraktion] == 1 || Spieler[killerid][pFraktion] == 2 && Spieler[playerid][pArrestZeit] > 0 && Paintball[playerid] == 0)
[*] {
[*] new arresttime = Spieler[playerid][pWanteds]*5;
[*] new geldleave = floatround(Spieler[playerid][pWanteds]*100);
[*] Spieler[playerid][pArrestZeit] = arresttime;
[*] Spieler[playerid][pKaution] = 1;
[*] if(Spieler[killerid][pFraktion] == 2) { Spieler[playerid][pEingesperrt] = 2; }
[*] if(Spieler[killerid][pFraktion] == 1) { Spieler[playerid][pEingesperrt] = 1; }
[*] Spieler[playerid][pWanteds] = 0;
[*] for(new draw=0;draw<3;draw++) PlayerTextDrawHide(playerid,Wanteddraw[playerid][draw]);
[*] UpdateWantedTextLabel(playerid,Spieler[playerid][pWanteds]);
[*] strmid(Spieler[playerid][pWantedGrund],"Unbekannt",0,strlen("Unbekannt"),35);
[*] strmid(Spieler[playerid][pWantedZeuge],"Unbekannt",0,strlen("Unbekannt"),MAX_PLAYER_NAME+1);
[*] format(string,sizeof(string),""#HTML_RED"Knast: "#HTML_WHITE"Beamter %s hat %s erwischt! Kaution: Nein",SpielerName(killerid),SpielerName(playerid));
[*] WantedChat(WEISS,string);
[*] format(string,sizeof(string),""#HTML_RED"Knast: "#HTML_WHITE"Beamter %s hat dich erschossen. (Geldstrafe: %d$)! Kaution: Nein",SpielerName(killerid),geldleave);
[*] SendClientMessage(playerid,GRAU,string);
[*] ACMoney(playerid,-geldleave);
[*] Spieler[killerid][pGeld] += geldleave/2;
[*] staatskasse += geldleave;
[*] SaveAccount(playerid);
[*] return true;
[*] }
[*] if(Paintball[playerid] != 0)
[*] {
[*] if(IsPlayerConnected(killerid) && !IsPlayerNPC(killerid))
[*] {
[*] if(Paintball[killerid] == 1)
[*] {
[*] GameTextForPlayer(killerid,"~g~Kill",1000,4);
[*] GameTextForPlayer(playerid,"~r~Tot",1000,4);
[*] for(new i = 0; i<MAX_PLAYERS;i++)
[*] {
[*] if(IsPlayerConnected(i) && !IsPlayerNPC(i) && Spieler[i][Eingeloggt] == 1)
[*] {
[*] if(Paintball[i] == 1)
[*] {
[*] format(string,sizeof(string),""#HTML_RED"Paintball "#HTML_WHITE"%s wurde von %s gekillt",Spieler[playerid][pName],Spieler[killerid][pName]);
[*] SendClientMessage(i,GRAU,string);
[*] }
[*] }
[*] }
[*] return true;
[*] }
[*] if(Paintball[killerid] == 2)
[*] {
[*] new team[6];
[*] if(TDPPaintballTeam[killerid] != TDPPaintballTeam[playerid])
[*] {
[*] GameTextForPlayer(killerid,"~g~Team Kill",1000,4);
[*] GameTextForPlayer(playerid,"~r~Team Kill",1000,4);
[*] switch(TDPPaintballTeam[playerid])
[*] {
[*] case 1:{team="Weiß"; TDMPaintballTeamPoints[1]++;}
[*] case 2:{team="Blau"; TDMPaintballTeamPoints[0]++;}
[*] }
[*] }
[*] else
[*] {
[*] GameTextForPlayer(killerid,"~r~Team Kill",1000,4);
[*] GameTextForPlayer(playerid,"~r~Team Kill",1000,4);
[*] switch(TDPPaintballTeam[playerid])
[*] {
[*] case 1:{team="Weiß"; TDMPaintballTeamPoints[1] += 2;}
[*] case 2:{team="Blau"; TDMPaintballTeamPoints[0] += 2;}
[*] }
[*] }
[*] for(new i = 0; i<MAX_PLAYERS;i++)
[*] {
[*] if(IsPlayerConnected(i) && !IsPlayerNPC(i) && Paintball[i] == 2 && Spieler[i][Eingeloggt] == 1)
[*] {
[*] format(string,sizeof(string),""#HTML_RED"Paintball (Team): "#HTML_WHITE"%s wurde von %s getötet",Spieler[playerid][pName],Spieler[killerid][pName]);
[*] SendClientMessage(i,GRAU,string);
[*] format(string,sizeof(string),""#HTML_RED"Team Weiß: "#HTML_WHITE"%d/40 | "#HTML_RED"Team Blau: "#HTML_WHITE"%d/40",TDMPaintballTeamPoints[0],TDMPaintballTeamPoints[1]);
[*] SendClientMessage(i,GRAU,string);
[*] if(TDMPaintballTeamPoints[0] >= 40)
[*] {
[*] TDMPaintballTeamPoints[0] = 0;
[*] TDMPaintballTeamPoints[1] = 0;
[*] SendClientMessage(i,GRAU,""#HTML_RED"Paintball Sieg: "#HTML_WHITE"Team Weiß hat gewonnen");
[*] CreateErfolg(i,6,"Duellist","Gewinne ein Paintball","Match",1,10);
[*] if(Spieler[i][pFraktion] != 0)
[*] {
[*] SetPlayerSkinEx(i,Spieler[i][pFraktSkin]);
[*] SetPlayerPosEx(i,PAINTBALLARENA);
[*] SetPlayerInterior(i,0);
[*] SetPlayerVirtualWorld(i,0);
[*] }
[*] else if(Spieler[i][pFraktion] == 0)
[*] {
[*] SetPlayerSkinEx(i,Spieler[i][pSkin]);
[*] SetPlayerPosEx(i,PAINTBALLARENA);
[*] SetPlayerInterior(i,0);
[*] SetPlayerVirtualWorld(i,0);
[*] }
[*] Paintball[i] = 0;
[*] }
[*] if(TDMPaintballTeamPoints[1] >= 40)
[*] {
[*] TDMPaintballTeamPoints[0] = 0;
[*] TDMPaintballTeamPoints[1] = 0;
[*] SendClientMessage(i,GRAU,""#HTML_RED"Paintball Sieg: "#HTML_WHITE"Team Blau hat gewonnen");
[*] CreateErfolg(i,6,"Duellist","Gewinne ein Paintball","Match",1,10);
[*] if(Spieler[i][pFraktion] != 0)
[*] {
[*] SetPlayerSkinEx(i,Spieler[i][pFraktSkin]);
[*] SetPlayerPosEx(i,PAINTBALLARENA);
[*] SetPlayerInterior(i,0);
[*] SetPlayerVirtualWorld(i,0);
[*] }
[*] else if(Spieler[i][pFraktion] == 0)
[*] {
[*] SetPlayerSkinEx(i,Spieler[i][pSkin]);
[*] SetPlayerPosEx(i,PAINTBALLARENA);
[*] SetPlayerInterior(i,0);
[*] SetPlayerVirtualWorld(i,0);
[*] }
[*] Paintball[i] = 0;
[*] }
[*] }
[*] }
[*] }
[*] return true;
[*] }
[*] return true;
[*] }
[*] if(GetPlayerState(killerid) == 2 && Paintball[playerid] == 0)
[*] {
[*] if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
[*] {
[*] format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Totparken",Spieler[killerid][pName]);
[*] SendClientMessageToAll(ROT,string);
[*] format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: Totparken\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
[*] ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
[*] SetTimerEx("FixKick",2500,0,"i",killerid);
[*] }
[*] }
[*] if(istEinAdmin(playerid,1) && Spieler[playerid][pAdminOnduty] == 1 && Paintball[playerid] == 0)
[*] {
[*] if(Spieler[killerid][pAdmin] > 0)
[*] {
[*] format(string,sizeof(string),""#HTML_RED"Kill Info: "#HTML_WHITE"Team Mitglied %s hat dich abgeschossen!",Spieler[killerid][pName]);
[*] SendClientMessage(playerid,GRAU,string);
[*] format(string,sizeof(string),""#HTML_RED"Kill Info: "#HTML_WHITE"Du hast das Team Mitglied %s (Aduty) abgeschossen, passe besser auf!",Spieler[playerid][pName]);
[*] SendClientMessage(killerid,GRAU,string);
[*] }
[*] else
[*] format(string,sizeof(string),""#HTML_RED""#SERVERTAG": "#HTML_WHITE"Das System hat den Spieler %s bestraft (50 Checkpoints). Grund: DM/SDM auf Admin im Dienst",Spieler[killerid][pName]);
[*] SendClientMessageToAll(GRAU,string);
[*] Spieler[killerid][pChecksGesamt] = 50;
[*] Spieler[killerid][pChecksGelaufen] = 0;
[*] Spieler[killerid][pInStrafe] = 1;
[*] SpawnPlayer(killerid);
[*] }
[*] if(Spieler[killerid][pHitman] == 1)
[*] {
[*] RemovePlayerAttachedObject(playerid,0);
[*] SetPlayerName(playerid,Spieler[playerid][pName]);
[*] }
[*] if(Spieler[killerid][pHitman] == 1 && maskehat[killerid] == true && Paintball[playerid] == 0)
[*] {
[*] if(Spieler[playerid][pContract][0] == 1)
[*] {
[*] format(string,sizeof(string),""#HTML_RED"Auftragskill: "#HTML_WHITE"Du wurdest soeben von einem Hitman ausgeschaltet!");
[*] SendClientMessage(playerid,GRAU,string);
[*] ACMoney(killerid,Spieler[playerid][pContract][0]);
[*] Spieler[playerid][pContract][0] = 0;
[*] Spieler[playerid][pContract][1] = 0;
[*] CreateErfolg(killerid,39,"Guter Auftrag","Kille ein Contract","als Hitman",1,35);
[*] CreateErfolg(playerid,3,"Unbeliebt","Werde von einem","Hitman ausgeschaltet",1,25);
[*] for(new i = 0; i < MAX_PLAYERS; i++)
[*] {
[*] if(IsPlayerConnected(i) && !IsPlayerNPC(i) && Spieler[i][pHitman] == 1)
[*] {
[*] format(string,sizeof(string),""#HTML_RED"Auftragskill erledigt: "#HTML_WHITE"Der Spieler %s (Auftragssumme: %d$) wurde soeben von einem Hitman ausgeschaltet!",
[*] Spieler[playerid][pName],Spieler[playerid][pContract][1]);
[*] }
[*] }
[*] }
[*] }
[*] if(Spieler[playerid][pInStrafe] == 1)
[*] {
[*] format(string,sizeof(string),""#HTML_RED""#SERVERTAG": "#HTML_WHITE"Das System hat den Spieler %s bestraft (50 Checkpoints). Grund: DM/SDM auf Prison Sträfling",Spieler[killerid][pName]);
[*] SendClientMessageToAll(GRAU,string);
[*] Spieler[killerid][pChecksGesamt] = 50;
[*] Spieler[killerid][pChecksGelaufen] = 0;
[*] Spieler[killerid][pInStrafe] = 1;
[*] SpawnPlayer(killerid);
[*] }
[*] if(Spieler[playerid][imEvent] == 1)
[*] {
[*] SetPlayerPosEx(playerid,Spieler[playerid][PosVorEvent][0],Spieler[playerid][PosVorEvent][1],Spieler[playerid][PosVorEvent][2]);
[*] SetPlayerFacingAngle(playerid,Spieler[playerid][PosVorEvent][3]);
[*] SetPlayerInterior(playerid,Spieler[playerid][VorEventInt]);
[*] SetPlayerVirtualWorld(playerid,Spieler[playerid][VorEventWelt]);
[*] DestroyVehicle(DerbyAuto[playerid]);
[*] SendClientMessage(playerid,GRAU,""#HTML_RED"Info: "#HTML_WHITE"Da du gestorben bist, bist du nun disqualifiziert!");
[*] Spieler[playerid][imEvent] = 0;
[*] }
[*] if(InNoDMZone(playerid) != -1)
[*] {
[*] if(KickBereitsNO[killerid] == true) return true;
[*] format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: No DM Zonen Kill",Spieler[killerid][pName]);
[*] SendClientMessageToAll(ROT,string);
[*] format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: No DM Zonen Kill\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
[*] ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
[*] SetTimerEx("FixKick",2500,0,"i",killerid);
[*] KickBereitsNO[killerid] = true;
[*] return true;
[*] }
[*] if(Spieler[killerid][pEingesperrt] != 0)
[*] {
[*] SendClientMessage(killerid,WEISS,""#HTML_RED"Info: "#HTML_WHITE"Knast DM! Strafe +2 Minuten");
[*] Spieler[killerid][pArrestZeit] += 2;
[*] knastDM[killerid] += 1;
[*] if(knastDM[killerid] == 3)
[*] {
[*] Spieler[killerid][pArrestZeit] += 10;
[*] format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Knast Deathmatch",Spieler[killerid][pName]);
[*] SendClientMessageToAll(ROT,string);
[*] format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: Knast DM\nZudem erhältst du eine Strafe von +10 Minuten\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
[*] ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
[*] SaveAccount(killerid);
[*] SetTimerEx("FixKick",2500,0,"i",killerid);
[*] return true;
[*] }
[*] }
[*] if(IstNixGutWaffe(GetPlayerWeapon(killerid)) == 1 && GetPlayerWeapon(killerid) != 0)
[*] {
[*] if(Paintball[killerid] != 0) return true;
[*] if(!istEinAdmin(killerid,6))
[*] {
[*] format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Das System hat den Spieler %s gebannt. Grund: Fakekill",Spieler[killerid][pName]);
[*] SendClientMessageToAll(LEUCHTENDESROT,string);
[*] format(string,sizeof(string),"%s,\nDu wurdest so eben wegen Fakekill vom Server gebannt.\nSolltest du zu Unrecht gebannt wurden sein, melde dich bitte im Teamspeak Server oder im Forum.\nMit freundlichen Grüssen\n"#SERVERTAG" Team\n\nForum: "#WEBURL"\nTeamspeak: "TSIP"",Spieler[killerid][pName]);
[*] ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Verlassen","");
[*] BanUser(killerid,"System","Fakekill");
[*] BansHeute +=1;
[*] return true;
[*] }
[*] }
[*] if(inFS[playerid] == 1)
[*] {
[*] KillTimer(TaxiTimer[playerid]); inFS[playerid] = 0;
[*] for(new i = 0; i<5;i++) { DriveschoolQuestion[playerid][i] = 0; }
[*] for(new i = 0; i<4;i++) { DriveschoolQuestion2[playerid][i] = 0; }
[*] for(new i = 0; i<3;i++) { DriveschoolQuestion3[playerid][i] = 0; }
[*] for(new i = 0; i<3;i++) { DriveschoolQuestion4[playerid][i] = 0; }
[*] for(new i = 0; i<2;i++) { DriveschoolQuestion5[playerid][i] = 0; }
[*] for(new i = 0; i<16;i++) { fscp[playerid][i] = 0; }
[*] for(new i = 0; i<14;i++) { fscp2[playerid][i] = 0; }
[*] for(new i = 0; i<14;i++) { fscp3[playerid][i] = 0; }
[*] for(new i = 0; i<8;i++) { fscp4[playerid][i] = 0; }
[*] for(new i = 0; i<5;i++) { fscp6[playerid][i] = 0; }
[*] PlayerTextDrawHide(playerid,Anzeige[playerid][0]);
[*] PlayerTextDrawHide(playerid,Anzeige[playerid][1]);
[*] PlayerTextDrawHide(playerid,Anzeige[playerid][3]);
[*] PlayerTextDrawHide(playerid,Anzeige[playerid][2]);
[*] fahrschulauto[playerid] = 0;
[*] DestroyVehicle(fahrschulauto[playerid]);
[*] fahrschulauto2[playerid] = 0;
[*] DestroyVehicle(fahrschulauto2[playerid]);
[*] FSFehler[playerid] = 0;
[*] SendClientMessage(playerid,GRAU,""#HTML_RED"Durchgefallen: "#HTML_WHITE"Du bist gestorben, daher hast du die Prüfung nicht bestanden!");
[*] }
[*] for(new i= 0;i<MAX_PLAYERS;i++)
[*] {
[*] if(IsPlayerConnected(i) && !IsPlayerNPC(i))
[*] {
[*] if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && Spieler[i][pTV] == playerid)
[*] {
[*] TogglePlayerSpectating(i,0);
[*] Spieler[i][pTV] = -1;
[*] }
[*] }
[*] }
[*] for(new ctf=0;ctf<MAX_CTF_GEBIETE;ctf++)
[*] {
[*] if(IsPlayerInZone(playerid,CTFInfo[ctf][cPos1X],CTFInfo[ctf][cPos1Y],CTFInfo[ctf][cPos2X],CTFInfo[ctf][cPos2Y]))
[*] {
[*] if(Spieler[playerid][FlaggeAufgenommen] == 1)
[*] {
[*] CTFInfo[ctf][flPosX1_2] = Pos[0];
[*] CTFInfo[ctf][flPosY1_2] = Pos[1];
[*] CTFInfo[ctf][flPosZ1_2] = Pos[2];
[*] CTFInfo[ctf][flaggeverteidigerliegen] = 1;
[*] RemovePlayerAttachedObject(playerid,5);
[*] CTFInfo[ctf][CTFPickup] = CreateDynamicObject(2993,CTFInfo[ctf][flPosX1_2],CTFInfo[ctf][flPosY1_2],CTFInfo[ctf][flPosZ1_2]+0.3,0,0,0);
[*] format(string,sizeof(string),""#HTML_GREEN"Flagge der Verteidiger\n"#HTML_WHITE"Verteidiger: %s\nFallen gelassen durch: %s",FraktionsCTFName(CTFInfo[ctf][ctffid]),Spieler[playerid][pName]);
[*] CTFSystem3DText[ctf] = Create3DTextLabel(string,WEISS,CTFInfo[ctf][flPosX1_2],CTFInfo[ctf][flPosY1_2],CTFInfo[ctf][flPosZ1_2]+1,15.0,0,0);
[*] Spieler[playerid][FlaggeAufgenommen] = 0;
[*] format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Flagge der Gegner wurde fallen gelassen!");
[*] FraktionsChat(Spieler[playerid][pFraktion],WEISS,string2);
[*] format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Eure Flagge wurde fallen gelassen!");
[*] FraktionsChat(CTFInfo[ctf][ctffid],WEISS,string2);
[*] }
[*] else if(Spieler[playerid][FlaggeAufgenommen2] == 1)
[*] {
[*] CTFInfo[ctf][flPosX2_2] = Pos[0];
[*] CTFInfo[ctf][flPosY2_2] = Pos[1];
[*] CTFInfo[ctf][flPosZ2_2] = Pos[2];
[*] CTFInfo[ctf][flaggeangreiferliegen] = 1;
[*] RemovePlayerAttachedObject(playerid,5);
[*] CTFInfo[ctf][CTFPickup2] = CreateDynamicObject(2993,CTFInfo[ctf][flPosX2_2],CTFInfo[ctf][flPosY2_2],CTFInfo[ctf][flPosZ2_2]+0.3,0,0,0);
[*] SetDynamicObjectMaterial(CTFInfo[ctf][CTFPickup2],1, 10357, "tvtower_sfs", "ws_transmit_red", 0xFFFFFFFF);
[*] format(string,sizeof(string),""#HTML_RED"Flagge der Angreifer\n"#HTML_WHITE"Angreifer: %s\nFallen gelassen durch: %s",FraktionsCTFName(CTFInfo[ctf][angreifer]),Spieler[playerid][pName]);
[*] CTFSystem3DText2[ctf] = Create3DTextLabel(string,WEISS,CTFInfo[ctf][flPosX2_2],CTFInfo[ctf][flPosY2_2],CTFInfo[ctf][flPosZ2_2]+1,15.0,0,0);
[*] Spieler[playerid][FlaggeAufgenommen2] = 0;
[*] format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Flagge der Gegner wurde fallen gelassen!");
[*] FraktionsChat(Spieler[playerid][pFraktion],WEISS,string2);
[*] format(string2,sizeof(string2),""#HTML_RED"CTF: "#HTML_WHITE"Eure Flagge wurde fallen gelassen!");
[*] FraktionsChat(CTFInfo[ctf][angreifer],WEISS,string2);
[*] }
[*] }
[*] }
[*] /*
[*] if(GetPlayerLevel(playerid) == NEULINGLEVEL && Paintball[playerid] == 0)
[*] {
[*] if(istEinAdmin(playerid,1)) return SendClientMessage(killerid,WEISS,"Du hast so eben ein Neuling getötet!");
[*] format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Neulings Kill",Spieler[killerid][pName]);
[*] SendClientMessageToAll(ROT,string);
[*] format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: DM / SDM auf einen Neuling\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
[*] ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
[*] SetTimerEx("FixKick",2500,0,"i",killerid);
[*] KickBereits[playerid] = true;
[*] }
[*] if(GetPlayerLevel(killerid) == NEULINGLEVEL && Paintball[killerid] == 0)
[*] {
[*] if(KickBereits[playerid] == true) return true;
[*] format(string,sizeof(string),""#HTML_RED""#ANTI" "#HTML_WHITE"Der Spieler %s wurde vom Server gekickt. Grund: Kill als Neuling",Spieler[killerid][pName]);
[*] SendClientMessageToAll(ROT,string);
[*] format(string,sizeof(string),"Hallo %s\ndu wurdest vom "#SERVERTAG" System gekickt!\nDer Grund dafür war: DM / SDM als Neuling\nSolltest du zu Unrecht gekickt wurden sein, melde dich im Forum oder im Teamspeak 3 Server\nForum: "#WEBURL"\nTeamspeak: "#TSIP"\nMit freundlichen Grüßen\nDein "#SERVERTAG" Team",Spieler[killerid][pName]);
[*] ShowPlayerDialog(killerid,DIALOG_SONSTIGES,DIALOG_STYLE_MSGBOX,""#SERVERNAME"",string,"Ok","");
[*] SetTimerEx("FixKick",2500,0,"i",killerid);
[*] KickBereits[killerid] = false;
[*] }
[*] */
[*] return true;
[*]}
[/list]
Sehe Bild.
Fehler code: [15:36:38] [debug] #0 00031428 in public OnPlayerDeath (64, 65535, 54) from Haupt-Script.amx
Hier ist der MSQL log "Klick mich"
danke es geht jetzt habe "SendRconCommand("password 0");" rein gesetzt
Hallo Breadfish
ich habe mir überlegt so lange die Bots Connecten Passwort " SendRconCommand("password MDR15");" zu setzten aber das passwort bleibt wie bekomme ich das server passwort dann wieder nach dem die Bots Connecten sind wieder entfernen
und dab brauche ich die hilfe wie bekomme ich dann das Server passwort wieder weg
errors sind jetzt weg aber jetzt wird ab "`x`='%f'" nicks mehr gespeichert
Jetzt habe ich es so gemacht aber es speichert nicht
stock SaveOnlyOnePveh(playerid,slot)
{
new query[325];
if(Pfahrzeug[slot][playerid][modelid] != 0)
{
GetVehicleHealth(Pfahrzeug[slot][playerid][Vehicle],Pfahrzeug[slot][playerid][HP]);
format(query,sizeof(query),"UPDATE `db_spielerfahrzeuge` SET `modelid`='%d', `x`='%f', `y`='%f', `z`='%f', `a`='%f'",
Pfahrzeug[slot][playerid][modelid],Pfahrzeug[slot][playerid][posx],Pfahrzeug[slot][playerid][posy],Pfahrzeug[slot][playerid][posz],Pfahrzeug[slot][playerid][posa]);
format(query,sizeof(query),"%s, `interior`='%d', `world`='%d', `cc1`='%d', `cc2`='%d', `paintjob`='%d', `vehhp`='%f', `abgeschlossen`='%d', `t1`='%d', `t2`='%d'",query,
Pfahrzeug[slot][playerid][Interior],Pfahrzeug[slot][playerid][VirtualWorld],Pfahrzeug[slot][playerid][Colour1],Pfahrzeug[slot][playerid][Colour2],
Pfahrzeug[slot][playerid][Paintjob],Pfahrzeug[slot][playerid][HP],Pfahrzeug[slot][playerid][Abgeschlossen],Pfahrzeug[slot][playerid][Spoiler],Pfahrzeug[slot][playerid][Hood]);
format(query,sizeof(query),"%s, `it3`='%d', `t4`='%d', `t5`='%d', `t6`='%d', `t7`='%d', `t8`='%d', `t9`='%d', `t10`='%d', `t11`='%d', `t12`='%d', `t13`='%d', `t14`='%d'",query,
Pfahrzeug[slot][playerid][Roof],Pfahrzeug[slot][playerid][Sideskirt],Pfahrzeug[slot][playerid][Lamps],Pfahrzeug[slot][playerid][Nitro],Pfahrzeug[slot][playerid][Exhaust],Pfahrzeug[slot][playerid][Wheels],Pfahrzeug[slot][playerid][Stereo],
Pfahrzeug[slot][playerid][Hydraulics],Pfahrzeug[slot][playerid][FrontBumper],Pfahrzeug[slot][playerid][RearBumper],Pfahrzeug[slot][playerid][VentRight],Pfahrzeug[slot][playerid][VentLeft]);
format(query,sizeof(query),"%s, `angemeldet`='%d', `preis`='%d', `nummernschild`='%s', `tank`='%f'",query,
Pfahrzeug[slot][playerid][Angemeldet],Pfahrzeug[slot][playerid][Preis],Pfahrzeug[slot][playerid][Nummernschild],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Tank]);
format(query,sizeof(query),"%s, `km`='%d', `towed`='%d', `towedfreeprice`='%d', `towedreason`='%s' WHERE name` = '%s' AND slot` = '%d'",query,
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Kilometer],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Abgeschleppt],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptPreis],
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptGrund],Pfahrzeug[slot][playerid][Besitzer],slot);
mysql_pquery(handle, query);
}
return 1;
}
sry für das nerven
ich habe es jetzt so gemacht is das jetzt richtig???
if(Pfahrzeug[slot][playerid][modelid] != 0)
{
GetVehicleHealth(Pfahrzeug[slot][playerid][Vehicle],Pfahrzeug[slot][playerid][HP]);
format(query,sizeof(query),"UPDATE `db_spielerfahrzeuge` SET `modelid`='%d', `x`='%f', `y`='%f', `z`='%f', `a`='%f'"
Pfahrzeug[slot][playerid][modelid],Pfahrzeug[slot][playerid][posx],Pfahrzeug[slot][playerid][posy],Pfahrzeug[slot][playerid][posz],Pfahrzeug[slot][playerid][posa],
mysql_pquery(handle, query);
format(query,sizeof(query),"%s', `interior`='%d', `world`='%d', `cc1`='%d', `cc2`='%d', `paintjob`='%d', `vehhp`='%f', `abgeschlossen`='%d', `t1`='%d', `t2`='%d'",query,
Pfahrzeug[slot][playerid][Interior],Pfahrzeug[slot][playerid][VirtualWorld],Pfahrzeug[slot][playerid][Colour1],Pfahrzeug[slot][playerid][Colour2],
Pfahrzeug[slot][playerid][Paintjob],Pfahrzeug[slot][playerid][HP],Pfahrzeug[slot][playerid][Abgeschlossen],Pfahrzeug[slot][playerid][Spoiler],Pfahrzeug[slot][playerid][Hood],
mysql_pquery(handle, query);
format(query,sizeof(query),"%s', `it3`='%d', `t4`='%d', `t5`='%d', `t6`='%d', `t7`='%d', `t8`='%d', `t9`='%d', `t10`='%d', `t11`='%d', `t12`='%d', `t13`='%d', `t14`='%d'",query,
Pfahrzeug[slot][playerid][Roof],Pfahrzeug[slot][playerid][Sideskirt],Pfahrzeug[slot][playerid][Lamps],Pfahrzeug[slot][playerid][Nitro],Pfahrzeug[slot][playerid][Exhaust],Pfahrzeug[slot][playerid][Wheels],Pfahrzeug[slot][playerid][Stereo],
Pfahrzeug[slot][playerid][Hydraulics],Pfahrzeug[slot][playerid][FrontBumper],Pfahrzeug[slot][playerid][RearBumper],Pfahrzeug[slot][playerid][VentRight],Pfahrzeug[slot][playerid][VentLeft]);
mysql_pquery(handle, query);
format(query,sizeof(query),"%s', `angemeldet`='%d', `preis`='%d', `nummernschild`='%s', `tank`='%f'",query,
Pfahrzeug[slot][playerid][Angemeldet],Pfahrzeug[slot][playerid][Preis],Pfahrzeug[slot][playerid][Nummernschild],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Tank],
mysql_pquery(handle, query);
format(query,sizeof(query),"%s', `km`='%d', `towed`='%d', `towedfreeprice`='%d', `towedreason`='%s' WHERE name` = '%s' AND slot` = '%d'",query,
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Kilometer],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Abgeschleppt],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptPreis],
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptGrund],Pfahrzeug[slot][playerid][Besitzer],slot);
mysql_pquery(handle, query);
}
Jeffry meinst du es so ???
if(Pfahrzeug[slot][playerid][modelid] != 0)
{
GetVehicleHealth(Pfahrzeug[slot][playerid][Vehicle],Pfahrzeug[slot][playerid][HP]);
format(query,sizeof(query),"UPDATE `db_spielerfahrzeuge` SET `modelid`='%d', `x`='%f', `y`='%f', `z`='%f', `a`='%f', `interior`='%d', `world`='%d', `cc1`='%d', `cc2`='%d', `paintjob`='%d', `vehhp`='%f', `abgeschlossen`='%d', `t1`='%d', `t2`='%d', `t3`='%d', `t4`='%d', `t5`='%d', `t6`='%d', `t7`='%d', `t8`='%d', `t9`='%d', `t10`='%d', `t11`='%d', `t12`='%d', `t13`='%d', `t14`='%d', `",
Pfahrzeug[slot][playerid][modelid],Pfahrzeug[slot][playerid][posx],Pfahrzeug[slot][playerid][posy],Pfahrzeug[slot][playerid][posz],Pfahrzeug[slot][playerid][posa],Pfahrzeug[slot][playerid][Interior],Pfahrzeug[slot][playerid][VirtualWorld],Pfahrzeug[slot][playerid][Colour1],Pfahrzeug[slot][playerid][Colour2],
Pfahrzeug[slot][playerid][Paintjob],Pfahrzeug[slot][playerid][HP],Pfahrzeug[slot][playerid][Abgeschlossen],Pfahrzeug[slot][playerid][Spoiler],Pfahrzeug[slot][playerid][Hood],Pfahrzeug[slot][playerid][Roof],
Pfahrzeug[slot][playerid][Sideskirt],Pfahrzeug[slot][playerid][Lamps],Pfahrzeug[slot][playerid][Nitro],Pfahrzeug[slot][playerid][Exhaust],Pfahrzeug[slot][playerid][Wheels],Pfahrzeug[slot][playerid][Stereo],
Pfahrzeug[slot][playerid][Hydraulics],Pfahrzeug[slot][playerid][FrontBumper],Pfahrzeug[slot][playerid][RearBumper],Pfahrzeug[slot][playerid][VentRight],Pfahrzeug[slot][playerid][VentLeft]);
mysql_pquery(handle, query);
format(query,sizeof(query),"angemeldet`='%d', `preis`='%d', `nummernschild`='%s', `tank`='%f', `km`='%d', `towed`='%d', `towedfreeprice`='%d', `towedreason`='%s' WHERE name` = '%s' AND slot` = '%d'",
Pfahrzeug[slot][playerid][Angemeldet],Pfahrzeug[slot][playerid][Preis],Pfahrzeug[slot][playerid][Nummernschild],
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Tank],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Kilometer],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Abgeschleppt],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptPreis],
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptGrund],Pfahrzeug[slot][playerid][Besitzer],slot);
mysql_pquery(handle, query);
}
hallo Breadfish
ich habe folgendes Problem
ich habe 6 error´s und bekomme die einfach nicht weg
Zeile (95222) : error 075: input line too long (after substitutions)
Zeile (95223) : error 037: ungültige Zeichenkette (falsch gesetzte Gänsefüßchen ?)
Zeile (95223) : Unbekannte Variable : "UPDATE"
Zeile (95223) : Ungültiger Befehl
Zeile (95223) : Zuviele Fehler in einer Zeile
if(Pfahrzeug[slot][playerid][modelid] != 0)
{
GetVehicleHealth(Pfahrzeug[slot][playerid][Vehicle],Pfahrzeug[slot][playerid][HP]);
format(query,sizeof(query),"UPDATE `db_spielerfahrzeuge` SET `modelid`='%d', `x`='%f', `y`='%f', `z`='%f', `a`='%f', `interior`='%d', `world`='%d', `cc1`='%d', `cc2`='%d', `paintjob`='%d', `vehhp`='%f', `abgeschlossen`='%d' \
, `t1`='%d', `t2`='%d', `t3`='%d', `t4`='%d', `t5`='%d', `t6`='%d', `t7`='%d', `t8`='%d', `t9`='%d', `t10`='%d', `t11`='%d', `t12`='%d', `t13`='%d', `t14`='%d', `angemeldet`='%d', `preis`='%d', `nummernschild`='%s' \
, `tank`='%f', `km`='%d', `towed`='%d', `towedfreeprice`='%d', `towedreason`='%s' WHERE name`='%s' AND slot`='%d'",Pfahrzeug[slot][playerid][modelid],Pfahrzeug[slot][playerid][posx],Pfahrzeug[slot][playerid][posy],
Pfahrzeug[slot][playerid][posz],Pfahrzeug[slot][playerid][posa],Pfahrzeug[slot][playerid][Interior],Pfahrzeug[slot][playerid][VirtualWorld],Pfahrzeug[slot][playerid][Colour1],Pfahrzeug[slot][playerid][Colour2],
Pfahrzeug[slot][playerid][Paintjob],Pfahrzeug[slot][playerid][HP],Pfahrzeug[slot][playerid][Abgeschlossen],Pfahrzeug[slot][playerid][Spoiler],Pfahrzeug[slot][playerid][Hood],Pfahrzeug[slot][playerid][Roof],
Pfahrzeug[slot][playerid][Sideskirt],Pfahrzeug[slot][playerid][Lamps],Pfahrzeug[slot][playerid][Nitro],Pfahrzeug[slot][playerid][Exhaust],Pfahrzeug[slot][playerid][Wheels],Pfahrzeug[slot][playerid][Stereo],
Pfahrzeug[slot][playerid][Hydraulics],Pfahrzeug[slot][playerid][FrontBumper],Pfahrzeug[slot][playerid][RearBumper],Pfahrzeug[slot][playerid][VentRight],Pfahrzeug[slot][playerid][VentLeft],
Pfahrzeug[slot][playerid][Angemeldet],Pfahrzeug[slot][playerid][Preis],Pfahrzeug[slot][playerid][Nummernschild],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Tank],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Kilometer],
vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][Abgeschleppt],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptPreis],vFahrzeug[Pfahrzeug[slot][playerid][Vehicle]][AbgeschlepptGrund],Pfahrzeug[slot][playerid][Besitzer],slot);
mysql_pquery(handle, query);
}
Habs hinbekommen danke für die hilfe