Habe ich überall geändert und es sind die Erros immer noch da.
das war zuletzt was ich geändert habe und davor hat noch alles gepasst
Habe ich überall geändert und es sind die Erros immer noch da.
das war zuletzt was ich geändert habe und davor hat noch alles gepasst
Dann poste wie gesagt das ganze Callback (OnPlayerCommandText / OnPlayerDeath / ... wo du sonst noch was geändert hast).
Wieder genau der gleiche Fehler, in OnPlayerDeath. Bei OnPlayerCommandText hat return 0; und eine Klammer zu am Ende gefehlt.
Ich Habe das genauso ersetzt und die fehler sind trd da was ist den falsch?
Langsam verzweifel ich
Schicke mir in PN deinen ganzen Gamemode.
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5042) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5042) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5042) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5327) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5348) : warning 219: local variable "pxX" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5348) : warning 219: local variable "pyY" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5348) : warning 219: local variable "pzZ" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5354) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5354) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5354) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5390) : warning 219: local variable "killer" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5391) : warning 219: local variable "dier" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5397) : error 035: argument type mismatch (argument 1)
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5423) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5427) : error 021: symbol already defined: "GetPlayerPos"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5433) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5435) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5438) : error 054: unmatched closing brace ("}")
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5439) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5441) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5445) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5450) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5452) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5456) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5462) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5464) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5466) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5470) : error 021: symbol already defined: "GetPlayerName"
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5476) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5477) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5478) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5479) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5480) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5487) : error 010: invalid function or declaration
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5883) : error 025: function heading differs from prototype
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(5883) : error 025: function heading differs from prototype
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(10605) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(10605) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(10605) : warning 202: number of arguments does not match definition
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(16089) : error 025: function heading differs from prototype
C:\Windows\Vss\First Person\German Reallife\German Reallife\gamemodes\Nol.pwn(16089) : error 025: function heading differs from prototype
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
/*if(PlayerPaintballing[playerid] == 0 || PlayerPaintballing[killerid] == 0)//Hier 5423
{
PlayerInfo[playerid][pTot] = 1;
new Float:pxX,Float:pyY,Float:pzZ;
GetPlayerPos(playerid, pxX, pyY, pzZ); //Hier 5427
TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
PlayerInfo[playerid][pTx] = pxX;
PlayerInfo[playerid][pTy] = pyY;
PlayerInfo[playerid][pTz] = pzZ;
SendFamilyMessage(4,COLOR_BLUE,"Es ist eine Person gestorben ! (/tote)");
PlayerInfo[killerid][pKills] += 1; //Hier 5433
PlayerInfo[playerid][pDeaths] += 1;
if(IsACop(killerid) || IsPlayerInFrac(killerid,4) || IsPlayerInFrac(killerid,9) || IsPlayerInFrac(killerid,24)) //Hier 5435
{
} //Hier 5438
else if(IsPlayerInFrac(killerid,8)) //Hier 5439
{
if(WantedLevel[killerid] >= 15) //Hier 5441
{
WantedLevel[killerid] = 14;
}
else
{
WantedLevel[killerid] += 1;
}
}
else
{
if(WantedLevel[killerid] >= 15)
{
WantedLevel[killerid] = 14;
}
else
{
WantedLevel[killerid] += 2;
}
}
}
if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
{
if(IsPlayerConnected(killerid))
{
if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
{
new killer[MAX_PLAYER_NAME];
new dier[MAX_PLAYER_NAME];
GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
CKLog(string);
PlayerInfo[playerid][pCK] = 1;
if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
KickPlayer[playerid] = 1;
}
}
}
killerid = INVALID_PLAYER_ID;
SetPlayerColor(playerid,COLOR_GRAD2);
return 1;
}*/
Der Ganze COde verursacht die ganzen warnings klammere ich den aus kommt:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Das sieht erneut nach einem Klammerfehler aus, zumindest geht eine Klammer mehr zu. Ist dieser Teil in dem ganzen Gamemode den du mir geschickt hast auch drin und auch ausgeklammert?
Wenn nicht, schicke mir bitte nochmal den Code, und klammere es nicht aus.
Function OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerInFrac(killerid,8))
{
if(PlayerInfo[playerid][pContract] >= 1)
{
new stringa[200];
GameTextForPlayer(killerid, "~r~Auftrag erledigt !", 4000, 4);
GivePlayerMoney(killerid,PlayerInfo[playerid][pContract]);
GameTextForPlayer(playerid, "~r~Auftrags-Kill !", 4000, 4);
format(stringa, sizeof(stringa), "||>>|| Hitman %s hat %s gekillt. Und bekam die %d$ ||<<||",SpielerName(killerid),SpielerName(playerid),PlayerInfo[playerid][pContract]);
PlayerInfo[playerid][pContract] = 0;
SendFamilyMessage(8,COLOR_YELLOW,stringa);
}
}
if(GetPVarInt(playerid,"modcheck") == 1)
{
SetPlayerPos(playerid,-672.1529,962.2229,12.1328);
SpawnPlayer(playerid);
}
if(IsACop(killerid))
{
if(WantedLevel[playerid] >= 1)
{
GivePlayerMoney(playerid,-WantedLevel[playerid]*1000);
PlayerInfo[killerid][pGehalt] += WantedLevel[playerid]*500;
ResetPlayerWeapons(playerid);
new string[200];
if(PlayerInfo[killerid][pMember]==1||PlayerInfo[killerid][pLeader]==1)
{
format(string, sizeof(string), "< < < Officer %s hat den Verbrecher %s getötet > > >", SpielerName(killerid), SpielerName(playerid));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[killerid][pMember]==2||PlayerInfo[killerid][pLeader]==2)
{
format(string, sizeof(string), "< < < Agent %s hat den Verbrecher %s getötet > > >", SpielerName(killerid), SpielerName(playerid));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[killerid][pMember]==3||PlayerInfo[killerid][pLeader]==3)
{
format(string, sizeof(string), "< < < Soldat %s hat den Verbrecher %s getötet > > >", SpielerName(killerid), SpielerName(playerid));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[killerid][pMember]==22||PlayerInfo[killerid][pLeader]==22)
{
format(string, sizeof(string), "< < < SWAT Agent %s hat den Verbrecher %s getötet > > >", SpielerName(killerid), SpielerName(playerid));
OOCNews(COLOR_RED, string);
}
if(LSPDZellen == 0)//zelle1
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,227.3844,111.5490,999);
LSPDZellen += 1;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,223.5090,111.4179,999);
LSPDZellen += 1;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,219.5361,111.3571,999);
LSPDZellen += 1;
}
if(LSPDZellen == 3)//Zelle4
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,215.5814,111.1412,999);
LSPDZellen += 1;
}
if(PlayerInfo[playerid][pMember] == 2)
{
if(LSPDZellen == 0)//zelle1
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,227.3844,111.5490,999);
LSPDZellen += 1;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,223.5090,111.4179,999);
LSPDZellen += 1;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,219.5361,111.3571,999);
LSPDZellen += 1;
}
if(LSPDZellen == 3)//Zelle4
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,215.5814,111.1412,999);
LSPDZellen += 1;
}
}
else
{
if(LSPDZellen == 0)//zelle1
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,264.8299,86.5835,1001.0391);
LSPDZellen += 1;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,264.4675,82.0742,1001.0391);
LSPDZellen += 1;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerInterior(playerid, 0);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(playerid,265.2794,77.6027,1001.0391);
LSPDZellen += 1;
}
}
PlayerInfo[playerid][pJailTime] = WantedLevel[playerid] * 240;
new spr[100];
format(spr,sizeof(spr),"Du wurdest für %d Minuten und einer Geldstrafe von %d$ eingesperrt",WantedLevel[playerid] * 4,WantedLevel[playerid] * 1000);
SendClientMessage(playerid,COLOR_LIGHTBLUE,spr);
PlayerInfo[playerid][pJailed] = 1;
PlayerInfo[playerid][pArrested] += 1;
SetPlayerInterior(playerid, 6);
SetPlayerFree(playerid,playerid, "Verhaftet");
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
SetPlayerWantedLevel(playerid,0);
}
}
new name[MAX_PLAYER_NAME];
new string[256];
PlayerInfo[playerid][pInvWeapon] = 0;
PlayerInfo[playerid][pInvAmmo] = 0;
PlayerInfo[playerid][pInvWeapon2] = 0;
PlayerInfo[playerid][pInvAmmo2] = 0;
FrakMatsHolding[playerid] = 0;
/*new playercash;
new victimteam;
new killerteam;*/
if(PlayerInfo[playerid][pLevel] > 2 && KHSperre[playerid] == 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
PlayerInfo[playerid][pTot] = 1;
}
if (!IsACop(killerid) && reason == 49)
{
SetPlayerCriminal(killerid,255, "Fahrerflucht");
}
if(gPlayerUsingLoopingAnim[playerid])
{
gPlayerUsingLoopingAnim[playerid] = 0;
TextDrawHideForPlayer(playerid,txtAnimHelper);
}
if(BlindFold[playerid] == 1)
{
BlindFold[playerid] = 0;
}
if(PlayerInfo[playerid][pMauled] == 1)
{
PlayerInfo[playerid][pMauled] = 0;
}
InCargo[playerid] = 0; InLevi[playerid] = 0; InEnfo[playerid] = 0;
if(FirstSpawn[playerid] == 1)
{
FirstSpawn[playerid] = 0;
}
if(IsBlacklist[playerid]==1)
{
ClearBlack(playerid);
IsBlacklist[playerid]=0;
}
if(GetPVarInt(playerid,"Flugp") == 1)
{
new car = GetPlayerVehicleID(playerid);
DestroyVehicle(car);
SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist hast du die Prüfung nicht bestanden !");
SetPVarInt(playerid,"Flugp",0);
DisablePlayerRaceCheckpoint(playerid);
PlayerInfo[playerid][pFlyLic] = 0;
}
if(GetPVarInt(playerid,"Linie") == 1)
{
new car = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(car);
SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist, ist dein Job nun beendet");
DisablePlayerCheckpoint(playerid);
DeletePVar(playerid,"Linie");
Linieende(playerid);
Delete3DTextLabel(linie1text[playerid]);
}
if(GetPVarInt(playerid,"Leerfahrts") == 1)
{
new car = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(car);
SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist, ist dein Job nun beendet");
DisablePlayerCheckpoint(playerid);
Linieende(playerid);
DeletePVar(playerid,"Leerfahrts");
Delete3DTextLabel(linie1text[playerid]);
}
if(GetPVarInt(playerid,"MullStatus") == 1)
{
new car = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(car);
SendClientMessage(playerid,COLOR_RED,"Da du ausgestiegen bist, ist dein Job nun beendet");
DisablePlayerCheckpoint(playerid);
DeletePVar(playerid,"MullStatus");
}
if(GetPVarInt(playerid,"TaxiStatus") == 1)
{
Linieende(playerid);
}
if(GetPVarInt(playerid,"Motp") == 1)
{
new car = GetPlayerVehicleID(playerid);
PlayerInfo[playerid][pMotoLic] = 0;
DestroyVehicle(car);
SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist hast du die Prüfung nicht bestanden !");
SetPVarInt(playerid,"Motp",0);
DisablePlayerRaceCheckpoint(playerid);
}
if(GetPVarInt(playerid,"FlugStatus") == 1)
{
new car = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(car);
SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist hast den Flug automatisch abgebrochen !");
SetPVarInt(playerid,"FlugStatus",0);
DisablePlayerCheckpoint(playerid);
}
//=======================
//victimteam = gTeam[playerid];
//killerteam = gTeam[killerid];
gPlayerSpawned[playerid] = 0;
GetPlayerName(playerid, name, sizeof(name));
PlayerInfo[playerid][pLocal] = 255;
if(killerid != 255)
if(reason == 38)
{
new kstring[128];
new kickname[MAX_PLAYER_NAME];
if(IsPlayerConnected(killerid))
{
GetPlayerName(killerid, kickname, sizeof(kickname));
format(string, 256, "Warnung: [%d]%s hat einen Spieler mit einer Minigun gekillt. ACHTUNG [CheatVerdacht].",killerid,kickname);
ABroadCast(COLOR_YELLOW,string,1);
printf("%s", kstring);
}
}
if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, " Die Verbindung wurde unterbrochen....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(PlayerPaintballing[playerid] != 0)
{
PlayerPaintballKills[killerid] ++;
if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
{
new killer[MAX_PLAYER_NAME];
PaintballWinner = killerid;
PaintballWinnerKills = PlayerPaintballKills[killerid];
GetPlayerName(killerid, killer, sizeof(killer));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerPaintballing[i] != 0)
{
format(string, sizeof(string), "* %s ist mit %d Kills in Führung.",killer,PaintballWinnerKills);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
}
return 1;
}
if(PlayerPaintballing[playerid] == 0 || PlayerPaintballing[killerid] == 0)
{
PlayerInfo[playerid][pTot] = 1;
new Float:pxX,Float:pyY,Float:pzZ;
GetPlayerPos(playerid, pxX, pyY, pzZ);
TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
PlayerInfo[playerid][pTx] = pxX;
PlayerInfo[playerid][pTy] = pyY;
PlayerInfo[playerid][pTz] = pzZ;
SendFamilyMessage(4,COLOR_BLUE,"Es ist eine Person gestorben ! (/tote)");
PlayerInfo[killerid][pKills] += 1;
PlayerInfo[playerid][pDeaths] += 1;
if(IsACop(killerid) || IsPlayerInFrac(killerid,4) || IsPlayerInFrac(killerid,9) || IsPlayerInFrac(killerid,24))
{
}
else if(IsPlayerInFrac(killerid,8))
{
if(WantedLevel[killerid] >= 15)
{
WantedLevel[killerid] = 14;
}
else
{
WantedLevel[killerid] += 1;
}
}
else
{
if(WantedLevel[killerid] >= 15)
{
WantedLevel[killerid] = 14;
}
else
{
WantedLevel[killerid] += 2;
}
}
}
if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
{
if(IsPlayerConnected(killerid))
{
if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
{
new killer[MAX_PLAYER_NAME];
new dier[MAX_PLAYER_NAME];
GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
CKLog(string);
PlayerInfo[playerid][pCK] = 1;
if(GettingCK[playerid] < 999)
{
GettingCK[playerid] = 999;
}
else if(OnCK[playerid] < 999)
{
OnCK[playerid] = 999;
}
if(GettingCK[killerid] < 999)
{
GettingCK[killerid] = 999;
}
else if(OnCK[killerid] < 999)
{
OnCK[killerid] = 999;
}
KickPlayer[playerid] = 1;
}
}
}
killerid = INVALID_PLAYER_ID;
SetPlayerColor(playerid,COLOR_GRAD2);
return 1;
}
/*if(PlayerPaintballing[playerid] == 0 || PlayerPaintballing[killerid] == 0)//Hier der Ursacher
{
PlayerInfo[playerid][pTot] = 1;
new Float:pxX,Float:pyY,Float:pzZ;
GetPlayerPos(playerid, pxX, pyY, pzZ); //Hier 5427
TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
PlayerInfo[playerid][pTx] = pxX;
PlayerInfo[playerid][pTy] = pyY;
PlayerInfo[playerid][pTz] = pzZ;
SendFamilyMessage(4,COLOR_BLUE,"Es ist eine Person gestorben ! (/tote)");
PlayerInfo[killerid][pKills] += 1; //Hier 5433
PlayerInfo[playerid][pDeaths] += 1;
if(IsACop(killerid) || IsPlayerInFrac(killerid,4) || IsPlayerInFrac(killerid,9) || IsPlayerInFrac(killerid,24)) //Hier 5435
{
} //Hier 5438
else if(IsPlayerInFrac(killerid,8)) //Hier 5439
{
if(WantedLevel[killerid] >= 15) //Hier 5441
{
WantedLevel[killerid] = 14;
}
else
{
WantedLevel[killerid] += 1;
}
}
else
{
if(WantedLevel[killerid] >= 15)
{
WantedLevel[killerid] = 14;
}
else
{
WantedLevel[killerid] += 2;
}
}
}
if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
{
if(IsPlayerConnected(killerid))
{
if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
{
new killer[MAX_PLAYER_NAME];
new dier[MAX_PLAYER_NAME];
GetPlayerName(playerid, dier, sizeof(dier));
GetPlayerName(killerid, killer, sizeof(killer));
format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
CKLog(string);
PlayerInfo[playerid][pCK] = 1;
if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
KickPlayer[playerid] = 1;
}
}
}
killerid = INVALID_PLAYER_ID;
SetPlayerColor(playerid,COLOR_GRAD2);
return 1;
}*/
//E:
Habe es rausgenommen hat sich erledigt!