Jump to content

vampir_MD

Membru
  • Content Count

    469
  • Joined

  • Last visited

Community Reputation

0 Neutru

2 Followers

About vampir_MD

  • Rank
    Membru senior
  • Birthday 12/06/1993

Recent Profile Visitors

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

  1. Hahhha Cum se mai simte comunitatea sa-mp.ro o mare salutare din parte mea de la Vampir_MD
  2. vampir_MD

    V_Pro

    Am lucrat la ce mi-ai zis tu. Dar am gasit un bug si daca nu rezolv nu il postez fs. Niste poze: [img width=500 height=375]http://desmond.imageshack.us/Himg842/scaled.php?server=842&filename=samp001br.png&res=landing [img width=500 height=375]http://desmond.imageshack.us/Himg825/scaled.php?server=825&filename=samp002er.png&res=landing [img width=500 height=375]http://desmond.imageshack.us/Himg32/scaled.php?server=32&filename=samp003zm.png&res=landing [img width=500 height=375]http://desmond.imageshack.us/Himg40/scaled.php?server=40&filename=samp004ux.png&res=landing
  3. vampir_MD

    Cum sa faci dialog Login/Register in Ladmin.

    80% din toti scripteri din www.sa-mp.ro utilizeaza Ladminu meu editat din DKR. Care are coins si vip de asta lam facut asa. Asta doar cei care nu au. new PlayerName[MAX_PLAYER_NAME] Pana diseara mai fac inca o parte da cu original.
  4. vampir_MD

    Login/Register la intrare pe server .

    http://www.sa-mp.ro/forum/index.php/topic,22272.0.html uitete am facut un tutorial
  5. Asa am vazut un topic si un prieten tot ma rugat sa-l invat,am decis sa va fac un tutorial. Sa incepem. Punem asta la inceput de fs-gm. #define Dialog_Register 0001 //Eu am pus asa voi puteti sa la schimbati. #define Dialog_Login 0002 //Eu am pus asa voi puteti sa la schimbati. Acuma dam CTRL + H si cautam asta if(!udb_Exists(PlayerName2(playerid))) Voi aveti asta. if(!udb_Exists(PlayerName2(playerid))) SendClientMessage(playerid,orange, "{00CEFC}ACCOUNT: {00FF19}Scrie {FC0303}/register {FFFFFF}[{00CEFC}password{FFFFFF}] {00FF19}pentru a creea un cont nou"); else { PlayerInfo[playerid][Registered] = 1; format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName)); new tmp2[256]; tmp2 = dini_Get(file,"ip"); if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) ) { LoginPlayer(playerid); if(ServerInfo[SetScore] == 1) SetPlayerScore(playerid, dUserINT(PlayerName2(playerid)).("score") ); if(PlayerInfo[playerid][Level] > 0) { format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat. {FFFFFF}({00CEFC}Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Level] ); SendClientMessage(playerid,green,string); } else if(PlayerInfo[playerid][Vip] > 0) { format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat. {FFFFFF}({00CEFC}Vip Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Vip] ); SendClientMessage(playerid,green,string); } else SendClientMessage(playerid,green,"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat."); } else SendClientMessage(playerid, green, "{00CEFC}ACCOUNT: {00FF19}Acest nick este inregistrat {FC0303}, {00FF19}te poti loga folosind {FC0303}/login {FFFFFF}[{00CEFC}password{FFFFFF}]"); } return 1; } il schimbati cu asta. if(!udb_Exists(PlayerName2(playerid))) ShowPlayerDialog( playerid, Dialog_Register , 1, "ACCOUNT:","Do not have an account please register to that will save money and scor.","Register", "Cancel"); else { PlayerInfo[playerid][Registered] = 1; format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName)); new tmp2[256]; tmp2 = dini_Get(file,"ip"); if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1) ) { LoginPlayer(playerid); if(ServerInfo[SetScore] == 1) SetPlayerScore(playerid, dUserINT(PlayerName2(playerid)).("score") ); if(PlayerInfo[playerid][Level] > 0) { format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat. {FFFFFF}({00CEFC}Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Level] ); SendClientMessage(playerid,green,string); } else if(PlayerInfo[playerid][Vip] > 0) { format(string,sizeof(string),"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat. {FFFFFF}({00CEFC}Vip Level {FC0303}%d{FFFFFF})", PlayerInfo[playerid][Vip] ); SendClientMessage(playerid,green,string); } else SendClientMessage(playerid,green,"{00CEFC}ACCOUNT: {00FF19}Ai fost logat automat."); } else ShowPlayerDialog(playerid ,Dialog_Login, 1 , "Login", "Welcome back \nThis nickname is registered, Please login. ", "Login", "Cancel" ); } Dece sal schimbati. Tu ai asa. SendClientMessage(playerid,orange, "{00CEFC}ACCOUNT: {00FF19}Scrie {FC0303}/register {FFFFFF}[{00CEFC}password{FFFFFF}] {00FF19}pentru a creea un cont nou"); Da trebue de pus cu Dialog asa. ShowPlayerDialog( playerid, Dialog_Register , 1, "ACCOUNT:","Do not have an account please register to that will save money and scor.","Register", "Cancel"); Si asta la OnPlayerConnect daca nul aveti. new PlayerName[MAX_PLAYER_NAME] -------------------------------------------------------------------------------------------------------- Si la OnDialogResponse bagi asta, este pusa de doua ori pentru ca daca dai cancel iti da sa introduci dinou parola. Register if(dialogid == Dialog_Register) { if(response) { if (strlen(inputtext) == 0) return ShowPlayerDialog(playerid ,Dialog_Register, 1 , "ACCOUNT", "Insert password please", "Register", "Cancel" ); if (strlen(inputtext) < 4 || strlen(inputtext) > 20) return ShowPlayerDialog(playerid ,Dialog_Register, 1 , "ACCOUNT", "Password length must be greater than three characters", "Register", "Cancel" ); if (udb_Create(PlayerName2(playerid),inputtext)) { new file[256], name[MAX_PLAYER_NAME], tmp3[100], strdate[20], year,month,day; getdate(year, month, day); GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(name)); GetPlayerIp(playerid,tmp3,100); dini_Set(file,"ip",tmp3); dini_Set(file,"password",inputtext); dUserSetINT(PlayerName2(playerid)).("registered",1); format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year); dini_Set(file,"RegisteredDate",strdate); dUserSetINT(PlayerName2(playerid)).("loggedin",1); dUserSetINT(PlayerName2(playerid)).("banned",0); dUserSetINT(PlayerName2(playerid)).("level",0); dUserSetINT(PlayerName2(playerid)).("vip",0); dUserSetINT(PlayerName2(playerid)).("LastOn",0); dUserSetINT(PlayerName2(playerid)).("money",0); dUserSetINT(PlayerName2(playerid)).("kills",0); dUserSetINT(PlayerName2(playerid)).("deaths",0); dUserSetINT(PlayerName2(playerid)).("hours",0); dUserSetINT(PlayerName2(playerid)).("minutes",0); dUserSetINT(PlayerName2(playerid)).("seconds",0); dUserSetINT(PlayerName2(playerid)).("coins",0); PlayerInfo[playerid][LoggedIn] = 1; PlayerInfo[playerid][Registered] = 1; PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } } } if(dialogid == Dialog_Register) { if(!response) { if (strlen(inputtext) == 0) return ShowPlayerDialog(playerid ,Dialog_Register, 1 , "ACCOUNT", "Insert password please", "Register", "Cancel" ); if (strlen(inputtext) < 4 || strlen(inputtext) > 20) return ShowPlayerDialog(playerid ,Dialog_Register, 1 , "ACCOUNT", "Password length must be greater than three characters", "Register", "Cancel" ); if (udb_Create(PlayerName2(playerid),inputtext)) { new file[256], name[MAX_PLAYER_NAME], tmp3[100], strdate[20], year,month,day; getdate(year, month, day); GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(name)); GetPlayerIp(playerid,tmp3,100); dini_Set(file,"ip",tmp3); dini_Set(file,"password",inputtext); dUserSetINT(PlayerName2(playerid)).("registered",1); format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year); dini_Set(file,"RegisteredDate",strdate); dUserSetINT(PlayerName2(playerid)).("loggedin",1); dUserSetINT(PlayerName2(playerid)).("banned",0); dUserSetINT(PlayerName2(playerid)).("level",0); dUserSetINT(PlayerName2(playerid)).("vip",0); dUserSetINT(PlayerName2(playerid)).("LastOn",0); dUserSetINT(PlayerName2(playerid)).("money",0); dUserSetINT(PlayerName2(playerid)).("kills",0); dUserSetINT(PlayerName2(playerid)).("deaths",0); dUserSetINT(PlayerName2(playerid)).("hours",0); dUserSetINT(PlayerName2(playerid)).("minutes",0); dUserSetINT(PlayerName2(playerid)).("seconds",0); dUserSetINT(PlayerName2(playerid)).("coins",0); PlayerInfo[playerid][LoggedIn] = 1; PlayerInfo[playerid][Registered] = 1; PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } } } SI asta to acolo. Login if(dialogid == Dialog_Login) { if(response) { if (strlen(inputtext)==0) return ShowPlayerDialog(playerid ,Dialog_Login, 1 , "ACCOUNT", "Insert password please", "Login", "Cancel" ); if (udb_CheckLogin(PlayerName2(playerid),inputtext)) { new file[256], tmp3[100], year, month, day;getdate(year, month, day); format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName2(playerid)) ); GetPlayerIp(playerid,tmp3,100); dini_Set(file,"ip",tmp3); LoginPlayer(playerid); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } } } else { PlayerInfo[playerid][FailLogin]++; printf("LOGIN: %s has failed to login, Wrong password (%s) Attempt (%d)", PlayerName2(playerid), inputtext, PlayerInfo[playerid][FailLogin] ); if(PlayerInfo[playerid][FailLogin] == MAX_FAIL_LOGINS) { new string[128]; format(string, sizeof(string), "%s has been kicked (Failed Logins)", PlayerName2(playerid) ); ShowPlayerDialog(playerid, 9999, 0, ".::ACCOUNT::.", string, "Ok", ""); print(string); Kick(playerid); } return ShowPlayerDialog(playerid ,Dialog_Login, 1 , "ACCOUNT", "Login failed! Incorrect Password", "Login", "Cancel" ); } if(dialogid == Dialog_Login) { if(!response) { if (PlayerInfo[playerid][LoggedIn] == 1) return ShowPlayerDialog(playerid ,Dialog_Login, 1 , "ACCOUNT", "You are already logged in.", "Login", "Cancel" ); if (!udb_Exists(PlayerName2(playerid))) return ShowPlayerDialog(playerid ,Dialog_Login, 1 , "ACCOUNT", "Account doesn't exist, please use 'register' ", "Login", "Cancel" ); if (strlen(inputtext)==0) return ShowPlayerDialog(playerid ,Dialog_Login, 1 , "ACCOUNT", "Insert password please", "Login", "Cancel" ); if (udb_CheckLogin(PlayerName2(playerid),inputtext)) { new file[256], tmp3[100], year, month, day;getdate(year, month, day); format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(PlayerName2(playerid)) ); GetPlayerIp(playerid,tmp3,100); dini_Set(file,"ip",tmp3); LoginPlayer(playerid); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); } else { PlayerInfo[playerid][FailLogin]++; printf("LOGIN: %s has failed to login, Wrong password (%s) Attempt (%d)", PlayerName2(playerid), inputtext, PlayerInfo[playerid][FailLogin] ); if(PlayerInfo[playerid][FailLogin] == MAX_FAIL_LOGINS) { new string[128]; format(string, sizeof(string), "%s has been kicked (Failed Logins)", PlayerName2(playerid) ); ShowPlayerDialog(playerid, 9999, 0, ".::ACCOUNT::.", string, "Ok", ""); print(string); Kick(playerid); } return ShowPlayerDialog(playerid ,Dialog_Login, 1 , "ACCOUNT", "Login failed! Incorrect Password", "Login", "Cancel" ); } } } Ceva intrebari nelamuriri nu va aptineti spunetile ca va voi ajuta .
  6. vampir_MD

    Problema BuyVip

    Cum sa bagi ore pe fs asta daca orele se salveaza in Ladmin.
  7. vampir_MD

    Dialog Register

    Dami codul de register si login din GM tau
  8. vampir_MD

    Problem /help pe dialog

  9. vampir_MD

    addvehicle

    Pui la inceput la gm new ELEGY, ELEGY2; Si asta la on gamemodIng public OnGameModeInit() { ELEGY = CreateVehicle(562, -2459.320312, -489.969421, 104.373161, 35.932125, -1, -1, 10000); ChangeVehiclePaintjob(ELEGY, 1); // PaintJob AddVehicleComponent(ELEGY, 1147); // Spoiler AddVehicleComponent(ELEGY, 1087); // Hidraulics ELEGY2 = CreateVehicle(562, -2772.148681, -477.975006, 6.869039, 142.357330, -1, -1, 10000);//daca vrei sa mai pui. Alt nume la new ChangeVehiclePaintjob(ELEGY2, 1); // PaintJob //piesele AddVehicleComponent(ELEGY2, 1147); // Spoiler //piesele AddVehicleComponent(ELEGY2, 1087); // Hidraulics //piesele return 1; } Credca ai inteles
  10. vampir_MD

    Drift King Romania v.0.9 [ZCMD + Vips System]

    Am vazut ca multi cer DKR in 0.3d si m-am gandit sa-l fac. Drift King Romania 0.9(0.3d) http://www.solidfiles.com/d/2eafd10b95/
  11. vampir_MD

    Probleme la obiecte

    Poate sa fie de la streamer cu a spus TzAkS. Dar a 2 poate sa fie ca e rau convertat am avut si eu asa probleme.
  12. vampir_MD

    Problema mare, la case!

    Ai pus rau foloseste asta. http://forum.sa-mp.com/showthread.php?t=82074
  13. vampir_MD

    Warnings

    Asa se foloseste. new string[128]; format(string, sizeof(string), "Multumim %s ca ati citit detaliile de mai sus.",name);
  14. vampir_MD

    [ Problem ] /stats dialog

    new coordsstring[1024]; pune la toate inloc de 256
  15. vampir_MD

    VDrugs

    [glow=red,2,300]..::::VDrugs::::..[/glow] Detali: Ce contine acest System: 6 tipuri de droguri 3 comenzi Comenzi: | /buydrugs | | /mydrugs | | /usedrugs | //Buydrugs// //Usedrugs// [img width=500 height=375]http://desmond.imageshack.us/Himg337/scaled.php?server=337&filename=samp038yc.png&res=landing //Mydrugs// [img width=500 height=375]http://desmond.imageshack.us/Himg832/scaled.php?server=832&filename=samp036st.png&res=landing Credits: [glow=red,2,300]Vampir_MD[/glow] Tester: [glow=red,2,300]Vampir_MD[/glow] [glow=red,2,300]Invizion[/glow] //Este facut in engleza ca o sal pun si pe www.sa-mp.com// Detali suplimentare : Fiecare drugs are un efect care dureaza un minut. Daca acest sistem o sa va placa o sa creez si urmatore versiune 0.2 www.solidfiles.com/d/e9a37c0ec6/
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.