26.01.2015, 14:51
PHP код:
public OnPlayerResume(playerid, )
{
new time;
if(Capturing{ playerid} )
{
if(time >= 4000)
{
new string[74];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "** %s[%d] was AFK for 4(or more) seconds, WHILE CAPTURING!", name, playerid);
MessageToAdmins(C_RED, string);
}
else
{
AFK{ playerid } = false;
}
}
AFK{ playerid } = false;
return 1;
}