Hey Leute
Ich hab ein blöden AntiBunnyJump system der bei demm 2 sprung einen fallen lässt und nicht mehr aufstehen kann -.-
else if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
{
if(AntiBunnyJump == 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
{
if(BunnyJump[playerid] == 0)
{
BunnyJump[playerid] = 1;
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
}
else if(BunnyJump[playerid] == 1)
{
if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
if(Checked[playerid] == 0)
{
if(PlayerGotSpottedRecently[playerid] == 0)
{
PlayerSuspicious[playerid] = 1;
PlayerSuspiciousReason[playerid] = 6;
PlayerGotSpottedRecently[playerid] = 1;
format(string, 256, "[PETER]: %s (%d) is bunny jumping, Go check him!!", sendername, playerid);
SendAdminMessage(COLOR_LIGHTRED, string);
SetTimerEx("ResetAcWarn", 150000, 0, "i", playerid);
}
}
PlayerBunnyJumped[playerid] ++;
SendClientMessage(playerid, COLOR_GREY, "Stop Bunnyjumping, You might Fall Down if you do So!");
KillTimer(ResetJumpTimer);
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
if(PlayerInfo[playerid][pMaskuse] == 1 && PlayerInfo[playerid][pAdminDuty] == 0)
{
format(string, sizeof(string), "* Stranger falls down by doing a wrong move.");
}
if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "* %s falls down by doing a wrong move.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
AdminLog(string);
return 1;
}
}
}
}
}
else if ((newkeys & KEY_SPRINT) && (newkeys & KEY_JUMP))
{
if(AntiBunnyJump == 1)
{
if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
{
if(BunnyJump[playerid] == 0)
{
BunnyJump[playerid] = 1;
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
}
else if(BunnyJump[playerid] == 1)
{
if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
if(Checked[playerid] == 0)
{
if(PlayerGotSpottedRecently[playerid] == 0)
{
PlayerSuspicious[playerid] = 1;
PlayerSuspiciousReason[playerid] = 6;
PlayerGotSpottedRecently[playerid] = 1;
format(string, 256, "[PETER]: %s (%d) is bunny jumping, Go check him!!", sendername, playerid);
SendAdminMessage(COLOR_LIGHTRED, string);
SetTimerEx("ResetAcWarn", 150000, 0, "i", playerid);
}
}
PlayerBunnyJumped[playerid] ++;
SendClientMessage(playerid, COLOR_GREY, "Stop Bunnyjumping, You might Fall Down if you do So!");
KillTimer(ResetJumpTimer);
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
if(PlayerInfo[playerid][pMaskuse] == 1 && PlayerInfo[playerid][pAdminDuty] == 0)
{
format(string, sizeof(string), "* Stranger falls down by doing a wrong move.");
}
if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "* %s falls down by doing a wrong move.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
AdminLog(string);
return 1;
}
}
}
}
}
Weiss jemmand wie ich das ausschalten kann ?
Danke im vorraus
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
Das Sinnvollste wäre alles vom AntiBunnyJump zu entfernen...
-
Ist aber sehr viel, falls es dann nciht geht kann ich den Gamemode ins müll schmeissen...
-
such mal nach der definition von AntiBunnyJump
also iwas mit new AntiBunnyJump -
gibts nicht
ausser das
new AntiBunnyJump = 0;
soll ich mall alles was mit AntiBunny zu tuhen hat rein posten?? -
wäre am besten
-
new AntiBunnyJump = 0;
if(dialogid == 1234) // /turn for admins
{
if(response)
{
if(listitem == 0)
{
if(PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid, COLOR_GREY, "* You are not authorized to use this option");
return 1;
}
if(AntiBunnyJump == 1)
{
SendClientMessage(playerid, COLOR_GREY, "* You have Turned off the Bunny jump Detection!");
AntiBunnyJump = 0;
format(string, 128, "[ADMIN]: %s has turned off the Bunny jump Detection.",sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
}
else if(AntiBunnyJump == 0)
{
SendClientMessage(playerid, COLOR_GREY, "* You have Turned on the Bunny jump Detection!");
AntiBunnyJump = 1;
format(string, 128, "[ADMIN]: %s has turned on the Bunny jump Detection.",sendername);
ABroadCast(COLOR_LIGHTRED, string, 5);
}
}
public LoadStuff()
{
new arrCoords[5][64];
new strFromFile2[128];
new File: file = fopen("LARP/stuff.ini", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
Jackpot = strval(arrCoords[0]);
Tax = strval(arrCoords[1]);
TaxValue = strval(arrCoords[2]);
Security = strval(arrCoords[3]);
AntiBunnyJump = strval(arrCoords[4]);
fclose(file);
}
public LoadAnticheat()
{
new arrCoords[5][64];
new strFromFile2[128];
new File: file = fopen("LARP/anticheat.ini", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
AntiBunnyJump = strval(arrCoords[0]);
AntiWeaponHack = strval(arrCoords[1]);
AntiMoneyHack = strval(arrCoords[2]);
AntiInteriorHack = strval(arrCoords[3]);
AntiJetpackHack = strval(arrCoords[4]);
fclose(file);
}
public SaveAnticheat()
{
new coordsstring[128];
format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d,%d", AntiBunnyJump,AntiWeaponHack,AntiMoneyHack,AntiInteriorHack,AntiJetpackHack);
new File: file2 = fopen("LARP/anticheat.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}
public SaveStuff()
{
new coordsstring[128];
format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d,%d", Jackpot,Tax,TaxValue,Security,AntiBunnyJump);
new File: file2 = fopen("LARP/stuff.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}
AntiBunnyJump = 1;
else if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
{
if(AntiBunnyJump == 1)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
{
if(BunnyJump[playerid] == 0)
{
BunnyJump[playerid] = 1;
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
}
else if(BunnyJump[playerid] == 1)
{
if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
if(Checked[playerid] == 0)
{
if(PlayerGotSpottedRecently[playerid] == 0)
{
PlayerSuspicious[playerid] = 1;
PlayerSuspiciousReason[playerid] = 6;
PlayerGotSpottedRecently[playerid] = 1;
format(string, 256, "[PETER]: %s (%d) is bunny jumping, Go check him!!", sendername, playerid);
SendAdminMessage(COLOR_LIGHTRED, string);
SetTimerEx("ResetAcWarn", 150000, 0, "i", playerid);
}
}
PlayerBunnyJumped[playerid] ++;
SendClientMessage(playerid, COLOR_GREY, "Stop Bunnyjumping, You might Fall Down if you do So!");
KillTimer(ResetJumpTimer);
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
if(PlayerInfo[playerid][pMaskuse] == 1 && PlayerInfo[playerid][pAdminDuty] == 0)
{
format(string, sizeof(string), "* Stranger falls down by doing a wrong move.");
}
if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "* %s falls down by doing a wrong move.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
AdminLog(string);
return 1;
}
}
}
}
}
else if ((newkeys & KEY_SPRINT) && (newkeys & KEY_JUMP))
{
if(AntiBunnyJump == 1)
{
if(!IsPlayerInAnyVehicle(playerid) && IsPlayerOnSpecialAction(playerid) == 0 || PlayerInfo[playerid][pAdminDuty] == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(GivingBlowjob[playerid] == 0 || GettingBlowjob[playerid] == 0)
{
if(BunnyJump[playerid] == 0)
{
BunnyJump[playerid] = 1;
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
}
else if(BunnyJump[playerid] == 1)
{
if(PlayerInfo[playerid][pAdminDuty] >= 1) return 1;
if(Checked[playerid] == 0)
{
if(PlayerGotSpottedRecently[playerid] == 0)
{
PlayerSuspicious[playerid] = 1;
PlayerSuspiciousReason[playerid] = 6;
PlayerGotSpottedRecently[playerid] = 1;
format(string, 256, "[PETER]: %s (%d) is bunny jumping, Go check him!!", sendername, playerid);
SendAdminMessage(COLOR_LIGHTRED, string);
SetTimerEx("ResetAcWarn", 150000, 0, "i", playerid);
}
}
PlayerBunnyJumped[playerid] ++;
SendClientMessage(playerid, COLOR_GREY, "Stop Bunnyjumping, You might Fall Down if you do So!");
KillTimer(ResetJumpTimer);
ResetJumpTimer = SetTimerEx("ResetJump1",2000,0,"i",playerid);
ApplyAnimation(playerid,"PED","BIKE_fallR",4.0,0,1,1,1,0);
if(PlayerInfo[playerid][pMaskuse] == 1 && PlayerInfo[playerid][pAdminDuty] == 0)
{
format(string, sizeof(string), "* Stranger falls down by doing a wrong move.");
}
if(PlayerInfo[playerid][pAdminDuty] == 0 && PlayerInfo[playerid][pMaskuse] == 0)
{
format(string, sizeof(string), "* %s falls down by doing a wrong move.", sendername);
}
ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has been Found Bunny jumping.",d,m,y,h,mi,s,sendername);
AdminLog(string);
return 1;
}
}
}
}
} -
brauche den Inhalt aus der stuff.ini und der anticheat.ini , zu dem wäre noch interessant 1. wo dialog nummer 1234 aufgerufen wird. und in welchen context AntiBunnyJump = 1; aus dem 2. pawntext von unen steht.
-
Also das erste die stuff.ini:
380741,100,0,0,1
und Anticheat.ini gibt es nicht.. -
naja wenn es keine anticheat.ini gibt schreieb in die suff.ini folgendes rein: 380741,100,0,0,0 und probiere es mal aus. ansonsten lade ich mir mal tv und helfe dir so
-
-
geht nicht
-
haste den teamviewer?
-
japp...
//Edit
Funktioniert; danke an [DT]Sniper