Jump to content
  • 0

pomoc SAMP KEY


LORD BENDTNER

Dotaz

11 odpovědí na tuto otázku

Recommended Posts

  • 0

Ano ESC zjístíš přes OnplayerUpdate

 

 

new AFK[playerid] ;

new AFKT[playerid]

forward AFKCheck(playerid);

public OnPlayerUpdate(playerid)

{

AFK[playerid] =false;

KillTimer(AFKT[playerid]);

AFKT[playerid]=SetTimerEx("AFKCheck", 5000, false, "i", playerid);

 

return 1;

}

public AFKCheck(playerid)

{

AFK[playerid] = true; // hráč je afk

return 1;

}

 

 

jediná nevýhoda je že pokud má hráč nestabilní připojení nebo ping větší jak 200+- tak mu to nastavuje pokud bysi tam měl 3d label tak by mu ten text problikával

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...