afk time show
#1

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:minecound

anyone can help me with that? srry for my bad english
Reply
#2

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.
Reply
#3

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
Reply
#4

Wrong section
http://forum.sa-mp.com/showthread.ph...7813&page=1368
Reply
#5

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.
Reply
#6

updates
public OnPlayerUpdate(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)