Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Players appear AFK but in game they are online.

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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>