Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case LOAD_BASIC_DATA:
- {
- if (SQL_NumResults(Query))
- {
- static szUserInfo[32]
- SQL_ReadResult(Query, 0, user_password[id], charsmax(user_password[]))
- get_user_info(id, "_pw", szUserInfo, charsmax(szUserInfo))
- // Check all players ID's
- for (new i = 1; i <= g_maxplayers; i++)
- {
- // Same user ID
- if (equal(g_playername[i], g_playername[id]) && g_status[i] >= ONLINE && i != id)
- {
- {
- server_cmd("kick #%d ^"Esta cuenta esta conectada.^"", get_user_userid(id));
- break;
- }
- }
- if(!(equal(szUserInfo, user_password[id])) && strlen(user_password[id]) > 1) {
- switch(get_pcvar_num(cvar_account_typecheck)) {
- case 0: server_cmd("kick #%d ^"Account Password Protected^nUse SETINFO _PW YOURPW^"", get_user_userid(id))
- case 1: {
- /*client_cmd(id, "messagemode ^"you_password^"")
- set_hudmessage(0, 255, 255, 0.03, 0.05, 0, 0.1, 4.0, 0.01, 0.01, -1)
- ShowSyncHudMsg(id, g_MsgSync5, "Ingresa Contraseña de Cuenta^nPulse ESC para salir")*/
- show_first_enter_menu(id)
- }
- }
- return PLUGIN_HANDLED
- }
- else {
- if(equal(szUserInfo, user_password[id]) && strlen(user_password[id]) > 1) {
- Load(id, 0)
- }
- else {
- if(strlen(user_password[id]) < 1) {
- show_first_enter_menu(id)
- }
- }
- }
- }
- else
- {
- g_TypeLogging[id] = 1
- g_status[id] = OFFLINE
- show_first_enter_menu(id)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement