Jump to content

IcE.

Membru
  • Posts

    1.094
  • Joined

  • Last visited

Everything posted by IcE.

  1. e unu din cele mai cool sv de C`R :x GG 10/10
  2. team dat un raspuns la topic
  3. IcE.

    Spalatorie

    4/5 aceasi poveste ca la vama ps:la ce folosesti MidoStream ?
  4. IcE.

    Vama SF-LV

    teas fi dat 1/5 ca folosesti s0biet > >. Dar imi place mapa deci iti dau 4/5
  5. ok am sal refac :(
  6. [glow=black,1,300][TUT][0.3]Cum faci Register cu ajutoru la Dialog[uP][/glow] [glow=red,2,300]1[/glow].Cautam linia: if(fexist(string)) { gPlayerAccount[playerid] = 1; SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That nick is registered, please login"); SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing /login <password>"); return 1; } else { gPlayerAccount[playerid] = 0; SendClientMessage(playerid,COLOR_YELLOW,"You dont have an account. Please register by using /register [password]"); return 1; } Si o inlocuim cu: if(fexist(string)) { gPlayerAccount[playerid] = 1; new loginstring[2000]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FFFFFF}Salut, {FF0000}%s {FFFFFF}! Bine ai venit.\n{FFFFFF}Esti inregistrat in baza noastra de dare.\n{FFFFFF}\n\n\n\n\n{FFFF00}NumeSV {FFFFFF}te roaga sa te loghezi:",loginname); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"{FF0000}Login",loginstring,"Login","Exit"); return 1; } else { gPlayerAccount[playerid] = 0; new regstring[1000]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"Bun venit, {1E90FF}%s\n{FFFFFF}Nu ai cont.\n\n\n\n\n\n{FFFF00}NumeSV te roaga sa te inregistrezi:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"{FF0000}Register",regstring,"Register","Exit"); return 1; } [glow=red,2,300]2[/glow].Cautam linile: if(SafeTime[i] == 1) { if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0) { SendClientMessage(i, COLOR_WHITE, "HINT: You can now login by typing /login <password>"); } } Si inlocuim cu: if(SafeTime[i] == 1) { if(gPlayerAccount[i] == 1 && gPlayerLogged[i] == 0) { new loginname[64]; new loginstring[128]; GetPlayerName(i,loginname,64); format(loginstring,sizeof(loginstring),"Bun venit, %s\nTe rugam sa te loghezi:",loginname); ShowPlayerDialog(i,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); } } [glow=red,2,300]3[/glow].Cautam linile: fclose(hFile); SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you can login now (/login [password])."); Si inlocuim cu: fclose(hFile); new loginstring[3000]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FFFFFF}Salut, {FF0000}%s {FFFFFF}! Teai inregistrat un cont,.\n{FFFFFF}Acum e momentul sa te loghezi.\n{FFFF00}NumeSV {FFFFFF}te roaga sa te loghezi:",loginname); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"{FF0000}Login",loginstring,"Login","Exit"); [glow=red,2,300]4[/glow].Cautam linile: else { SendClientMessage(playerid, COLOR_WHITE, "SERVER: Password does not match your name."); fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } return 1; } Si inlocuim cu else { new loginstring[500]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FF0000}WRONG PASSWORD\n\n\n\n\n{FFFF00}IronRp{FFFFFF} te roaga sa scri parola corecta:",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{FF0000}Log-in",loginstring,"Log-in","Exit"); fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Kick(playerid); } return 1; } [glow=red,2,300]5[/glow].Acum avem dialogurile create. Urmeaza sa adaugam dialogurile si la OnDialogResponse. -Mai intai cautati OnDialogResponse. -Sub { adaugam urmatoarele coduri: new sendername[MAX_PLAYER_NAME]; if(dialogid == 12346 || dialogid == 12347) { if(response) { if(strlen(inputtext)) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); OnPlayerLogin(playerid,tmppass); } else { new loginstring[500]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FF0000}WRONG PASSWORD\n\n\n\n\n{FFFF00}NumeSV{FFFFFF} te roaga sa scri parola corecta:",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{FF0000}Log-in",loginstring,"Log-in","Exit"); } } } if(dialogid == 12345) { if(response) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s.ini", sendername); new File: hFile = fopen(string, io_read); if (hFile) { SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one."); fclose(hFile); return 1; } new passtring[128]; new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); format(passtring,sizeof(passtring),"{FFFFFF}Your password is( {FF0000}%s {FFFFFF}).Please don't forget your password or you lost the account",tmppass); SendClientMessage(playerid, COLOR_ROSUAPRINS, passtring); OnPlayerRegister(playerid,tmppass); } else { new regstring[1000]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"Bun venit, {1E90FF}%s\n{FFFFFF}Nu ai cont.\n\n\n\n\n\n{FFFF00}NumeSV te roaga sa te inregistrezi:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"{FF0000}Register",regstring,"Register","Exit"); } } } [glow=red,2,300]6[/glow].Acum trebuie sa dezactivam comenzile /register & /login. -Cautam comanda /register si o "bagam" intre /* si */ . --Aveti grija ca comanda sa "fie" verde. -Cautam comanda /login si facem lafel cum e sus. [glow=black,2,300]ATENTIE[/glow] -Nu este chear un tutorial ci o mai mult iti arat cum sa inlocui. -Cui nui place "munca" mea sa nu posteze. -Nu vreau sa vad acest tutorial pe alte forumi fara acordu meu (il cereti prin PM). [glow=black,2,300]CREDIT[/glow] -Tutorial By:IcE(me) -Functile de dialog gasite in postul original de la gm-u GF. (editat de mine) Acesta nu este postu original, am facut un update la el deoarece vechea medoda nu e era chear buna.
  7. IcE.

    [MAP]Stunt

    ps:pune cordonatele pt tele ps2:revin cu un edit cu ele nam gasito :|
  8. IcE.

    [MAP]Stunt

    super tare :X 5/5
  9. Imi pare rau ca trezesc topicu dar am gasit un bug La format(string,256,"SetPlayerFacingAngle(playerid,%2f)\n}\nreturn 1;\n}\n",Pos[playerid][3]); nu e pus ; si codu rezolvat format(string,256,"SetPlayerFacingAngle(playerid,%2f);\n}\nreturn 1;\n}\n",Pos[playerid][3]); vedeti ca trebuie modificat la linia 143 , 165 , 219 , 240
  10. Gata am reusit. Mersi Runix si farse
  11. dai bataie si corectezal
  12. //Pui pe la inceputului GM/FS new Text:Nume; new name: new pname[MAX_PLAYER_NAME]; //Pui in OnGameModeInit GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s", pname); Nume = TextDrawCreate(28.000000,428.000000,name); TextDrawAlignment(Nume,0); TextDrawBackgroundColor(Nume,0xffffffff); TextDrawFont(Nume,1); TextDrawLetterSize(Nume,0.799999,1.200000); TextDrawColor(Nume,0x00ff0033); TextDrawSetOutline(Nume,1); TextDrawSetProportional(Nume,1); TextDrawSetShadow(Nume,1); //Si la OnPlayerSpaw/Connect pui TextDrawShowForPlayer(playerid,nume); Poti folosi varianta lu RuNix dar in loc de x,y pui 28.000000,428.000000 ca sa fie sub GPS Sper ca o sati merga :D
  13. e host linux? daca da pune la plugins xStreamer.so
  14. nu merge ca asa am incercat si eu :(
  15. forte funny ) dar pune un cp jos cu tele ca altfel nai cum sa urci
  16. IcE.

    Un nou oras !

    frumos 4/5 :(
  17. Sal.. Cum pot face ca sa primesc scor 10 la fiecare o ora stata pe server
  18. nici mie nici linku nu merge...
  19. Trebuie sa ai instalat net framework 3.5 daca va da eroare net framework 3.5 la instalare instalati asta Windows installer 3.1 Sper sati merga Cum sa faci sa merga xStreamer
  20. IcE.

    [MAP]Vacation home

    nu mai posta in topicuri vechi pentru a face posturi
  21. http://www.softpedia.com/get/Others/Signatures-Updates/Microsoft-NET-Framework-Pre-Release.shtml
  22. IcE.

    spawn in masina

    if(strcmp(cmdtext, "/dumper", true) == 0) { AddCar(playerid, 406); return 1; } stock AddCar(playerid, carid) { new Float:X, Float:Y, Float:Z, nrg; GetPlayerPos(playerid, X, Y, Z); car = CreateVehicle(carid, X, Y, Z, 0.0, -1, -1, -1); PutPlayerInVehicle(playerid, car, 0); return 1; }
  23. Number of Vehicle Models : x Iti spune cate modele de masini sunt puse.Apar numa la AddStaticVehicle
  24. foloseste decat OnPlayerEnterVehicle(....) public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid)==425) { GivePlayerMoney(playerid,-1); SendClientMessage(playerid,0xFFFFFFAA,"You're in Hunter!"); return 1; } return 0; }
  25. botu merge pe jos sau cu masina? daca cu masina pune asa new NPCVehicle; public OnGameModeInit() { NPCVehicle = CreateVehicle(id, x, y, z, 82.2873, 0, 1, 60);//in loc de x,y,z pui cordonatele de unde porneste botu return 1; }
×
×
  • 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.