0 Members and 2 Guests are viewing this topic.
It takes way beyond 1-2 minutes, and as I said, I want to be able to perform a quick command instead of minimizing into ARSSE or finding out the players numbers so I can move him to spec.Doing it by name is also a problem when their names are @1337@%£NINJA][[]®
you could make something around that :POSITION : array[1..MAXPLAYERS] of single;AFKTIME : array[1..MAXPLAYERS] of byte;Init the arrays to 0In ApponIdle You check every 10 seconds for example and :for i:= 1 to MAXPLAYERS do begin if GetPlayerXY(i,X,Y) = POSITION then AFKTIME := AFKTIME + 10; // position didn t change, we increase AFKTIME else AFKTIME := 0; POSITION := GetPlayerXY(i,X,Y); //getting new positionsend;if AFKTIME > 120 then KickPlayer(i);well you get the idea
Quote from: Psycho on December 14, 2007, 08:46:58 pmIt takes way beyond 1-2 minutes, and as I said, I want to be able to perform a quick command instead of minimizing into ARSSE or finding out the players numbers so I can move him to spec.Doing it by name is also a problem when their names are @1337@%£NINJA][[]®Ingame, type /, then hit F1, and you can see the player number of every player, no need to alt tab into ARSSE. You should be able to find their number by the time you type "setteam5 ".Quote from: poutch on December 14, 2007, 10:04:45 pmyou could make something around that :POSITION : array[1..MAXPLAYERS] of single;AFKTIME : array[1..MAXPLAYERS] of byte;Init the arrays to 0In ApponIdle You check every 10 seconds for example and :for i:= 1 to MAXPLAYERS do begin if GetPlayerXY(i,X,Y) = POSITION then AFKTIME := AFKTIME + 10; // position didn t change, we increase AFKTIME else AFKTIME := 0; POSITION := GetPlayerXY(i,X,Y); //getting new positionsend;if AFKTIME > 120 then KickPlayer(i);well you get the ideaThe basic idea might work, although what you wrote definitely won't.
Bye bye snipers? Take kills and chat into account.
but campers usually lie on the ground and afkers stay, so you should check if the player lie or stand on the ground...