AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   autojoin problem (https://forums.alliedmods.net/showthread.php?t=120353)

joropito 03-03-2010 21:21

autojoin problem
 
I'm working on a plugin that needs autojoin feature.

I made it using VGUIMsg/ShowMenu message to start a task and in that task:

block msg
engclient_cmd (jointeam 1 + joinclass 5)
unblock msg (old state)

The problem is sometimes the player couldn't make joinclass (with a hud msg saying "you cannot do that now" or something like that).

Any clues?

Thanks in advance.

ConnorMcLeod 03-04-2010 00:55

Re: autojoin problem
 
You tried to delay jointeam and joinclass by something like a player latency ?

joropito 03-04-2010 07:35

Re: autojoin problem
 
I've used a delay of 0.1
You mean it should be dynamic depending on latency?
Maybe a delay of 0.5 o directly 1.0 should work for every situation?

shuttle_wave 03-05-2010 00:58

Re: autojoin problem
 
exolents team join manager?

joropito 03-05-2010 07:56

Re: autojoin problem
 
Quote:

Originally Posted by shuttle_wave (Post 1107933)
exolents team join manager?

I'm not asking for a plugin, I'm asking for a method.
I've checked almost every autojoin/teambalancer plugin.

Connor's solutions about delaying join works fine. I'm working on it.


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

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