- 0
Problema anti-hack
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 261 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 157 views
-
- 1 answer
- 312 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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