27.01.2018, 16:41
https://github.com/emmet-jones/New-SA-MP-callbacks
pass your code through the forward OnPlayerPause
create a new variable say afk
so,
pass your code through the forward OnPlayerPause
create a new variable say afk
so,
Код:
new afk[MAX_PLAYER]; public OnPlayerPause(playerid) { afk[playerid]=1; } public OnPlayerResume(playerid, time) { afk[playerid]=0; } public OnPlayerSpawn(playerid) { if(afk[playerid]==1) { //your code here for paused player } else { //not paused player } }