26.11.2015, 20:43
Buenas, presento un problema que cuando se termina de registrar un jugador te manda para BlueBerry y te pone el skin de CJ en vez de hacer spawn normalmente en la posiciуn colocada, notй que si te manda a la posiciуn pero a los pocos segundos te manda para BlueBerry y te pone el skin de CJ.. asн es cuando te terminas de registrar:
Код:
if(dialogid == SELECCIONARSEXO)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSkin(playerid,250);
Informacion[playerid][ISexo] = 1;
}
else if(listitem == 1)
{
SetPlayerSkin(playerid,11);
Informacion[playerid][ISexo] = 2;
}
}
new sql_query[256];
GetPlayerName(playerid, Informacion[playerid][INombre], MAX_PLAYER_NAME);
format(sql_query, sizeof(sql_query), "INSERT INTO `usuarios` (`Nombre`, `Contraseсa`, `PosX`, `PosY`, `PosZ`, `Vida`, `Dinero`, `Banco`, `Nivel`) VALUES ('%s','%s','1714.7008','-1898.6792','13.5666','100','6000','10000', '1')", Informacion[playerid][INombre], Informacion[playerid][IContra]);
mysql_query(1, sql_query);
format(sql_query, sizeof(sql_query), "SELECT `ID` FROM `usuarios` WHERE `Nombre` = '%s' LIMIT 1;", NombreSinGuion(playerid));
mysql_query(1, sql_query);
mysql_store_result();
Informacion[playerid][ISQLID] = cache_get_field_content_int(0, "ID");
mysql_free_result();
CargarDatos(playerid);
TextDrawHideForPlayer(playerid, Textdraw[0]);
TextDrawHideForPlayer(playerid, Textdraw[1]);
TextDrawHideForPlayer(playerid, Textdraw[2]);
TextDrawHideForPlayer(playerid, Textdraw[3]);
SetCameraBehindPlayer(playerid);
LimpiarChat(playerid);
JugadorLogueado[playerid] = 1;
SetSpawnInfo(playerid, 0, Informacion[playerid][ISkin], Informacion[playerid][IPosX], Informacion[playerid][IPosY], Informacion[playerid][IPosZ], 0, 0, 0, 0, 0, 0, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerScore(playerid, 1);
SetPlayerScore(playerid,Informacion[playerid][INivel]);
ResetPlayerWeapons(playerid);
unarrestotimer[playerid] = SetTimerEx("SetPlayerUnPreso",1000,true,"i",playerid);
Timer_Update[playerid] = SetTimerEx("player_update",1400,true,"i",playerid);
Speed_Hack[playerid] = SetTimerEx("AntiSpeedHack",1000,true,"i",playerid);
Tiempo_Consumir_Medicamentos[playerid] = 40;
Esperar_Consumir_Medicamentos[playerid] = 1;
Bajar_Variable1[playerid] = SetTimerEx("Sacar_Nocmd",1000,true,"i",playerid);
unjailtimer[playerid] = SetTimerEx("SetPlayerUnjail", 1000, true,"i",playerid);
SpawnPlayer(playerid);
GuardarInfo(playerid);
return 1;
}


