Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case LOAD_BASIC_DATA: // AutoLogueo
- {
- if (SQL_NumResults(Query))
- {
- //SQL_ReadResult(Query, 0, g_Account[id], charsmax(g_Account[]))
- //SQL_ReadResult(Query, 1, user_password[id], charsmax(user_password[]))
- // Check all players ID's
- for (new i = 1; i <= g_maxplayers; i++)
- {
- // Same user ID
- if (equal(g_Account[i][g_CharacterInt[i]], g_Personaje[id][g_CharacterInt[id]]) && g_status[i] >= ONLINE && i != id)
- {
- server_cmd("kick #%d ^"La cuenta está conectada actualmente.^"", get_user_userid(id))
- break;
- }
- }
- Load(id, 0)
- }
- else show_first_enter_menu(id)
- }
- case LOAD_FULL_DATA: // Logueo Manual
- {
- if (SQL_NumResults(Query))
- {
- SQL_ReadResult(Query, 1, g_Account[id], charsmax(g_Account[]))
- SQL_ReadResult(Query, 2, user_password[id], charsmax(user_password[]))
- SQL_ReadResult(Query, 3, g_Personaje[id][0], 31)
- SQL_ReadResult(Query, 4, g_Personaje[id][1], 31)
- SQL_ReadResult(Query, 5, g_Personaje[id][2], 31)
- SQL_ReadResult(Query, 6, g_Personaje[id][3], 31)
- SQL_ReadResult(Query, 7, g_Personaje[id][4], 31)
- SQL_ReadResult(Query, 8, g_register_date[id], charsmax(g_register_date[]))
- SQL_ReadResult(Query, 9, g_last_loggin[id], charsmax(g_last_loggin[]))
- for (new i = 1; i <= g_maxplayers; i++)
- {
- if (g_status[i] != ONLINE) continue;
- if (i != id && equal(g_Account[id], g_Account[i]))
- {
- server_cmd("kick #%d ^"Esta cuenta esta conectada.^"", get_user_userid(id));
- break;
- }
- }
- g_status[id] = ONLINE
- show_menu_character(id)
- }
- else {
- show_first_enter_menu(id)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement