khain.dev Posted February 9, 2019 Report Share Posted February 9, 2019 (edited) Buna,astazi va prezint un sistem de apreciere unde jucatorul cind introduce comanda ("/apreciere") poate aprecia serverul,aceste aprecier sunt salvate Mixini deoarece nu vad nici un rost ca sa il fac MySQL,sa incepem! Citat //variabile new ap;new bool:Playerap[MAX_PLAYERS]; //ongamemodeinit if(fexist("logap.txt")) { new string[32]; new File:hFile = fopen("logap.txt", io_read); fread(hFile, string); ap = strval(string); fclose(hFile); } //ongamemodeexit if(fexist("logap.txt")) { new string[32]; new File:hFile = fopen("logap.txt", io_write); format(string, sizeof(string), "%d", ap); fwrite(hFile, string); fclose(hFile); } //onplayerconnect Playerap[playerid] = false; //ondialogresponse if(dialogid == 1 && response) { new string[256]; ap = (Playerap[0]) ? (ap-1) : (ap+1); if(!Playerap[playerid]) format(string, sizeof(string), "\n\n{FFFAFA}Acest server a fost apreciat de{FFD700} %d {FFFFFF}jucatori.\n{FFFAFA}Aprecierea dvs. a fost adaugata\n\n", ap); else format(string, sizeof(string), "\n\n{FFFAFA}Acest server a fost apreciat de{FFD700} %d {FFFFFF}jucatori.\n{FFFAFA}Aprecierea dvs. a fost eliminate\n\n", ap); ShowPlayerDialog(playerid, 1, 0, " ", string, "Apreciere", "Inchide"); Playerap[playerid] = !Playerap[playerid]; } //onplayercommandtext CMD:apreciere(playerid, params[]) { new string[256]; format(string, sizeof(string), "\n\n{FFFAFA}Acest server a fost apreciat de{FFD700} %d {FFFFFF}jucatori.", ap); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, " ", string, "Apreciere", "Inchide"); // Если диалог 1 есть то делаем свои цифры. } Edited February 9, 2019 by #Yudin 1 Quote Link to comment Share on other sites More sharing options...
khain.dev Posted February 10, 2019 Author Report Share Posted February 10, 2019 Pareri? Quote Link to comment Share on other sites More sharing options...
andrei9971 Posted February 10, 2019 Report Share Posted February 10, 2019 Parerea mea e ca e absolut inutil sa adaugi o chestei de genul. Quote Link to comment Share on other sites More sharing options...
khain.dev Posted February 15, 2019 Author Report Share Posted February 15, 2019 La 11.02.2019 la 0:10, andrei9971 a spus: Parerea mea e ca e absolut inutil sa adaugi o chestei de genul. De asta tu nu ai nevoie dar altul poate are,fiecare cu gusturile si parerile sale 1 Quote Link to comment Share on other sites More sharing options...
Uzzi25.. Posted February 16, 2019 Report Share Posted February 16, 2019 (edited) Felicitari pentru munca depusa Edited February 21, 2019 by Uzzi25_Adev Quote Download gamemode de la 0: gamemode de la 0 instagram: @instauzzi25 Link to comment Share on other sites More sharing options...
nobilzeusAdv Posted February 16, 2019 Report Share Posted February 16, 2019 (edited) Copiat de la rusi, ai schimbat doar limba și puteai sa folosesti mysql decat sa te folosești de un fisier.txt Și Dacă dai relog poți folosi din nou cmd si poti sa dai reputație în continu Edited February 16, 2019 by nobilzeusAdv Quote Link to comment Share on other sites More sharing options...
khain.dev Posted February 16, 2019 Author Report Share Posted February 16, 2019 Acest sistem este facut de mine in primul rind, in al doilea chiar daca votezi tu a doua oara totusi votul tau nu se mai socoate Quote Link to comment Share on other sites More sharing options...
TheDevilRus Posted February 25, 2019 Report Share Posted February 25, 2019 Pare copiat de la rusi , codul e la fel. Quote Link to comment Share on other sites More sharing options...
s4uriK.Official Posted November 20, 2019 Report Share Posted November 20, 2019 Superb, fiecare își poate arata aprecierea pe server, ar fi fain sa poti lasa si o notificare privind votul, parerea jucătorilor. In timpul asta sa fie legat si de forum cu o categorie aparte, fiind expuse tuturor. Quote Serverul meu de Discord: Click aici Link to comment Share on other sites More sharing options...
Sancky Posted March 21, 2020 Report Share Posted March 21, 2020 poate fii facuta pe mysql usor, si mai optimizat de atat. Quote Link to comment Share on other sites More sharing options...
CritteR Posted March 21, 2020 Report Share Posted March 21, 2020 On 2/9/2019 at 7:21 PM, K H A I N said: ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, " ", string, "Apreciere", "Inchide"); // Если диалог 1 есть то делаем свои цифры. Quote GitHub | Site Personal | Forum Gaming Link to comment Share on other sites More sharing options...
peiN Posted March 26, 2020 Report Share Posted March 26, 2020 Chiar nu imi dau seama ce utilitate ar putea avea acest sistem... daca era un sistem care accepta sugestii legate de server era mult mai folositor, dar asa, chiar nu vad niciun folos... Quote Facebook YouTube Discord: peiN#5187 Ofer servicii scripting de cea mai buna calitate. Ma puteti contacta prin PM / Facebook / Discord. Link to comment Share on other sites More sharing options...
MarioGeorgescu Posted March 27, 2020 Report Share Posted March 27, 2020 +1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.