Innactive players
#5

How this should work what doest it do

I made this but nothing pls help

THIS IS REALLY SIMPLE DESIGN (2 SECONDS OF MAKING =) )

PHP код:
new PlayaTick[MAX_PLAYERS];
bool:IsPlayerAFK(playerid)
{
return ( (
GetTickCount() - PlayaTick[playerid] ) > 650);
}
public 
OnPlayerUpdate(playerid)
{
new 
string[512],name[512];
PlayaTick[playerid] = GetTickCount();
foreach(new 
Player)
{
if(
IsPlayerAFK(i))
{
GetPlayerName(i,name,sizeof(name));
format(string,sizeof(string),"%s is inactive",name);
SendClientMessageToAll(-1,string);
}
}
return 
1;

Reply


Messages In This Thread
Innactive players - by kalanerik99 - 25.06.2015, 20:52
Re: Innactive players - by Alex Magaсa - 25.06.2015, 20:58
Re: Innactive players - by kalanerik99 - 25.06.2015, 21:04
Re: Innactive players - by Jefff - 25.06.2015, 21:13
Re: Innactive players - by kalanerik99 - 25.06.2015, 21:33
Re: Innactive players - by Jefff - 25.06.2015, 22:01
Re: Innactive players - by kalanerik99 - 25.06.2015, 22:03
Re: Innactive players - by Jefff - 25.06.2015, 22:05
Re: Innactive players - by kalanerik99 - 25.06.2015, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)