• Welcome to Vice City Multiplayer.
 

Problem on joining/leaving

Started by NicoArin, December 19, 2010, 12:07:22 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

NicoArin

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

[AoD]NC

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.

NicoArin

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-
}

[AoD]NC

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

NicoArin

#4
Quote from: [AoD]NC on December 19, 2010, 08:36:34 PM
* 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~