remove
lock
|
Re: CT AFK Slayer
Quote:
PHP Code:
|
Re: CT AFK Slayer
thanks, but that doesn't kill my afk players.
|
Re: CT AFK Slayer
Perhaps you need to detect and count when the button is not pressed.
I'm thinking about it, But someone will complete it before I make it. |
Re: CT AFK Slayer
This will slay if the player is within 10 units of where he spawned after 30 seconds.
PHP Code:
|
Re: CT AFK Slayer
What about if player doesn't move from spawn point will he be slayed??
|
Re: CT AFK Slayer
Yes, if the player does nothing he will be killed after 30 seconds. With the 10 unit thing, if he walked away and then came back and was within 10 units of his spawn location, he would be slayed. Odds are slim, but I guess it could happen. I can add additional code to prevent this.
|
Re: CT AFK Slayer
@Bugsy
You work fast everyday. I think you so busy. :) |
Re: CT AFK Slayer
Bugsy = Godlike =)
|
Re: CT AFK Slayer
Bugsy what about if he go far from spawn and afk there will he be slayed?
|
Re: CT AFK Slayer
No, the above only covers when he spawns and does not move.
This will slay when a player spawns and does not move, or stops moving for 30 seconds anywhere on the map. PHP Code:
|
Re: CT AFK Slayer
I Tested right now, and this don't slay my players..
|
Re: CT AFK Slayer
BUgsy this dont slay my players
|
Re: CT AFK Slayer
Ok I see the issue.. the problem is with players who go AFK after leaving spawn. I'll need to change the logic a bit to make it work with the correct seconds interval. They will eventually get slayed, but in some cases in double the defined cvar seconds.
|
Re: CT AFK Slayer
So what should we do
|
Re: CT AFK Slayer
I will fix this for you so that it checks people in real-time, not only in 30 second intervals. This will make it work more accurately and how you want
|
Re: CT AFK Slayer
okay bro pls do it today im in trouble
|
Re: CT AFK Slayer
You got it, chief
|
Re: CT AFK Slayer
Try this
PHP Code:
|
Re: CT AFK Slayer
Plugin do the job, but does not kill the players that map is moving to the dead spot.. so basically it does not kill the afk players xd
|
Re: CT AFK Slayer
then i guess no need for checking origin but pev_v_angle
|
Re: CT AFK Slayer
I don't know what that means, Cirovic
|
Re: CT AFK Slayer
Plugin slay players that does not move, but map have on spawn move platform that will kill players that dont play, and plugin dont detect that and wont kill player bcs he moves bcs of map
|
Re: CT AFK Slayer
Edit: This detects AFK by monitoring button presses instead of player location.
PHP Code:
|
Re: CT AFK Slayer
Should max_players be defined?
|
Re: CT AFK Slayer
Done. I use 1.9 which it's defined for already, you should upgrade.
|
Re: CT AFK Slayer
@Bugsy can u make it for any player? its for CT only
|
Re: CT AFK Slayer
Quote:
get_players( iPlayers , iNum , "ae" , "CT" ); with get_players( iPlayers , iNum , "a" ); |
Re: CT AFK Slayer
Quote:
please check need the code correction?
sma
|
Re: CT AFK Slayer
You misspelled moved
You should add a slaysnumber reset to 0 at client_connect() Use charsmax() in get_user_name() instead of 32 |
Re: CT AFK Slayer
Quote:
now?
sma
|
Re: CT AFK Slayer
[AMXX] %s was MOVIED to spectator for AFK.
|
Re: CT AFK Slayer
Quote:
cant find mistake :( |
Re: CT AFK Slayer
it's MOVED not MOVIED
|
Re: CT AFK Slayer
Quote:
tnx a lot {3 |
Re: CT AFK Slayer
Quote:
|
Re: CT AFK Slayer
gj bugsy. now all deathrun servers have a fix, just to find this thread :D
|
Re: CT AFK Slayer
Not thoroughly tested. I am thinking chat may be better over HUD since the AFK HUDs can appear at random as people go AFK.
Cvars:
PHP Code:
|
Re: CT AFK Slayer
Made a few fixes
|
Re: CT AFK Slayer
bugsy thanks a lot can you please go check your msg in inbox from me
|
| All times are GMT -4. The time now is 09:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.