Hello, When i join my own RP server it gives me Warnings and Server Closed Connection after i register and login.
Код:
public OnPlayerConnect(playerid)
{
//Hungry[playerid] = 0;
new plname[MAX_PLAYER_NAME];
new sstring[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
if(strfind(pName, "_", true) == -1)
{
format(sstring, 128, "You do not have an proper roleplay name! Example: Mike_Johnson.");
SendClientMessage(playerid,ROJO, sstring);
Kick(playerid);
return 1;
}
new string[128];
IntentarTimmer[playerid] = 0; Registrando[playerid] = 0; Orejon[playerid] = 0; VHabGolpeo[playerid] = 0; AFK[playerid] = 0; AdminDuty[playerid] = 0;
ResetearArmas(playerid); JugadorInfo[playerid][jSpawn] = 0; JugadorInfo[playerid][jInt] = 0; HelpMessages[playerid] = 0; JugadorInfo[playerid][jRopa] = 0; JugadorInfo[playerid][jTyrant] = 0;
IntentoDeLogear[playerid] = 0; TieneBOMBA[playerid] = 0; JugadorInfo[playerid][jPuntosR] = 0; PlayersChannel[playerid] = 0; strmid(JugadorInfo[playerid][jPorSalio], "Unknown", 0, strlen("Unknown"), 255);
CuentaExistente[playerid] = 0; MascaraPuesta[playerid] = 0; Desmayado[playerid] = 0; gPlayerUsingLoopingAnim[playerid] = 0; JugadorInfo[playerid][jBengala] = 0; JugadorInfo[playerid][jVendas] = 0;
JugadorLogeado[playerid] = 0; JugadorInfo[playerid][jAdmin] = 0; JugadorInfo[playerid][jMiembro] = 0; JugadorInfo[playerid][jBaneado] = 0; JugadorInfo[playerid][jLider] = 0; JugadorInfo[playerid][jWalkie] = 1; JugadorInfo[playerid][jSintonia] = 0;
JugadorInfo[playerid][jArma] = 0; JugadorInfo[playerid][jArma2] = 0; JugadorInfo[playerid][jArma3] = 0; JugadorInfo[playerid][jArmadura] = 0; JugadorInfo[playerid][jFosforos] = 0;
JugadorInfo[playerid][jMunicion] = 0; JugadorInfo[playerid][jMunicion3] = 0; JugadorInfo[playerid][jMunicion2] = 0; JugadorInfo[playerid][jBotella] = 0;
JugadorInfo[playerid][jTazer] = 0; JugadorInfo[playerid][jKitMed] = 0; JugadorInfo[playerid][jEdad] = 0; JustWhisp[playerid] = 0; JugadorInfo[playerid][jEncendedor] = 0;
JugadorInfo[playerid][jInfectado] = 0; JugadorInfo[playerid][jPunteria] = 0; JugadorInfo[playerid][jMecanica] = 0; JugadorInfo[playerid][jSuerte] = 0; JugadorInfo[playerid][jZombiesPT] = 0; JugadorInfo[playerid][jSexo] = 0;
JugadorInfo[playerid][jTiempoDeCarcel] = 0; JugadorInfo[playerid][jEncarcelado] = 0; JugadorInfo[playerid][jZombie] = 0; JugadorInfo[playerid][jTutorial] = 0; JugadorInfo[playerid][jProfesion] = 0; JustOOC[playerid] = 0;
GetPlayerName(playerid, plname, sizeof(plname)); JugadorInfo[playerid][jFosforos] = 0; TieneBOMBA[playerid] = 0; LPuestos[playerid] = 0; GPuesto[playerid] = 0; PMBlockeado[playerid] = 0; TRAJE[playerid] = 0;
JustReported[playerid] = 0; Informacion[playerid][Manejando] = 0; /*Audifono[playerid] = 0;*/ PlayerNeedsHelp[playerid] = 0; JugadorListo[playerid] = 0; ConTexto[playerid] = 0; SinLeven[playerid] = 0;
format(string, sizeof(string), "TWD/accounts/%s.ini", plname);
SetPlayerVirtualWorld(playerid,0);
Timer[playerid] = SetTimerEx("Check", 100, 1, "i", playerid);
if(IsPlayerNPC(playerid))
{
gTeam[playerid] = EZOMBIE;
SpawnPlayer(playerid);
return 1;
}
if(fexist(string))
{
CuentaExistente[playerid] = 1;
format(string, sizeof(string), "Welcome back to The Walking Dead Roleplay!", Version);
SendClientMessage(playerid, CELESTE, string); }
else
{
CuentaExistente[playerid] = 0;
format(string, sizeof(string), "Welcome to The Walking Dead Roleplay!", Version);
SendClientMessage(playerid, CELESTE, string);
}
PlayerCount ++;
return 1;
}
You spawn but no login screen and if you type anything you get Server Closed Connection.
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetSpawnInfo(playerid, 0, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
return 1;
}