afk time show - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: afk time show (
/showthread.php?tid=658382)
afk time show -
PoniStar - 03.09.2018
hi all , i need a afk timer script , i want to this script do this :
if a player is afk (ESC) a text should show in top of this head with this format : {red}AFK : {white}01:30:06
time format: hour:min
ecound
anyone can help me with that? srry for my bad english
Re: afk time show -
RogueDrifter - 03.09.2018
Here's something i made really quick:
CLICK HERE
It gives these to control with:
Код:
/*Functions:
__________*/
bool:IsPlayerPaused(playerid); //If the player pressed the Esc button
bool:IsPlayerAFK(playerid); //If the player isn't moving
/*Callbacks:
__________*/
public OnPlayerPause(playerid) //Once a player presses the Esc button
public OnPlayerResume(playerid) //Once a player returns from pausing
public OnPlayerAFK(playerid) //Once a player stops moving for about 55-65 seconds
public OnPlayerReturn(playerid) //Once a player starts moving again
It's an include so yeah just include it in your script using:
Код:
#include <rAfk_Checker>
You'll have to do that text thing using
Create3DTextLabel,
Delete3DTextLabel,
Update3DTextLabel,
Attach3DTextLabelToPlayer under the callbacks my include provides.
Re: afk time show -
PoniStar - 03.09.2018
um... i'am a little newbie, so its not the compelete script who i want ? i should add some things like that 3dtextlable? iam really noob on samp scripts can you do all things and give me something like filterscript? or if its the compelete code please say what should i do a little better iam newbie
thnx
Re: afk time show -
Shinja - 03.09.2018
Wrong section
http://forum.sa-mp.com/showthread.ph...7813&page=1368
Re: afk time show -
RogueDrifter - 03.09.2018
Quote:
Originally Posted by PoniStar
um... i'am a little newbie, so its not the compelete script who i want ? i should add some things like that 3dtextlable? iam really noob on samp scripts can you do all things and give me something like filterscript? or if its the compelete code please say what should i do a little better iam newbie thnx
|
Give me 24 hours i'll update the gist link later.
Re: afk time show -
sonn51280 - 08.09.2018
updates
public OnPlayerUpdate(playerid)