Help ANTI_AFK
#2

wtf?
PHP код:
new Float:AFKPos[MAX_PLAYERS][3]
    
AFKCounter[MAX_PLAYERS];
AFKCheck(pid){
    if(
IsPlayerInRangeOfPoint(pid,1.0,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2])){
        
AFKCounter[pid]++;
    }else{
        
AFKCounter[pid]=0;
    }
    if(
AFKCountr[pid]>=5*60){
        
ShowPlayerDialog(pid,d_afkanswer,msgbox,"AFK","Are you afk?","Yes","No");
    }
    
GetPlayerPos(pid,AFKPos[pid][0],AFKPos[pid][1],AFKPos[pid][2]);
    return 
1;

Reply


Messages In This Thread
Help ANTI_AFK - by TMapping - 03.07.2018, 10:07
Re: Help ANTI_AFK - by CodeStyle175 - 03.07.2018, 10:16
Re: Help ANTI_AFK - by TMapping - 03.07.2018, 11:29
Re: Help ANTI_AFK - by CodeStyle175 - 03.07.2018, 11:38
Re: Help ANTI_AFK - by Sew_Sumi - 03.07.2018, 11:58
Re: Help ANTI_AFK - by J0sh... - 03.07.2018, 11:58
Re: Help ANTI_AFK - by TMapping - 03.07.2018, 12:08
Re: Help ANTI_AFK - by CodeStyle175 - 03.07.2018, 12:20
Re: Help ANTI_AFK - by TMapping - 03.07.2018, 12:24
Re: Help ANTI_AFK - by Sew_Sumi - 03.07.2018, 12:37
Re: Help ANTI_AFK - by TMapping - 03.07.2018, 13:24
Re: Help ANTI_AFK - by Sew_Sumi - 03.07.2018, 21:55

Forum Jump:


Users browsing this thread: 4 Guest(s)