player join the server : WelCome Message

Started by [TkD]MarineForce123, Jun 17, 2017, 03:48 PM

Previous topic - Next topic

You Can Need

Yes
4 (57.1%)
No
2 (28.6%)
Yes
1 (14.3%)

Total Members Voted: 0

[TkD]MarineForce123

and add this Main.nut on your nut

Function onPlayerJoin( player )
{
player.Colour=GetRGBToTeam(player.Team);
local ID = player.ID;
if(Stats[ID]!=null)Stats[ID] = null;
Stats[player.ID] = PlayerStats();

Stats[ player.ID ].Entradas++;

local country = IpToCountry( player.IP );
Message( "[#008000]"+player.Name+" is connecting from [#00FFFF]"+country+"" );
EchoMessage( ICOL_LBLUE + ""+player.Name+" is connecting from [#00FFFF]"+country+"." );

player.Angle=1.57733;
loadspawnwep(player.Name,ID);
NewTimer( "AccInfo", 1000, 1, player.ID );

if ( CheckBanear( player ) == 1 )
{
Message("[#ffffff]Auto-Kick:[#FF0000][ [#ffffff]"+player.Name+" [#FF0000]][#ffffff] Reason:[#FF0000][[#ffffff] Banned From This Server [#FF0000]].");
EchoMessage( ICOL_LBLUE + "Auto-Kick:["+player.Name+"] Reason:[ Banned from this server ]." );


NewTimer( "zKick", 500, 1, player );
}
}


// =========================================== S E R V E R   E V E N T S ==============================================
function onServerStart()
{
}
function onServerStop()
{
}



function onScriptLoad()
{

dofile( "IPtoCountry/IPtoCountry.nut" );
dofile( "scripts/M-Echo.nut" );
ActivateEcho();
secondarydb <- ConnectSQL( "IPtoCountry/IpToCountry.db" );
Registros <- ConnectSQL( "Registros.db" );
Deahtss <- ConnectSQL( "Deahtss.db" );

[TkD]MarineForce123

Make A Folder IPtoCountry

This is file of  IPtoCountry

LINK ]  https://ufile.io/swl7j



MatheuS

if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

Castagna

I extremly suggest you to keep away from scripting. For the good of this forum and their moderators.

Locked.