Author Topic: Problem on joining/leaving  (Read 3254 times)

0 Members and 1 Guest are viewing this topic.

Offline NicoArin

  • Street Thug
  • *
  • Posts: 12
  • http://www.nicoarin.com/
    • View Profile
Problem on joining/leaving
« on: December 19, 2010, 03:07:22 am »
I have got a problem..

Sometimes when you leave my server something happens on echo channel.

[21:54:08] <&Ma-Bot> ** [2] [MFA]S.W.A.TT left the server. (Quit)
[21:54:09] <&Ma-Bot> ** [2] [MFA]S.W.A.TT joined the server.

[22:07:31] <&Ma-Bot> ** [1] [VU_R]NicoArin left the server. (Quit)
[22:07:32] <&Ma-Bot> ** [1] [VU_R]NicoArin joined the server.

It says that you quitted but then it says that you joined again, and you didnt.

That fucks the !players cmd

[22:04:24] <&MosterFox> !players
[22:04:24] <&Ma-Bot> ** Online Players:[ 10/32 ]: [VU_R]NicoArin
  • - 007[apo] [1] - Tommyy(Apo) [2] - Wamo(apo) [3] - bdv 4] - Mauri [5] - [MFA]S.W.A.TT [6] - [ZETZ]cerrajero [7] -


Online players: 10 . If you count them there are 8.

If someone can help me it would be nice

Thanks

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Problem on joining/leaving
« Reply #1 on: December 19, 2010, 02:59:56 pm »
Do you use a public script or your own created? Post also your player.part signal script here. And try to update your DLL, I thought that it already has a vcmp.players functions.

Offline NicoArin

  • Street Thug
  • *
  • Posts: 12
  • http://www.nicoarin.com/
    • View Profile
Re: Problem on joining/leaving
« Reply #2 on: December 19, 2010, 07:48:21 pm »
Im using FBS but it`s almost complety edited
It works fine, sometimes lagg

player.part signal:

on *:SIGNAL:vcmp.player.part:{
  ;$1 = ServerID, $2 = PlayerID, $3 = PlayerName, $4 = ReasonID, $5 = IP
  if ($4 == 1) || ($4 == 0) {
    FBS.echo 3** 4 $+ $chr(91) $+ $2 $+ $chr(93) 3 $+ $3 left the server. $FBS.qreason($4)
  }
  elseif ($4 == 2) {
    FBS.echo 3** 4 $+ $chr(91) $+ $2 $+ $chr(93) 3 $+ $3 left the server. (Kicked)
  } 

  !dec %players

  timer.cashcheck $+ $vcmp.name($1, $2) off
  !remini FBS.warns.ini WARNS $3

  if ($hget(SpawnedHash,$3) != $null) { !hdel -m SpawnedHash $3 }
  if ($hget(PassengerHashTable,$3) > 0) { !hdel -m PassengerHashTable $3 }
  if ($hget(Sprees,$3) >= 1) { !hdel -m Sprees $3 }
  if ($FBS.lin($1, $2) != 0) || ($FBS.lin($1, $2) != $null) { !remini -n vcmp.users.ini LIN $vcmp.name($1, $2) }
  if (%Hunting == $3) {
    vcmp.say $1 ** Hunting is now over for %Hunting $+ , he has left the server!
    unset %Hunting
    unset %Prize
    unset %ActiveHunt
    timer.closehunt off
  }
  !.signal vcmp.part $1-
}

Offline [AoD]NC

  • VC:MP Beta Tester
  • VC:MP Veteran
  • *
  • Posts: 616
  • AoD forever!
    • View Profile
    • KURWA MAĆ
Re: Problem on joining/leaving
« Reply #3 on: December 19, 2010, 11:36:34 pm »
Yep code looks good. My ideas are these:
* redownload the DLL from lu site
* isn't there any vcmp.players function?
* make a copy and restore the original part signal from FBS

Offline NicoArin

  • Street Thug
  • *
  • Posts: 12
  • http://www.nicoarin.com/
    • View Profile
Re: Problem on joining/leaving
« Reply #4 on: December 20, 2010, 04:21:16 am »
* make a copy and restore the original part signal from FBS
i allredy did that
but im going to try redownloading the DLL

Im still waiting for someone else to reply


~Don't double post~
« Last Edit: December 21, 2010, 05:16:29 pm by StriKe »