Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: NicoArin on December 19, 2010, 01:07:22 AM

Title: Problem on joining/leaving
Post by: NicoArin on December 19, 2010, 01: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
Title: Re: Problem on joining/leaving
Post by: [AoD]NC on December 19, 2010, 12: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.
Title: Re: Problem on joining/leaving
Post by: NicoArin on December 19, 2010, 05: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-
}
Title: Re: Problem on joining/leaving
Post by: [AoD]NC on December 19, 2010, 09: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
Title: Re: Problem on joining/leaving
Post by: NicoArin on December 20, 2010, 02:21:16 AM
Quote from: [AoD]NC on December 19, 2010, 09: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~