Jump to content

SUSANU

Membru
  • Posts

    42
  • Joined

  • Last visited

Everything posted by SUSANU

  1. Asa am SHA256_PassHash(password, "78sdjs86d2h", MyHash, sizeof(MyHash));
  2. Problema intalnita (descriere):Deci vreau sa fac criparea parolelor in gamemodul bigzone La OnplayerRegist merge dar la logare nuEro(area / rile) / warning-(ul / urile): -Liniile de cod / sursa / script-ul(obligatoriu): public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); new Str[200]; new MyHash[256]; SHA256_PassHash(password, "78sdjs86d2h", MyHash, sizeof(MyHash)); mysql_format(SQL,Str,sizeof(Str),"INSERT INTO `users` (`name`,`password`) VALUES ('%s','%s')",playername3,MyHash); mysql_tquery(SQL,Str,"",""); strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); PlayerInfo[playerid][pCash] = GetPlayerCash(playerid); GetPlayerHealthEx(playerid,PlayerInfo[playerid][pHealth]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1482.0311; PlayerInfo[playerid][pPos_y] = -1331.4050; PlayerInfo[playerid][pPos_z] = 163.7188; } if(Spectate[playerid] != -1) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } new str[128]; mysql_format(SQL,str,128,"UPDATE users SET `pHealth`='%.1f' WHERE `name`='%s'",PlayerInfo[playerid][pHealth],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); new loginstring[182]; new loginname[182]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{a9c4e4}Bun venit inapoi pe Blown RPG \n{a9c4e4}Cont:{ee5555} %s \n{a9c4e4}Acest cont este inregistrat",loginname); ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"{00FE37}Login",loginstring,"Login","Exit"); new rezultat[256]; new Cache: cacheverificare = mysql_query(SQL, "SELECT * FROM `users` WHERE `id` > '0'"); sumaconturi = cache_get_row_count(); cache_delete(cacheverificare); new Cache: cacheverificare2 = mysql_query(SQL, "SELECT * FROM `users` ORDER BY `id` DESC LIMIT 1"); for(new i, cache = cache_get_row_count(); i != cache; i++) { cache_get_field_content(i, "name", rezultat); format(celmainoucont, 40, rezultat); } cache_delete(cacheverificare2); new Cache: cacheverificare3 = mysql_query(SQL, "SELECT * FROM `recordjucatori` ORDER BY `id` DESC LIMIT 1"); for(new i, cache = cache_get_row_count(); i != cache; i++) { cache_get_field_content(i, "record", rezultat); format(recordjucatori, 128, rezultat); } cache_delete(cacheverificare3); new string[2000]; format(string, sizeof(string), "Accounts: ~y~%s~w~ / Newest account: ~y~%s ~w~/ Most players online: %s",FormatNumber(sumaconturi),celmainoucont,recordjucatori); TextDrawSetString(LoginInfo, string); TextDrawShowForPlayer(playerid, LoginInfo); return 1; } return 1; } Imagini / Video (optional):
  3. Salut! Vand gamemode-ul ce a rulat pe server-ul TrustGame care a fost inchis deoarece au fost niste certuri cu fondatorul ogdan, eu am gamemode de la scripterul SUSANU care a muncit acolo si doresc sa vand acest gamemode. Ce vinzi: GameMode SAMP Descriere produs: * Sistem de masini - Poti detine maxim 4 masini pe serverul nostru( 2 sloturi primite la inregistrare + 2 sloturi primite la achizitionarea contului premium) - Dealershipul are un numar de 100 de modele de masini in stock, asteptand cumparatori. - Dealershipul il poti localiza folosind comanda /gps. *Poze:http://i.imgur.com/NidRZet.jpg http://i.imgur.com/9h13EB2.jpg http://i.imgur.com/5Sgi5Ch.jpg * Sistem /shop - Sistemul de shop dispune de o gama larga de produse pentru utilizatorii ce detin Puncte Premium care se pot cumpara dupa Panel *Poze: http://i.imgur.com/jB9QDCx.jpg * Sistem DMV - Sistemul DMV este unul simplu si usor de parcurs facut de catre ogdan - O data parcurs cu succes tot traseul, primesti licenta de condus. *Poze: http://i.imgur.com/qv1YvWD.jpg * Sistemul de Joburi - Sistemul de joburi este unul bine pus la punct, salariul este setat dupa economia serverului. *Poze: http://i.imgur.com/HNqFyHh.jpg * Sistemul GetGift - Sistemul GetGift este unul bine structurat si aranjat, acesta este activat doar la evenimentele importante de pe server. PS: Sistemul GetGift este facut in baza de date. *Poze: http://i.imgur.com/X6egFTp.jpg - Sistem Rapoarte automate :http://i.imgur.com/6iWDL3m.jpg http://i.imgur.com/ex24FBQ.jpg -Spawn Gara LS: http://i.imgur.com/l...lQZjCft.jpg - Sistemul de Factiuni Sunt in jur de 19 factiuni *Poza: http://i.imgur.com/G4RknZe.jpg * Tin sa mentionez ca acestea sunt doar cateva din sistemele detinute de serverul nostru. Preţ: 10 euro (neg) Mai multe detali in PM! Recordul atins cu acest gm :https://scontent.fot...07f&oe=582DEB8A
  4. Interesant. Mai ales sitemul de agenți.
  5. Ai deptate , Bogdan a copit din gm meu o sa revin cu dovezi
  6. Am si eu o problema cu gm imi da asta la compilare D:\bugged\gamemodes\gmm.pwn(15193) : error 017: undefined symbol "DIALOG_STYLE_TABLIST_HEADERS" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
  7. dialogul case DIALOG_FRIENDS: { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, DIALOG_FRIENDS2, DIALOG_STYLE_INPUT, "Server: Add a Friend", "Put the playername in the box - type only the name, without the clan tag!", "Add", "Cancel"); } else { format(sName[playerid], MAX_PLAYER_NAME, playerVariables[playerid][sfnume]); //format(sName[playerid], MAX_PLAYER_NAME, Selectedf[listitem][sfnume]); new dialstr[40]; SCM(playerid, -1, dialstr); new id = GetPlayerID(sName[playerid]); if(id != INVALID_PLAYER_ID) { ShowPlayerDialog(playerid, DIALOG_FRIENDS3, DIALOG_STYLE_LIST, dialstr, "Remove from friends\nCall\nSMS", "Select", "Cancel"); } else { ShowPlayerDialog(playerid, DIALOG_FRIENDS3, DIALOG_STYLE_LIST, dialstr, "Remove from friends", "Select", "Cancel"); } } } } case DIALOG_FRIENDS3: { if(response) { new id = GetPlayerID(sName[playerid]); switch(listitem) { case 0: { new queryy[256], id2; mysql_format(handle, queryy, 256, "SELECT * FROM playeraccounts WHERE playerName = '%s'", sName[playerid]); new Cache: re = mysql_query(handle, queryy); if(cache_get_row_count() >= 1) { cache_get_field_content(0, "playerID", result); id2 = strval(result); new queryy2[256], frid; mysql_format(handle, queryy2, 256, "SELECT * FROM friends WHERE friendInternalID = '%d' AND friendAddID = '%d'", id2, playerVariables[playerid][pInternalID]); new Cache: re2 = mysql_query(handle, queryy2); if(cache_get_row_count() == 0) { SCM(playerid, -1, "This player is not in your contact list!"); cache_get_field_content(0, "friendID", result); frid = strval(result); } else { mysql_format(handle, queryy2, 256, "DELETE * FROM friends WHERE friendID = '%d'", frid); mysql_tquery(handle, queryy2); SCM(playerid, -1, "Player removed from contacts."); } cache_delete(re2); } else { SCM(playerid, -1, "There's no such a player!"); } cache_delete(re); } case 1: { if(id != INVALID_PLAYER_ID) { ShowPlayerDialog(playerid, DIALOG_FRIENDS4, DIALOG_STYLE_INPUT, "Server: SMS", "What text do you wish to send?", "Go", "Cancel"); } } case 2: { new number; new queryy[256]; mysql_format(handle, queryy, 256, "SELECT * FROM playeraccounts WHERE playerName = '%s'", sName[playerid]); new Cache: re = mysql_query(handle, queryy); if(cache_get_row_count() >= 1) { cache_get_field_content(0, "playerPhoneNumber", result); number = strval(result); } cache_delete(re); if(number != -1) { new string[256]; if(playerVariables[playerid][pPhone] == 1) { format(string, sizeof(string), "* %s takes out their cellphone, and dials in a number.", szPlayerName, number); } else if(playerVariables[playerid][pPhone] == 2) { format(string, sizeof(string), "* %s takes out their iPhone, and dials in a number.", szPlayerName, number); } SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE); nearByMessage(playerid, COLOR_PURPLE, string); if(playerVariables[playerid][pPhone] == 1) { SetPlayerAttachedObject(playerid,4,330,6, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); } else if(playerVariables[playerid][pPhone] == 2) { SetPlayerAttachedObject( playerid, 4, 18865, 6, 0.086043, 0.027719, 0.003817, 95.232246, 178.651031, 1.691840, 1.002077, 1.000000, 1.000000 ); // MobilePhone1 - phone1 } foreach(Player, i) { if(playerVariables[pPhoneNumber] == number) { if(playerVariables[pStatus] == 1 && playerVariables[pSpectating] == INVALID_PLAYER_ID && playerVariables[pPhoneStatus] == 1 && playerVariables[pPhoneCall] == -1 && playerVariables[pPrisonID] != 3) { if(playerVariables[pPhone] == 1) { GetPlayerName(i, szPlayerName, MAX_PLAYER_NAME); format(string, sizeof(string), "* %s's cellphone starts to ring...", szPlayerName); } else if(playerVariables[pPhone] == 2) { GetPlayerName(i, szPlayerName, MAX_PLAYER_NAME); format(string, sizeof(string), "* %s's iPhone starts to ring...", szPlayerName); } nearByMessage(i, COLOR_PURPLE, string); format(szMessage, sizeof(szMessage), "You are called by %s. Type /p(ickup) to answer your phone.", playerVariables[playerid][pNormalName]); SCM(i, COLOR_YELLOW, szMessage); playerVariables[playerid][pCall] = i; return 1; } else { SendClientMessage(playerid, COLOR_GREY, "(cellphone) *busy tone*"); return 1; } } } if(playerVariables[playerid][pPhoneCall] == -1) SendClientMessage(playerid, COLOR_GREY, "(cellphone) *busy tone*"); } } } } } case DIALOG_FRIENDS4: { new number, count; if(response) { new queryy[256]; mysql_format(handle, queryy, 256, "SELECT * FROM playeraccounts WHERE playerName = '%s'", sName[playerid]); new Cache: re = mysql_query(handle, queryy); if(cache_get_row_count() >= 1) { cache_get_field_content(0, "playerPhoneNumber", result); number = strval(result); } cache_delete(re); foreach(Player, x) { if(playerVariables[x][pPhoneNumber] == number) { if(playerVariables[x][pPhoneStatus] == 1) { GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME); format(szMessage, sizeof(szMessage), "SMS from %s (%d): %s", szPlayerName, playerVariables[playerid][pPhoneNumber], inputtext); SendClientMessage(x, COLOR_YELLOW, szMessage); LastPlayer[x] = playerid; GetPlayerName(x, szPlayerName, MAX_PLAYER_NAME); format(szMessage, sizeof(szMessage), "SMS sent to %s (%d): %s", szPlayerName, playerVariables[x][pPhoneNumber], inputtext); SendClientMessage(playerid, COLOR_SMS, szMessage); playerVariables[playerid][pPhoneCredit] -= 3; new szQuery[256]; mysql_format(handle, szQuery, sizeof(szQuery), "INSERT INTO `phonelogs` (`phoneNumber`, `phoneAction`) VALUES('%d', 'SMS to %s: %s')", playerVariables[playerid][pPhoneNumber], szPlayerName, inputtext); mysql_tquery(handle, szQuery); return 1; } else { return SendClientMessage(playerid, COLOR_GREY, "The cellphone that you're trying to SMS is currently unavailable."); } } } count++; } if(count < 1) return SendClientMessage(playerid, COLOR_GREY, "Invalid number."); } case DIALOG_FRIENDS2: { if(response) { new quer69[256], id, number; mysql_format(handle, quer69, 256, "SELECT * FROM friends WHERE friendAddID = '%d'", playerVariables[playerid][pInternalID]); new Cache: q = mysql_query(handle, quer69); if(cache_get_row_count() >= 10) { SCM(playerid, -1, "You already have so many friends!"); return 1; } cache_get_field_content(0, "friendInternalID", result); id = strval(result); cache_delete(q); mysql_format(handle, quer69, 256, "SELECT * FROM playeraccounts WHERE playerID = '%d'", id); new Cache: q2 = mysql_query(handle, quer69); if(cache_get_row_count() != 0) { cache_get_field_content(0, "playerPhoneNumber", result); number = strval(result); } cache_delete(q2); if(number != -1) { mysql_format(handle, quer69, 256, "INSERT INTO `friends` (`friendNumber`, `friendInternalID`, `friendAddID`) VALUES ('%d', '%d', '%d')", number, id, playerVariables[playerid][pInternalID]); mysql_query(handle, quer69); SCM(playerid, -1, quer69); SCM(playerid, -1, "Friend added!"); } } } Poza baza de date:
  8. Salut am si eu o Problema cu comanda:friends Imagine: PS:scuzati reclama dar e sv meu
  9. la mine am o problema cu pluginul streamer nu nu porneste
  10. si eu am o problema cu gm pe localhost nu porneste
  11. @AdY.Capone ca sa mearga panelul trebuie sa faci un subdomeniu ca si eu am avut problema asta
×
×
  • 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.