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;
}
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;
}