Connect ID ?

Started by KrOoB_, Jun 19, 2018, 02:18 AM

Previous topic - Next topic

KrOoB_

function onPlayerPart( player, reason )
{
    switch (reason)
    {
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]quit.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Quito El Juego.");
            break;
        }
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]Disconnected");
         EchoMessage( ICOL_GREEN  + "[PART] "+player.Name+" Desconecto El juego");
            break;
        }
        case 0:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]timeout.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Internet Fuera.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]Kicked for banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Kickeado Por Prohibicion.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Kicked.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Kickeado.");
            break;
        }
      case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Prohibido.");
            break;
        }
      case 3:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Error Crash.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Error del VC.");
            break;
        }
    }
}

I CANT FIND CONNECT CASE ID ?

D4rkR420R

onPlayerJoin function calls whenever a player connects to the server.

KrOoB_

Quote from: KrooB on Jun 19, 2018, 02:18 AMfunction onPlayerPart( player, reason )
{
    switch (reason)
    {
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]quit.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Quito El Juego.");
            break;
        }
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]Disconnected");
         EchoMessage( ICOL_GREEN  + "[PART] "+player.Name+" Desconecto El juego");
            break;
        }
        case 0:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]timeout.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Internet Fuera.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]Kicked for banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Kickeado Por Prohibicion.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Kicked.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Kickeado.");
            break;
        }
      case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Prohibido.");
            break;
        }
      case 3:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Error Crash.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Error del VC.");
            break;
        }
    }
}

I CANT FIND CONNECT CASE ID ?
they are changing >> KrOOb connected << 
how can i do it onPlayerJoin

Mahmoud Tornado

#3
Quote from: KrooB on Jun 19, 2018, 02:18 AMfunction onPlayerPart( player, reason )
{
    switch (reason)
    {
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]quit.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Quito El Juego.");
            break;
        }
        case 1:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#ffffff]Disconnected");
         EchoMessage( ICOL_GREEN  + "[PART] "+player.Name+" Desconecto El juego");
            break;
        }
        case 0:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]timeout.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Internet Fuera.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+ " [#ffffff]Kicked for banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+ " Kickeado Por Prohibicion.");
            break;
        }
        case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Kicked.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Kickeado.");
            break;
        }
      case 2:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]banned.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Prohibido.");
            break;
        }
      case 3:
        {
            Message("[#FF77AF][PART] [#ac8000] "+player.Name+" [#FFFFFF]Error Crash.");
         EchoMessage( ICOL_GREEN  + " [PART] "+player.Name+" Error del VC.");
            break;
        }
    }
}

I CANT FIND CONNECT CASE ID ?
You will never find connect onPlayerPart, on player part means on player leaves the server, you can't deal with it on connect.
When player connect like what kurumi said.
Quote from: KuRiMi on Jun 19, 2018, 03:13 AMonPlayerJoin function calls whenever a player connects to the server.
Easily add msg onPlayerJoin, wanna know connect ID use this,
"+player.ID+"
Use it in your msg change it to whatever you want, like this.
"+player.IP+"     "+player.FPS+"    "+player.Ping+"
Finally make add it in msg like this.
            Message("[#FF77AF][JOIN] [#ac8000]"+player.Name+ " [#ffffff]Has joined the server, ID: "+player.ID+".");

KrOoB_

Okay bro thanks O:-) SOLVED