public OnPlayerConnect(playerid)
{
//***SISTEMA AFK***
Afk[playerid]=0;
//***sistema de fire***
Apagandofire[playerid] = 0;
llegarf[playerid] = false;
//IFNO
//ModoMotor[playerid] = false;
//**security**
#if defined AntiJoin 1
new Nombre[MAX_PLAYER_NAME];
new Entradas = 0;
new RegistroIP[20];
new Cuenta = GetTickCount();
new Nick[MAX_PLAYER_NAME];
new Codigo;
new Jugador;
new Menu[1024];
if(DetectarIP(ObtenerIP(playerid)) >= 10) return BanearBots(playerid), 0;
Jugadores = playerid > Jugadores ? playerid : IDMayor(),
BotServidor[playerid] = bool:IsPlayerNPC(playerid),
Advertencias[playerid] = 0;
Muertes[playerid] = 0;
MuerteReciente[playerid] = 0;
GetPlayerIp(playerid, RegistroIP, 19);
GetPlayerName(playerid, Nick, MAX_PLAYER_NAME);
for(Codigo = 0; Codigo < 10; Codigo++)
{
if(strlen(EntrarIP[Codigo]) < 10) continue;
if(strcmp(RegistroIP, EntrarIP[Codigo], true) == 0)
{
if((Cuenta - MenorTiempo) < EntrarCuenta[Codigo])
{
Entradas++;
}
}
}
if (Entradas >= Logueos)
{
Menu[0]='\0';
strcat(Menu, "{FFFFFF} Expulsado por Hack. \n", 1024);
ShowPlayerDialog(playerid, 9046, DIALOG_STYLE_MSGBOX, " {FF0000}Advertencia - FireSecurity: ", Menu, "Aceptar", "Cerrar") ;
GetPlayerName(playerid, Nombre, sizeof(Nombre));
Kick(playerid);
}
for (Codigo = 9; Codigo > 0; Codigo--)
{
Jugador = Codigo - 1;
format(EntrarIP[Codigo], 19, "%s", EntrarIP[Jugador]);
EntrarCuenta[Codigo] = EntrarCuenta[Jugador];
}
format(EntrarIP[0], 19, "%s", RegistroIP);
EntrarCuenta[0] = Cuenta;
#endif
//************
if(IsPlayerNPC(playerid)) return 1;
new playerIP[16];
FPS[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
GetPlayerIp(playerid, playerIP, sizeof(playerIP));
SetPlayerColor(playerid,COLOR_GRAD2);
PlayAudioStreamForPlayer(playerid, "http://k61.offliberty.com/wuCK-oiE3rM.mp3"); // Entrada de servidor..
if (CheckBan(playerIP) == 1)
{
SetPlayerName(playerid, "BannedPlayer");
SendClientMessage(playerid, COLOR_RED, "{00B500}Info:{FFFFFF} Lo sentimos, te encuentras baneado de este servidor - Puedes pedir ser Desbaneado en el Foro: newliferp.cf/");
Kick(playerid);
return 1;
}
TotalConnect++;
ResetHeridas(playerid);
resetPlayerVariables(playerid);
MapsRemoveForPlayer(playerid);
ClearMarriage(playerid);
SyncPlayerTime(playerid);
ShowMenuLogin(playerid);
if(Iter_Count(Player) > MaxPlayersConnected)
{
MaxPlayersConnected = Iter_Count(Player);
gettime(MPHour,MPMinute);
getdate(MPYear,MPMonth,MPDay);
}
if(Info[playerid][pPbizzkey] == 0)
{
Info[playerid][pPbizzkey] = 9999;
}
if(MaxPlayersConnected > 200) MaxPlayersConnected = 200;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
if(!INI_Exist(playername))
{
if(doesAccountExist(playername))
{
ConvertAccount(playerid);
return 1;
}
}
SetTimerEx("SafeLogin", 4000, 0, "d", playerid);
Koson1[playerid] = 0;Kosonrob[playerid] = 1 ;
recojercesped[playerid]=0;
papilla[playerid] = 0;
acobrarcesped[playerid]=0;
autorepara[playerid] = 0;
armaRecibir[playerid]=0;
SetPVarInt(playerid,"PlayerStartDrova",0);
lena1[playerid] = 0;
HaveTaser[playerid] = 0;
Tag_Load(playerid); // Tags.
RemovePlayerAttachedObject(playerid, 0);
SetPVarInt(playerid,"Miner", 0);
SetPVarInt(playerid,"Start", 0);
Vortex[playerid] = 0;
//*******************texto estado*******************
textdrawscount++;
VentaDeArmaCon[playerid][0] = -1;
VentaDeArmaCon[playerid][1] = 0;
Watching[playerid] = 0;
manubrio[playerid] = 0;
refuer[playerid] = 0;
RadioOn[playerid] = 1;
SetTimerEx("TimerROB",1200000,false,"d",playerid);
SetTimerEx("TimerROBJO",1200000,false,"d",playerid );
//***dni por textdraw***
DNI12[playerid] = CreatePlayerTextDraw(playerid,196.000000, 174.195556, "LD_SPAC:white");//skin
PlayerTextDrawBackgroundColor(playerid, DNI12[playerid], 0);
PlayerTextDrawTextSize(playerid, DNI12[playerid], 77.777770, 136.391113);
PlayerTextDrawUseBox(playerid, DNI12[playerid], 1);
PlayerTextDrawBoxColor(playerid, DNI12[playerid], 0x00000000);
PlayerTextDrawColor(playerid, DNI12[playerid], -1);
PlayerTextDrawFont(playerid, DNI12[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
DNI0[playerid] = CreatePlayerTextDraw(playerid, 445.000000, 143.250000, "usebox");
PlayerTextDrawLetterSize(playerid, DNI0[playerid], 0.000000, 20.343055);
PlayerTextDrawTextSize(playerid, DNI0[playerid], 211.500000, 0.000000);
PlayerTextDrawAlignment(playerid, DNI0[playerid], 1);
PlayerTextDrawColor(playerid, DNI0[playerid], 0);
PlayerTextDrawUseBox(playerid, DNI0[playerid], true);
PlayerTextDrawBoxColor(playerid, DNI0[playerid], 102);
PlayerTextDrawSetShadow(playerid, DNI0[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI0[playerid], 0);
PlayerTextDrawFont(playerid, DNI0[playerid], 0);
DNI1[playerid] = CreatePlayerTextDraw(playerid, 213.000000, 142.187500, "ld_drv:ribbw");
PlayerTextDrawLetterSize(playerid, DNI1[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, DNI1[playerid], 106.000000, 34.562500);
PlayerTextDrawAlignment(playerid, DNI1[playerid], 1);
PlayerTextDrawColor(playerid, DNI1[playerid], -1);
PlayerTextDrawSetShadow(playerid, DNI1[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI1[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, DNI1[playerid], -5963521);
PlayerTextDrawFont(playerid, DNI1[playerid], 4);
DNI2[playerid] = CreatePlayerTextDraw(playerid, 386.500000, 136.500000, "DNI");
PlayerTextDrawLetterSize(playerid, DNI2[playerid], 0.742500, 3.126873);
PlayerTextDrawAlignment(playerid, DNI2[playerid], 1);
PlayerTextDrawColor(playerid, DNI2[playerid], 11526143);
PlayerTextDrawSetShadow(playerid, DNI2[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI2[playerid], 51);
PlayerTextDrawFont(playerid, DNI2[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI2[playerid], 1);
DNI3[playerid] = CreatePlayerTextDraw(playerid, 390.500000, 164.937500, "596412235");
PlayerTextDrawLetterSize(playerid, DNI3[playerid], 0.210000, 1.429375);
PlayerTextDrawAlignment(playerid, DNI3[playerid], 1);
PlayerTextDrawColor(playerid, DNI3[playerid], -1);
PlayerTextDrawSetShadow(playerid, DNI3[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI3[playerid], 51);
PlayerTextDrawFont(playerid, DNI3[playerid], 1);
PlayerTextDrawSetProportional(playerid, DNI3[playerid], 1);
DNI4[playerid] = CreatePlayerTextDraw(playerid, 290.000000, 201.687500, "Info: Nombre");
PlayerTextDrawLetterSize(playerid, DNI4[playerid], 0.373999, 2.238747);
PlayerTextDrawAlignment(playerid, DNI4[playerid], 1);
PlayerTextDrawColor(playerid, DNI4[playerid], 11526143);
PlayerTextDrawSetShadow(playerid, DNI4[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI4[playerid], 51);
PlayerTextDrawFont(playerid, DNI4[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI4[playerid], 1);
DNI5[playerid] = CreatePlayerTextDraw(playerid, 290.500000, 225.750000, "Info: Nombre apellido");
PlayerTextDrawLetterSize(playerid, DNI5[playerid], 0.173499, 1.678749);
PlayerTextDrawAlignment(playerid, DNI5[playerid], 1);
PlayerTextDrawColor(playerid, DNI5[playerid], -1);
PlayerTextDrawSetShadow(playerid, DNI5[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI5[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI5[playerid], 51);
PlayerTextDrawFont(playerid, DNI5[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI5[playerid], 1);
DNI6[playerid] = CreatePlayerTextDraw(playerid, 291.000000, 253.312500, "Edad");
PlayerTextDrawLetterSize(playerid, DNI6[playerid], 0.460499, 2.033123);
PlayerTextDrawAlignment(playerid, DNI6[playerid], 1);
PlayerTextDrawColor(playerid, DNI6[playerid], 11526143);
PlayerTextDrawSetShadow(playerid, DNI6[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI6[playerid], 51);
PlayerTextDrawFont(playerid, DNI6[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI6[playerid], 1);
DNI7[playerid] = CreatePlayerTextDraw(playerid, 291.000000, 276.500000, "99");
PlayerTextDrawLetterSize(playerid, DNI7[playerid], 0.403000, 1.258750);
PlayerTextDrawAlignment(playerid, DNI7[playerid], 1);
PlayerTextDrawColor(playerid, DNI7[playerid], -1);
PlayerTextDrawSetShadow(playerid, DNI7[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI7[playerid], 51);
PlayerTextDrawFont(playerid, DNI7[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI7[playerid], 1);
DNI8[playerid] = CreatePlayerTextDraw(playerid, 368.500000, 254.187500, "sexo");
PlayerTextDrawLetterSize(playerid, DNI8[playerid], 0.456999, 1.954373);
PlayerTextDrawAlignment(playerid, DNI8[playerid], 1);
PlayerTextDrawColor(playerid, DNI8[playerid], 11526143);
PlayerTextDrawSetShadow(playerid, DNI8[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI8[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI8[playerid], 51);
PlayerTextDrawFont(playerid, DNI8[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI8[playerid], 1);
DNI9[playerid] = CreatePlayerTextDraw(playerid, 368.500000, 276.937500, "hombre");
PlayerTextDrawLetterSize(playerid, DNI9[playerid], 0.281000, 1.118749);
PlayerTextDrawAlignment(playerid, DNI9[playerid], 1);
PlayerTextDrawColor(playerid, DNI9[playerid], -1);
PlayerTextDrawSetShadow(playerid, DNI9[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI9[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI9[playerid], 51);
PlayerTextDrawFont(playerid, DNI9[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI9[playerid], 1);
DNI10[playerid] = CreatePlayerTextDraw(playerid, 290.500000, 294.000000, "Nacionalidad");
PlayerTextDrawLetterSize(playerid, DNI10[playerid], 0.419500, 1.582500);
PlayerTextDrawAlignment(playerid, DNI10[playerid], 1);
PlayerTextDrawColor(playerid, DNI10[playerid], 11526143);
PlayerTextDrawSetShadow(playerid, DNI10[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI10[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI10[playerid], 51);
PlayerTextDrawFont(playerid, DNI10[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI10[playerid], 1);
DNI11[playerid] = CreatePlayerTextDraw(playerid, 309.000000, 312.812500, "San Fierro");
PlayerTextDrawLetterSize(playerid, DNI11[playerid], 0.287500, 1.250000);
PlayerTextDrawAlignment(playerid, DNI11[playerid], 1);
PlayerTextDrawColor(playerid, DNI11[playerid], -1);
PlayerTextDrawSetShadow(playerid, DNI11[playerid], 0);
PlayerTextDrawSetOutline(playerid, DNI11[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, DNI11[playerid], 51);
PlayerTextDrawFont(playerid, DNI11[playerid], 2);
PlayerTextDrawSetProportional(playerid, DNI11[playerid], 1);
//**********************
//***licencia por textdraw***
//textdraw licencias
LICENCIA0[playerid] = CreatePlayerTextDraw(playerid,423.333221, 146.851150, "usebox");
PlayerTextDrawLetterSize(playerid, LICENCIA0[playerid], 0.000000, 17.713949);
PlayerTextDrawTextSize(playerid, LICENCIA0[playerid], 197.111145, 0.000000);
PlayerTextDrawAlignment(playerid, LICENCIA0[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA0[playerid], 0);
PlayerTextDrawUseBox(playerid, LICENCIA0[playerid], true);
PlayerTextDrawBoxColor(playerid, LICENCIA0[playerid], 102);
PlayerTextDrawSetShadow(playerid, LICENCIA0[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA0[playerid], 0);
PlayerTextDrawFont(playerid, LICENCIA0[playerid], 0);
LICENCIA5[playerid] = CreatePlayerTextDraw(playerid,290.222015, 229.475631, "Info: Nombre");
PlayerTextDrawLetterSize(playerid, LICENCIA5[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, LICENCIA5[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA5[playerid], 869072810);
PlayerTextDrawSetShadow(playerid, LICENCIA5[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA5[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, LICENCIA5[playerid], 51);
PlayerTextDrawFont(playerid, LICENCIA5[playerid], 2);
PlayerTextDrawSetProportional(playerid, LICENCIA5[playerid], 1);
LICENCIA6[playerid] = CreatePlayerTextDraw(playerid,291.110992, 260.337951, "edad");
PlayerTextDrawLetterSize(playerid, LICENCIA6[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, LICENCIA6[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA6[playerid], 869072810);
PlayerTextDrawSetShadow(playerid, LICENCIA6[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, LICENCIA6[playerid], 51);
PlayerTextDrawFont(playerid, LICENCIA6[playerid], 2);
PlayerTextDrawSetProportional(playerid, LICENCIA6[playerid], 1);
LICENCIA7[playerid] = CreatePlayerTextDraw(playerid,291.999847, 281.742340, "sexo");
PlayerTextDrawLetterSize(playerid, LICENCIA7[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, LICENCIA7[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA7[playerid], 869072810);
PlayerTextDrawSetShadow(playerid, LICENCIA7[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, LICENCIA7[playerid], 51);
PlayerTextDrawFont(playerid, LICENCIA7[playerid], 2);
PlayerTextDrawSetProportional(playerid, LICENCIA7[playerid], 1);
LICENCIA1[playerid] = CreatePlayerTextDraw(playerid,204.888900, 155.306671, "_"); //SKIN
PlayerTextDrawLetterSize(playerid, LICENCIA1[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, LICENCIA1[playerid], 80.888839, 144.355529);
PlayerTextDrawBackgroundColor(playerid, LICENCIA1[playerid], 0);
PlayerTextDrawUseBox(playerid, LICENCIA1[playerid], 1);
PlayerTextDrawBoxColor(playerid, LICENCIA1[playerid], 0x00000000);
PlayerTextDrawColor(playerid, LICENCIA1[playerid], -1);
PlayerTextDrawFont(playerid, LICENCIA1[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
LICENCIA2[playerid] = CreatePlayerTextDraw(playerid,291.111358, 246.897644, "Info: Nombre_apellido");
PlayerTextDrawLetterSize(playerid, LICENCIA2[playerid], 0.227332, 1.151991);
PlayerTextDrawAlignment(playerid, LICENCIA2[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA2[playerid], -1);
PlayerTextDrawSetShadow(playerid, LICENCIA2[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, LICENCIA2[playerid], 51);
PlayerTextDrawFont(playerid, LICENCIA2[playerid], 2);
PlayerTextDrawSetProportional(playerid, LICENCIA2[playerid], 1);
LICENCIA3[playerid] = CreatePlayerTextDraw(playerid,334.666656, 149.333389, "_");//ICONO LICENCIA
PlayerTextDrawLetterSize(playerid, LICENCIA3[playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, LICENCIA3[playerid], 82.222198, 80.640014);
PlayerTextDrawTextSize(playerid, LICENCIA3[playerid], 82.222198, 80.640014);
PlayerTextDrawAlignment(playerid, LICENCIA3[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA3[playerid], -1);
PlayerTextDrawSetShadow(playerid, LICENCIA3[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA3[playerid], 0);
PlayerTextDrawFont(playerid, LICENCIA3[playerid], 4);
LICENCIA4[playerid] = CreatePlayerTextDraw(playerid,352.000061, 262.826721, "99");
PlayerTextDrawLetterSize(playerid, LICENCIA4[playerid], 0.227332, 1.15199 ;
PlayerTextDrawAlignment(playerid, LICENCIA4[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA4[playerid], -1);
PlayerTextDrawSetShadow(playerid, LICENCIA4[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, LICENCIA4[playerid], 51);
PlayerTextDrawFont(playerid, LICENCIA4[playerid], 2);
PlayerTextDrawSetProportional(playerid, LICENCIA4[playerid], 1);
LICENCIA8[playerid] = CreatePlayerTextDraw(playerid,351.555389, 284.231170, "hombre");
PlayerTextDrawLetterSize(playerid, LICENCIA8[playerid], 0.227332, 1.15199 ;
PlayerTextDrawAlignment(playerid, LICENCIA8[playerid], 1);
PlayerTextDrawColor(playerid, LICENCIA8[playerid], -1);
PlayerTextDrawSetShadow(playerid, LICENCIA8[playerid], 0);
PlayerTextDrawSetOutline(playerid, LICENCIA8[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, LICENCIA8[playerid], 51);
PlayerTextDrawFont(playerid, LICENCIA8[playerid], 2);
PlayerTextDrawSetProportional(playerid, LICENCIA8[playerid], 1);
//textdraw dni
DNI12[playerid] = CreatePlayerTextDraw(playerid,196.000000, 174.195556, "LD_SPAC:white");//skin
PlayerTextDrawBackgroundColor(playerid, DNI12[playerid], 0);
PlayerTextDrawTextSize(playerid, DNI12[playerid], 77.777770, 136.391113);
PlayerTextDrawUseBox(playerid, DNI12[playerid], 1);
PlayerTextDrawBoxColor(playerid, DNI12[playerid], 0x00000000);
PlayerTextDrawColor(playerid, DNI12[playerid], -1);
PlayerTextDrawFont(playerid, DNI12[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
//**********************
return 1;
}
|