Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: [TkD]MarineForce123 on Jun 17, 2017, 03:48 PM

Poll
Question: You Can Need
Option 1: Yes votes: 4
Option 2: No votes: 2
Option 3: Yes votes: 1
Title: player join the server : WelCome Message
Post by: [TkD]MarineForce123 on Jun 17, 2017, 03:48 PM
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" );
Title: Re: player join the server : WelCome Message
Post by: [TkD]MarineForce123 on Jun 17, 2017, 03:50 PM
Make A Folder IPtoCountry

This is file of  IPtoCountry

LINK ]  https://ufile.io/swl7j
Title: Re: player join the server : WelCome Message
Post by: KAKAN on Jun 17, 2017, 04:51 PM
I should laugh: http://forum.vc-mp.org/?topic=208.0
or cry: http://forum.vc-mp.org/?topic=1478.0
Title: Re: player join the server : WelCome Message
Post by: Eva on Jun 17, 2017, 10:17 PM
Quote from: [TkD]MarineForce123 on Jun 17, 2017, 03:48 PMadd this Main.nut on your nut
Roflmfao!!!
Title: Re: player join the server : WelCome Message
Post by: MatheuS on Jun 18, 2017, 01:13 AM
he's myth.
Title: Re: player join the server : WelCome Message
Post by: Castagna on Jun 18, 2017, 03:45 AM
I extremly suggest you to keep away from scripting. For the good of this forum and their moderators.

Locked.