public OnPlayerConnect(playerid)
{
Update_Graffiti();
new version[4];
GetPlayerVersion(playerid, version, 4);
if(strcmp(version, "0.3e", true) != 0) SendClientMessage(playerid,0xFF0000FF, "Per giocare devi scaricare {FFFFFF}SA-MP 0.3e {FF0000}[Download Sul Forum]");
//MESSAGGIO CARICAMENTO
SendClientMessage(playerid,0x99FF00FF,"________________________________________________");
SendClientMessage(playerid, 0x99FF00FF, "Benvenuto su Magrid: {FFFFFF}Caricamento in corso...");
SendClientMessage(playerid,0x99FF00FF,"________________________________________________");
//CANCELLA OGGETTI
RemoveBuildingForPlayer(playerid, 955, -253.7422, 2597.9531, 62.2422, 10);
RemoveBuildingForPlayer(playerid, 16401, -271.9688, 2662.1953, 61.5859, 10);
RemoveBuildingForPlayer(playerid, 16776, -237.0234, 2662.8359, 62.6094, 10);
RemoveBuildingForPlayer(playerid, 1340, -197.4922, 2659.9141, 62.8203, 10);
RemoveBuildingForPlayer(playerid, 16062, -222.6641, 2663.3047, 66.2344, 10);
RemoveBuildingForPlayer(playerid, 16063, -222.3438, 2663.4531, 71.0156, 10);
RemoveBuildingForPlayer(playerid, 669, -206.6328, 2672.2422, 61.8438, 10);
RemoveBuildingForPlayer(playerid, 672, -243.0313, 2688.3047, 62.4844, 10);
RemoveBuildingForPlayer(playerid, 669, -232.1641, 2685.2734, 61.8438, 10);
RemoveBuildingForPlayer(playerid, 669, -202.5703, 2687.9688, 61.8438, 10);
//TEXTDRAW NEGOZI
TextDrawNegozi[playerid] = CreatePlayerTextDraw(playerid, 548.000000, 271.000000, " ");
PlayerTextDrawAlignment(playerid,TextDrawNegozi[playerid], 2);
PlayerTextDrawBackgroundColor(playerid,TextDrawNegozi[playerid], 255);
PlayerTextDrawFont(playerid,TextDrawNegozi[playerid], 1);
PlayerTextDrawLetterSize(playerid,TextDrawNegozi[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,TextDrawNegozi[playerid], -1);
PlayerTextDrawSetProportional(playerid,TextDrawNegozi[playerid], 1);
PlayerTextDrawSetShadow(playerid,TextDrawNegozi[playerid], 1);
PlayerTextDrawTextSize(playerid,TextDrawNegozi[playerid], 0.000000, 170.000000);
//TEXTDRAW AUTO
TextDrawBenzina[playerid] = CreatePlayerTextDraw(playerid,629.000000, 397.000000, " ");
PlayerTextDrawAlignment(playerid,TextDrawBenzina[playerid], 3);
PlayerTextDrawBackgroundColor(playerid,TextDrawBenzina[playerid], 255);
PlayerTextDrawFont(playerid,TextDrawBenzina[playerid], 1);
PlayerTextDrawLetterSize(playerid,TextDrawBenzina[playerid], 0.500000, 1.000000);
PlayerTextDrawColor(playerid,TextDrawBenzina[playerid], -1);
PlayerTextDrawSetOutline(playerid,TextDrawBenzina[playerid], 0);
PlayerTextDrawSetProportional(playerid,TextDrawBenzina[playerid], 1);
PlayerTextDrawSetShadow(playerid,TextDrawBenzina[playerid], 1);
//LABEL ESTRAZIONE
ArmedText[playerid] = Create3DTextLabel(" ",GIALLO,30.0, 40.0, 5.0, 20.0,0,1);
Attach3DTextLabelToPlayer(ArmedText[playerid], playerid, 0.0, 0.0, 0.7);
if(TimerCollisioni[playerid] != -1)
{
KillTimer(TimerCollisioni[playerid]);
TimerCollisioni[playerid] = -1;
}
PreloadAnimLib(playerid, "SILENCED");
PreloadAnimLib(playerid, "SWEET");
PreloadAnimLib(playerid, "PED");
//ICON RADAR
SetPlayerMapIcon(playerid, 0, -2485.7009,2272.7705,4.9844, 56, VERDE_CHIARO); // Comune
SetPlayerMapIcon(playerid, 1, -1390.0049,2638.5422,55.9844, 30, VERDE_CHIARO); // EQPD
SetPlayerMapIcon(playerid, 2, -2281.9478,2288.4253,4.9739, 9, VERDE_CHIARO); // B.S Navy
SetPlayerMapIcon(playerid, 3, -2479.6165,2317.7695,4.9844, 52, VERDE_CHIARO); // Banca
SetPlayerMapIcon(playerid, 4, -1536.0055,2564.1902,55.8359, 55, VERDE_CHIARO); // Scuola Guida
SetPlayerMapIcon(playerid, 5, -1296.3992,2698.1990,50.0625, 55, VERDE_CHIARO); // AutoConcessionaria
SetPlayerMapIcon(playerid, 6, -1514.1255,2525.7349,55.7704, 22, VERDE_CHIARO); // Ospedale
SetPlayerMapIcon(playerid, 7, -549.0438,2594.0283,53.9348, 30, VERDE_CHIARO); // FBI
SetPlayerMapIcon(playerid, 8, -910.8998,2685.9846,42.3703, 43, VERDE_CHIARO); // Casino Blackfield
SetPlayerMapIcon(playerid, 9, -263.9275,2613.7483,62.8653, 48, VERDE_CHIARO); // Centro Governo
SetPlayerMapIcon(playerid, 10, -211.3770,2676.5698,62.3183, 20, VERDE_CHIARO); // Vigili Fuoco
//================================================== Mostra GangZone
GangZoneShowForPlayer(playerid, Campo1, 0xFFFF0096);
GangZoneShowForPlayer(playerid, AreaPesca1, 1538909898);
GangZoneShowForPlayer(playerid, AreaPesca2, 1538909898);
GangZoneShowForPlayer(playerid, AreaPesca3, 1538909898);
//==========================================================================
if(IsPlayerNPC(playerid)) return 1;
//==============================================================================
Meter1[playerid] = TextDrawCreate(526.000000,408.000000,"I");
Meter2[playerid] = TextDrawCreate(622.000000,421.000000," ");
Meter3[playerid] = TextDrawCreate(529.000000,428.000000," Raggio");
TextDrawUseBox(Meter2[playerid],1);
TextDrawBoxColor(Meter2[playerid],0x000000ff);
TextDrawTextSize(Meter2[playerid],524.000000,171.000000);
TextDrawAlignment(Meter1[playerid],0);
TextDrawAlignment(Meter2[playerid],0);
TextDrawAlignment(Meter3[playerid],0);
TextDrawFont(Meter1[playerid],2);
TextDrawFont(Meter2[playerid],3);
TextDrawFont(Meter3[playerid],2);
TextDrawLetterSize(Meter1[playerid],0.199999,2.400000);
TextDrawLetterSize(Meter2[playerid],2.199999,0.000000);
TextDrawLetterSize(Meter3[playerid],0.300000,1.000000);
TextDrawSetOutline(Meter1[playerid],1);
TextDrawSetOutline(Meter2[playerid],1);
TextDrawSetOutline(Meter3[playerid],1);
TextDrawSetShadow(Meter1[playerid],0);
TextDrawSetShadow(Meter2[playerid],0);
TextDrawSetShadow(Meter3[playerid],0);
TextDrawShowForPlayer(playerid, ServerTextName);
TextDrawShowForPlayer(playerid, UrlServer);
//==========================================================================
JoinCounter = JoinCounter + 1;
dini_IntSet("Other/JoinCounter.cfg", "Connections", JoinCounter);
//==========================================================================
GameTextForPlayer(playerid,"~W~Benvenuto su ~n~~y~Magrid RolePlay 2.0",4500,3);
ResetStats(playerid);
SetPlayerScore(playerid, 0);
SetTimerEx("OnConnectionFinish", 1000, false, "i", playerid);
//=================================================================
return 1;
}