Help homies!
#1

Код:
	if (GetPlayerSpeed(i) > 210)
		{
		    if (!IsAPlane(GetPlayerVehicleID(i)) && GetPlayerState(i) != PLAYER_STATE_PASSENGER)
		    {
		        SendAdminAlert(COLOR_LIGHTRED, "[ADMIN]: %s has possibly used speed hacks (%.0f mph).", ReturnName(i, 0), GetPlayerSpeed(i));
		        Log_Write("logs/cheat_log.txt", "[%s] %s has possibly used speed hacks (%.0f mph).", ReturnDate(), ReturnName(i, 0), GetPlayerSpeed(i));
			}
It is supposed to be an anti speed system, but when for example there are 2 admins in the server and the one is flying, the other one gets called in with him, not only the hacker. It happens, doesn't matter if the hacker is an admin or not, it catches another player too.
Help with this, please!
Reply
#2

Please!
Reply
#3

Направи още един callback примерно "SendAdminAlert2". Да бъде същият, но да го използваш само в тази функция и в него добави при проверката за admin, дали човекът не е с 210 скорост(пример: if(PlayerInfo[i][Admin] && if (GetPlayerSpeed(i) <= 210))).
Това е само пример, сам можеш да си направиш извод от него!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)