Jump to content

Abytzu

Membru
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Sex
    Masculin
  • In-game Name
    Abytzu
  • Level of knowledge
    Începător

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Abytzu's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Salut, am tot incercat sa fac comanda /setadminoff pentru gamemode-ul Burned. Pana aici totul bine nu imi da nici o eroare in gm insa cand tastez comanda spune ca a setat admin levelul, dar ramane neschimbat si scrie ca e comanda necunoscuta. Pe langa asta primesc asta in consola: [debug] Run time error 4: "Array index out of bounds" [debug] Accessing element at index 65535 past array upper bound 999 [debug] AMX backtrace: [debug] #0 0016f10c in public cmd_setadminoff (0, 175288004) from wa-rpg.amx [debug] #1 native CallLocalFunction () from samp-server.exe [debug] #2 00012d84 in public OnPlayerCommandText (0, 175287912) from wa-rpg.amx Aici este ce am incercat eu sa fac: CMD:setadminoff(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, -1, AdminOnly); new id[64], adminlevel, userid, string[200]; if(sscanf(params, "s[64]i", id, adminlevel)) return SendClientMessage(playerid, COLOR_WHITE, "{33CCFF}Sintaxa: {FFFFFF}/setadminoff <Name> <Admin Level>"); new cont = MySQLCheckAccount(id); userid = GetPlayerID(id); if(cont == 0) return SCM(playerid, -1, "Eroare: Acest nume nu a fost gasit in baza de date!"); if(adminlevel < 0 || adminlevel > 6) return SCM(playerid, COLOR_GREY, "Invalid admin level! (0-6)"); format(string, sizeof(string), "I-ai setat lui %s admin %d.", id, adminlevel); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "AdmCmd: %s i-a setat lui (Offline)%s admin %d.", GetName(playerid), id, adminlevel); if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string, 6); PlayerInfo[userid][pAdmin] = adminlevel; new query[180]; if(adminlevel >= 1) format(query, sizeof(query), "UPDATE users SET `Security`='%s', `HelpedPlayers`='0', `Admin`='%s' WHERE `name`='%s'", MD5_Hash(DEFAULT_PASSWORD), adminlevel, userid); else format(query, sizeof(query), "UPDATE users SET `AW`='0', `Admin`='0' WHERE `name`='%s'", userid); mysql_query(SQL, query); return 1; }
  2. Nu sunt sigur, dar cred ca un ceas este de la HUD. Incearca sa scoți modul de hud.
  3. Salut, sunt incepator in scripting. Ma poate ajuta cineva sa fac o chestie ca adminii sa fie exclusi de anticheat? ex:sa poata folosi surfly fara sa ii ia anticheat-ul PS:Folosesc gamemode-ul wster rpg Multumesc anticipat!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.