Liberty Unleashed

Scripting => Script Help => Topic started by: CANYON on August 24, 2012, 07:57:17 am

Title: Double message connect/disconnect , I do not know where the second.
Post by: CANYON on August 24, 2012, 07:57:17 am
Double message connect/disconnect , I do not know where the second, it isn't present in a script. What to do?
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: Thijn on August 24, 2012, 11:57:20 pm
Sure its somewhere in your script..
Please post relevant code from connect and disconnect events.
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: CANYON on August 25, 2012, 12:20:40 am
Sure its somewhere in your script..
Please post relevant code from connect and disconnect events.

Code: [Select]
function onPlayerJoin( pPlayer )
{
     Message( pPlayer.Name + " has joined.", Colour( 139, 255, 178 ) );

     return 0;
}

Code: [Select]
function onPlayerPart( pPlayer, reason )
{
switch(reason)
{
      case PARTREASON_DISCONNECTED:
              Message( pPlayer.Name + " has disconnected (Reason: Quit)", Colour( 255, 124, 124 ) );
              break;

      case PARTREASON_BANNED:
              Message( pPlayer.Name + " has disconnected (Reason: Ban)", Colour( 255, 124, 124 ) );
              break;

      case PARTREASON_KICKED:
              Message( pPlayer.Name + " has disconnected (Reason: Kick)", Colour( 255, 124, 124 ) );
              break;

      default:
              Message( pPlayer.Name + " has disconnected (Reason: Crash)", Colour( 255, 124, 124 ) );
              break;
}
    return 0;
}
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: Rocky on August 25, 2012, 04:39:35 am
Actually same thing happens when player spawns. It shouts more than 10 times that player spawned, i think its a bug.  ???
 
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: mimomohamed on August 25, 2012, 11:44:56 am
That problem was with me but in the Free view Script ;
I have fixed it by opening the content.xml
u may find that u have put the script 2 times :o that the problem i think ::)
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: Rocky on August 25, 2012, 02:06:23 pm
Not for me.
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: CANYON on August 26, 2012, 03:37:56 am
I not absolutely understand that you mean. :)

(http://i004.radikal.ru/1208/ea/08fc0a2e1a2c.jpg)

yellow messages not my

red and green my
Title: Re: Double message connect/disconnect , I do not know where the second.
Post by: Rocky on August 26, 2012, 04:08:22 am
I not absolutely understand that you mean. :)

([url]http://i004.radikal.ru/1208/ea/08fc0a2e1a2c.jpg[/url])

yellow messages not my

red and green my


Not really, ex:

When i keep pressing spawn button (ctrl) for 2-3 seconds in console it prints "Rocky spawned" x 10 times, sometimes more.