26.01.2015, 14:33
(
Последний раз редактировалось HydraHumza; 26.01.2015 в 14:55.
Причина: Solved
)
Solved
public OnPlayerResume(playerid)
forward OnPlayerResume(playerid, time);
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;
}