Players appear AFK but in game they are online.
#1

Some players appear AFK in the game but they are online ..


public OnPlayerUpdate(playerid)
{
//Speed Limit
//TrollDetect(playerid);
/*if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && SpeedLimit[playerid])
{
new a, b, c;
GetPlayerKeys(playerid, a, b ,c);
if(a == 8 && GetVehicleRealSpeed(GetPlayerVehicleID(playerid), 0) > SpeedLimit[playerid])
{
new newspeed = GetVehicleRealSpeed(GetPlayerVehicleID(playerid), 0) - SpeedLimit[playerid];
ModifyVehicleSpeed(GetPlayerVehicleID(playerid), -newspeed);
}
}*/
new drunk2 = GetPlayerDrunkLevel(playerid);
if(drunk2 < 100)
{
SetPlayerDrunkLevel(playerid,2000);
}
else
{
if(DLlast[playerid] != drunk2)
{
new fps = DLlast[playerid] - drunk2;
if((fps > 0) && (fps < 200))
FPS2[playerid] = fps;
DLlast[playerid] = drunk2;
}
}
EscTime[playerid] = 0;
return 1;
}
Reply
#2

upssssssssssssss
Reply
#3

BUMPPPPP
Reply
#4

BUMPPPPPPP

HELP PLS
Reply
#5

Wipe everything under OnPlayerUpdate and try again
Reply
#6

you haven't used a code tag to beautify your code so it will be more readable and you haven't provided any info about `EscTime` and how do you change its value other than to zero.

From my understanding, `EscTime` is the array that suppose to indicate whether a player is afk
Reply
#7

Quote:
Originally Posted by Kaperstone
Посмотреть сообщение
you haven't used a code tag to beautify your code so it will be more readable and you haven't provided any info about `EscTime` and how do you change its value other than to zero.

From my understanding, `EscTime` is the array that suppose to indicate whether a player is afk
Until I saw your comment I thought he meant there is hourglass above the afk player
Reply
#8

EscTime set second on this player is AFK.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)