Raised This Month: $ Target: $400
 0% 

Advanced AFK Manager v 1.5a *UPDATED*


Post New Thread Reply   
 
Thread Tools Display Modes
sasdad
Junior Member
Join Date: Jul 2006
Old 07-06-2006 , 12:00   Re: Advanced AFK Manager v 1.0
Reply With Quote #21

Another upgrade.


Change this:
get_user_origin(id, UserOldOrigin[id]);

to this:
get_user_origin(id, UserOldOrigin[id], 3);

AND

this:
get_user_origin(i, UserNewOrigin);
to this:
get_user_origin(i, UserNewOrigin, 3);

It will takes you back to online if you move mouse.
So you don't have to move with keys.
sasdad is offline
MercenaryDan
Junior Member
Join Date: May 2006
Location: Houston, TX
Old 07-08-2006 , 19:37   Re: Advanced AFK Manager v 1.0
Reply With Quote #22

Thx for the tips guys, I added your suggestions, and i also added a feature where if you are afk and your the last one on your team you are auto-slayed
MercenaryDan is offline
sasdad
Junior Member
Join Date: Jul 2006
Old 07-09-2006 , 02:52   Re: Advanced AFK Manager v 1.0
Reply With Quote #23

Quote:
Originally Posted by MercenaryDan
Thx for the tips guys, I added your suggestions, and i also added a feature where if you are afk and your the last one on your team you are auto-slayed
Great job, but you made it wrong.


change this:
if (UserNewOrigin[0] == UserOldOrigin[i][0] || UserNewOrigin[1] == UserOldOrigin[i][1] || UserNewOrigin[2] == UserOldOrigin[i][2])

to this:
if (UserNewOrigin[0] == UserOldOrigin[i][0] && UserNewOrigin[1] == UserOldOrigin[i][1] && UserNewOrigin[2] == UserOldOrigin[i][2])

There are 2 similar lines. So take care.

And you also don't use CTPlayersAlive variable. You use TPlayersAlive twice instead. So please correct it for others.

Last edited by sasdad; 07-09-2006 at 02:57.
sasdad is offline
MercenaryDan
Junior Member
Join Date: May 2006
Location: Houston, TX
Old 07-09-2006 , 14:05   Re: Advanced AFK Manager v 1.0
Reply With Quote #24

Ok i fixed the error with 2 TPlayersAlive (hah copy and paste) but you said above that i should use ors instead of ands
__________________
My Plugins
G1\/3 |\/|3 |<4|2|\/|4!!!!!!!!!
MercenaryDan is offline
sasdad
Junior Member
Join Date: Jul 2006
Old 07-09-2006 , 16:46   Re: Advanced AFK Manager v 1.0
Reply With Quote #25

Quote:
Originally Posted by MercenaryDan
Ok i fixed the error with 2 TPlayersAlive (hah copy and paste) but you said above that i should use ors instead of ands
Yes I said, but not it 2 expresions but only in the second expresion.
Just thought about expression. Fist must be with ands because the should be no move and the second expression should react on any move. In x, y or z axis. But you had it to react on all move in x and y and z axis together.
sasdad is offline
MercenaryDan
Junior Member
Join Date: May 2006
Location: Houston, TX
Old 07-09-2006 , 17:31   Re: Advanced AFK Manager v 1.0
Reply With Quote #26

haha sas can you just edit it urself and upload it here
__________________
My Plugins
G1\/3 |\/|3 |<4|2|\/|4!!!!!!!!!
MercenaryDan is offline
sasdad
Junior Member
Join Date: Jul 2006
Old 07-09-2006 , 17:42   Re: Advanced AFK Manager v 1.0
Reply With Quote #27

Sure, but not now. Maybe tomorrow.
sasdad is offline
sasdad
Junior Member
Join Date: Jul 2006
Old 07-10-2006 , 07:49   Re: Advanced AFK Manager v 1.0
Reply With Quote #28

Here is new version,

but I don§t understand this part

Code:
 for (new e = 1; e <= 33; e++)
 {
  new TPlayersAlive, CTPlayersAlive;
  if (CTIndex[e] == 1) {
   CTPlayersAlive+= CTIndex[e];
  }
  if (TIndex[e] == 1) {
   TPlayersAlive+= TIndex[e];
  }  
  if (e == 17) {
   if (CTPlayersAlive == 1) {
    new UserName[35];
    get_user_name(e, UserName, 34);
    client_print(0, print_chat, "%s was killed for being afk and the last person alive on his team.", UserName);
    user_kill(e, 1);
    cs_set_user_deaths(e, (cs_get_user_deaths(e) - 1));
   }
   if (TPlayersAlive == 1) {
    new UserName[35];
    get_user_name(e, UserName, 34);
    client_print(0, print_chat, "%s was killed for being afk and the last person alive on his team.", UserName);
    user_kill(e, 1);
    cs_set_user_deaths(e, (cs_get_user_deaths(e) - 1));
   }
I think that last player in team slaying will not work correctly or I don't really understand that part. I don't have currently time to look on you code, but later I will look on it.
Attached Files
File Type: sma Get Plugin or Get Source (aafkm2.1.sma - 861 views - 6.8 KB)
sasdad is offline
neogeo
Senior Member
Join Date: Jul 2005
Old 07-10-2006 , 08:16   Re: Advanced AFK Manager v 1.0
Reply With Quote #29

hi
can you do bomb drop when someone is afk ?
thanks
neogeo is offline
sasdad
Junior Member
Join Date: Jul 2006
Old 07-10-2006 , 11:36   Re: Advanced AFK Manager v 1.0
Reply With Quote #30

Maybe this plugin will help you.

http://forums.alliedmods.net/showthread.php?p=209449

I did not test it, but I hope it will work.
sasdad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode