- 0
Problema anti-hack
-
Similar Content
-
- 2 replies
- 116 views
-
- 3 answers
- 177 views
-
- 11 replies
- 242 views
-
- 2 replies
- 132 views
-
- 2 answers
- 168 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
marius11
Problema intalnita (descriere): Daca playeri au arme sistemul de antihack ii detecteaza , chiar daca au armele din joc
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
stock hackerTrigger(playerid) {
if(playerVariables[playerid][pTabbed] == 0) {
playerVariables[playerid][pHackWarnings]++;
playerVariables[playerid][pHackWarnTime] = 1;
if(playerVariables[playerid][pHackWarnings] >= 3) {
new
wep = GetPlayerWeapon(playerid),
reason[94];
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
format(reason, sizeof(reason), "Warning: {FFFFFF}%s may possibly be weapon hacking (%s).", szPlayerName, WeaponNames[wep]);
submitToAdmins(reason, COLOR_HOTORANGE);
/* if(playerVariables[playerid][pHackWarnings] >= MAX_WEAPON_HACK_WARNINGS) {
format(reason, sizeof(reason), "Weapon Hacking (%s).", WeaponNames[wep]);
scriptBan(playerid, reason);
}*/
}
}
return 1;
}
si
if(strcmp(cmdtext, "/attack", true) == 0)
{
return 1;
}
else
{
playerVariables[playerid][pSpamCount]++;
}
new
charCount[3];
for(new i; i < strlen(cmdtext); i++) switch(cmdtext) {
case '0' .. '9': charCount[0]++;
case '.': charCount[1]++;
case ':': charCount[2]++;
}
if(charCount[0] > 8 && charCount[1] >= 3 && charCount[2] >= 1 && playerVariables[playerid][pAdminLevel] < 1) {
format(szMessage, sizeof(szMessage),"Warning: {FFFFFF}%s may be server advertising: '%s'.", szPlayerName, cmdtext);
submitToAdmins(szMessage, COLOR_HOTORANGE);
return 0;
}
return 1;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:nu stiu ce pot sa ii fac
Link to comment
Share on other sites
2 answers to this question
Recommended Posts