Allz0r
-
Posts
29 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Allz0r
-
-
Si eu vreau aceste event, am vazut ca multe servere il au.
-
Da, se pare ca ai mare dreptate. Multumesc mult acum am gasit:)
-
Salut cum fac si eu la serverul meu o chestie dasta?
M-am uitat in gm sa vad daca gasesc chestia asta nu e... Vreau sa stiu cum o fac sau cum dau edit..
Poza:
-
public OnPlayerLogin(playerid,password[]) { new tmp2[256]; new string2[64]; new playername2[MAX_PLAYER_NAME]; new playernamesplit[3][MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); split(playername2, playernamesplit, '_'); format(string2, sizeof(string2), "Users/%s.ini", playername2); new File: UserFile = fopen(string2, io_read); if ( UserFile ) { new PassData[256]; new keytmp[256], valtmp[256]; fread( UserFile , PassData , sizeof( PassData ) ); keytmp = ini_GetKey( PassData ); if( strcmp( keytmp , "Key" , true ) == 0 ) { valtmp = ini_GetValue( PassData ); strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255); } if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 ) { new key[ 256 ] , val[ 256 ]; new Data[ 256 ]; while ( fread( UserFile , Data , sizeof( Data ) ) ) { key = ini_GetKey( Data ); if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLevel] = strval( val ); } if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdmin] = strval( val ); } if( strcmp( key , "HelperLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelper] = strval( val ); } if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDonateRank] = strval( val ); } if( strcmp( key , "UpgradePoints" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][gPupgrade] = strval( val ); } if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pConnectTime] = strval( val ); } if( strcmp( key , "Registered" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pReg] = strval( val ); } if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); } if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); } if( strcmp( key , "Origin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pOrigin] = strval( val ); } if( strcmp( key , "CK" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCK] = strval( val ); } if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuted] = strval( val ); } if( strcmp( key , "MuteTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMuteTime] = strval( val ); } if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); } if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCash] = strval( val ); } if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAccount] = strval( val ); } if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrimes] = strval( val ); } if( strcmp( key , "Kills" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKills] = strval( val ); } if( strcmp( key , "Deaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDeaths] = strval( val ); } if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pArrested] = strval( val ); } if( strcmp( key , "WantedDeaths" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedDeaths] = strval( val ); } if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhoneBook] = strval( val ); } if( strcmp( key , "LottoNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLottoNr] = strval( val ); } if( strcmp( key , "Fishes" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishes] = strval( val ); } if( strcmp( key , "BiggestFish" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBiggestFish] = strval( val ); } if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJob] = strval( val ); } if( strcmp( key , "Paycheck" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayCheck] = strval( val ); } if( strcmp( key , "HeadValue" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHeadValue] = strval( val ); } if( strcmp( key , "Jailed" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailed] = strval( val ); } if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJailTime] = strval( val ); } if( strcmp( key , "Materials" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMats] = strval( val ); } if( strcmp( key , "Drugs" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugs] = strval( val ); } if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLeader] = strval( val ); } if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMember] = strval( val ); } if( strcmp( key , "FMember" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMember] = strval( val ); } if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRank] = strval( val ); } if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pChar] = strval( val ); } if( strcmp( key , "ContractTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pContractTime] = strval( val ); } if( strcmp( key , "DetSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDetSkill] = strval( val ); } if( strcmp( key , "SexSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSexSkill] = strval( val ); } if( strcmp( key , "BoxSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoxSkill] = strval( val ); } if( strcmp( key , "LawSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLawSkill] = strval( val ); } if( strcmp( key , "MechSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMechSkill] = strval( val ); } if( strcmp( key , "JackSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pJackSkill] = strval( val ); } if( strcmp( key , "CarSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarSkill] = strval( val ); } if( strcmp( key , "NewsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pNewsSkill] = strval( val ); } if( strcmp( key , "DrugsSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugsSkill] = strval( val ); } if( strcmp( key , "CookSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCookSkill] = strval( val ); } if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishSkill] = strval( val ); } if( strcmp( key , "pSHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSHealth] = floatstr( val ); } if( strcmp( key , "pHealth" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHealth] = floatstr( val ); } if( strcmp( key , "Int" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInt] = strval( val ); } if( strcmp( key , "Local" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLocal] = strval( val ); } if( strcmp( key , "Team" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTeam] = strval( val ); } if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pModel] = strval( val ); } if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPnumber] = strval( val ); } if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPhousekey] = strval( val ); } if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbiskey] = strval( val ); } if( strcmp( key , "Pos_x" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_x] = floatstr( val ); } if( strcmp( key , "Pos_y" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_y] = floatstr( val ); } if( strcmp( key , "Pos_z" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPos_z] = floatstr( val ); } if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarLic] = strval( val ); } if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFlyLic] = strval( val ); } if( strcmp( key , "BoatLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBoatLic] = strval( val ); } if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFishLic] = strval( val ); } if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunLic] = strval( val ); } if( strcmp( key , "Gun1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun1] = strval( val ); } if( strcmp( key , "Gun2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun2] = strval( val ); } if( strcmp( key , "Gun3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun3] = strval( val ); } if( strcmp( key , "Gun4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGun4] = strval( val ); } if( strcmp( key , "Ammo1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo1] = strval( val ); } if( strcmp( key , "Ammo2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo2] = strval( val ); } if( strcmp( key , "Ammo3" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo3] = strval( val ); } if( strcmp( key , "Ammo4" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAmmo4] = strval( val ); } if( strcmp( key , "CarTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarTime] = strval( val ); } if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDay] = strval( val ); } if( strcmp( key , "PayDayHad" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPayDayHad] = strval( val ); } if( strcmp( key , "CDPlayer" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCDPlayer] = strval( val ); } if( strcmp( key , "Wins" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWins] = strval( val ); } if( strcmp( key , "Loses" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLoses] = strval( val ); } if( strcmp( key , "AlcoholPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAlcoholPerk] = strval( val ); } if( strcmp( key , "DrugPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pDrugPerk] = strval( val ); } if( strcmp( key , "MiserPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMiserPerk] = strval( val ); } if( strcmp( key , "PainPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPainPerk] = strval( val ); } if( strcmp( key , "TraderPerk" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTraderPerk] = strval( val ); } if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); } if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pTut] = strval( val ); } if( strcmp( key , "Mission" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMissionNr] = strval( val ); } if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarns] = strval( val ); } if( strcmp( key , "FactionWarns" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFACWarns] = strval( val ); } if( strcmp( key , "Adjustable" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdjustable] = strval( val ); } if( strcmp( key , "Fuel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFuel] = strval( val ); } if( strcmp( key , "Married" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMarried] = strval( val ); } if( strcmp( key , "MarriedTo" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(PlayerInfo[playerid][pMarriedTo], val, 0, strlen(val)-1, 255); } if( strcmp( key , "Crack" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCrack] = strval( val ); } //if( strcmp( key , "CabinetTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCabinetTime] = strval( val ); } if( strcmp( key , "RobSkill" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRobSkill] = strval( val ); } if( strcmp( key , "Rob" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pRob] = strval( val ); } if( strcmp( key , "VirWorld" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pVirWorld] = strval( val ); } if( strcmp( key , "pInteriorNr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pInteriorNr] = strval( val ); } if( strcmp( key , "HouseEntered" , true ) == 0 ) { val = ini_GetValue( Data ); HouseEntered[playerid] = strval( val ); } if( strcmp( key , "Instr" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pKi] = strval( val ); } if( strcmp( key , "Car1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey1] = strval( val ); } if( strcmp( key , "Car2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcarkey2] = strval( val ); } }//end while fclose(UserFile);//close the file after everything has been read in the while } else { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"\n{FFFFFF}Parola incorecta pentru acest cont - {FF0000}%s\n\n\n\n\n\n{FFFFFF}Introduceti din nou parola corecta.",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{FF0000}PAROLA GRESITA",loginstring,"Intra","Iesi"); fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } return 1; } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); CurrentMoney[playerid] = PlayerInfo[playerid][pCash]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pExp] = 0; PlayerInfo[playerid][pLevel] = 3; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 50.0; PlayerInfo[playerid][pPos_x] = 446.2936; PlayerInfo[playerid][pPos_y] = -18.3816; PlayerInfo[playerid][pPos_z] = 1001.1328; PlayerInfo[playerid][pInt] = 1; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 183; new randphone = 1000 + random(8999);//minimum 1000 max 9999 //giving one at the start PlayerInfo[playerid][pPnumber] = randphone; PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; PlayerInfo[playerid][pAccount] = 1000000; PlayerInfo[playerid][pReg] = 1; GivePlayerMoney(playerid, 5000); } if(PlayerInfo[playerid][pLevel] == -999) //autoban { Ban(playerid); } else if(PlayerInfo[playerid][pCK] > 0) { Kick(playerid); } SendClientMessage(playerid, 0x91C4CFF, " "); SendClientMessage(playerid, 0x91C4CFF, " "); SendClientMessage(playerid, 0x91C4CFF, " "); SendClientMessage(playerid, 0x91C4CFF, " "); SendClientMessage(playerid, COLOR_LIGHTBLUE, "====================================================================="); // 1 format(string2, sizeof(string2), "- Bun venit %s.",playername2); // 2 SendClientMessage(playerid, COLOR_WHITE,string2); printf("%s has logged in.",playername2); format(string2, sizeof(string2), "- Current Level %d.",PlayerInfo[playerid][pLevel]); // 5 SendClientMessage(playerid, COLOR_WHITE,string2); if (PlayerInfo[playerid][pAdmin] == 1) { format(string2, sizeof(string2), "- Admin level %d.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_RED,string2); } if (PlayerInfo[playerid][pAdmin] == 2) { format(string2, sizeof(string2), "- Admin level %d.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_RED,string2); } if (PlayerInfo[playerid][pAdmin] == 3) { format(string2, sizeof(string2), "- Admin level %d.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_RED,string2); } if (PlayerInfo[playerid][pAdmin] == 4) { format(string2, sizeof(string2), "- Admin level %d.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_RED,string2); } if (PlayerInfo[playerid][pAdmin] == 1337) { format(string2, sizeof(string2), "- Admin level %d.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_RED,string2); } if (PlayerInfo[playerid][pAdmin] == 1338) { format(string2, sizeof(string2), "- Admin level %d.",PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_RED,string2); } format(string2, sizeof(string2), "- Bani %d$ & %d Respect Points.",PlayerInfo[playerid][pCash], PlayerInfo[playerid][pExp]); // 5 SendClientMessage(playerid, COLOR_WHITE,string2); SendClientMessage(playerid, COLOR_LIGHTBLUE, "====================================================================="); // 6 SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1); if(gTeam[playerid] == 0) { gTeam[playerid] = 3; } else { gTeam[playerid] = PlayerInfo[playerid][pTeam]; } gPlayerLogged[playerid] = 1; SpawnPlayer(playerid); format(tmp2, sizeof(tmp2), "~w~Bun venit ~n~~r~~h~ %s", playername2); DateProp(playerid); GameTextForPlayer(playerid, tmp2, 300, 1); SendClientMessage(playerid, COLOR_YELLOW, motd); if(PlayerInfo[playerid][pFMember] < 255) { format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]); SendClientMessage(playerid, COLOR_YELLOW, tmp2); } } return 1; }
-
if(response) { if(dialogid == 12346 || dialogid == 12347) { if(strlen(inputtext)) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } else { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"\n{FFFFFF}Parola incorecta pentru acest cont - {FF0000}%s\n\n\n\n\n\nIntroduceti din nou parola corecta.",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"{FF0000}PAROLA GRESITA",loginstring,"Intra","Iesi"); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } } } if(dialogid == 12345) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Users/%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 tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerRegister(playerid,tmppass); } else { new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"{FFFFFF}Bine ai venit, {FF0000}%s\n{FFFFFF}Tu nu esti inregistrat cu acest cont, va rugam sa va inregistrati.\n\n\n\nScrie parola aici {55FF55}- Va recomandam sa fie de minim 6 caractere.",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Inregistrare",regstring,"Inregistrare","Iesi"); } } } else { Kick(playerid); } return 1; }
Poftim
-
Salut azi din greseala am scris parola gresit la cont si am vazut ca s-a logat. Am iesit de pe server am bagat alta parola pusa la misto, surpriza merge. Cum rezolv acest bug? Va rog sa ma ajutati.
-
Am rezolvat problema, mi-ai fost de mare ajutor :X
Multumesc, -IcE-
-
Exact asa am facut si nu a vrut....apare la mod Unknow )
-
Salut baieti, am si eu o problema am un gamemode care l-am configurat dupa bunul plac pe windows a mers perfect. Acum cand l-am urcat pe host care este pe Linux imi apare la mode Unknow sau ceva de genu.
Aveti o solutie...?
-
pai cand am dat register contu a apraut in mysql da in scriptfiles nimic...
-
acu dupa problema aia am probleme cu /login.
Deci fericit dupa ce am reusit sa fac aia, intru pe server spune sa dau /register parola, scriu o parola dau /login parola si serveru ia restart si se inchide din cauza unui crash .
-------------------------- SA-MP Server: 0.3b R2 Exception At Address: 0x609C1D91 Registers: EAX: 0x00000001 EBX: 0x01912894 ECX: 0x00000000 EDX: 0x00000000 ESI: 0x01325C38 EDI: 0x01325C38 EBP: 0x0012F674 ESP: 0x0012F64C EFLAGS: 0x00010246 Stack: +0000: 0x01325C38 0x00733210 0x00000001 0x00927248 +0010: 0x000000FF 0x00000101 0x00000061 0x009241F0 +0020: 0x00927210 0x00000001 0x01976448 0x00401096 +0030: 0x01325C38 0x021BE83C 0x01A8B640 0x00402BB3 +0040: 0x01325C38 0x00000094 0x0012F6AC 0x021BE83C +0050: 0x00000000 0x01325C38 0x00000000 0xFBCC1901 +0060: 0x00000001 0x007330F8 0x007331FC 0x00735814 +0070: 0x00731858 0x0073499C 0x00731858 0x01912894 +0080: 0x01A8B640 0x00000000 0x01910020 0x00178DAC +0090: 0x00486CFB 0x01325C38 0x0012F714 0x00000092 +00A0: 0x01325C38 0x00000000 0x01325C38 0x0012F724 +00B0: 0x0012F718 0x0136CCD0 0x021BCE58 0x00000000 +00C0: 0x00000000 0x0136CCD0 0x00000000 0x021BCE58 +00D0: 0x0049C5C5 0x00000092 0x00731818 0x0012F860 +00E0: 0x00A2ABD0 0x0012FC8C 0x0000000F 0x000000A0 +00F0: 0x000000A0 0x00000098 0x0012F860 0xFFFFFF00 +0100: 0x7C910222 0x7C91019B 0x7C9101DB 0x0012FA68 +0110: 0x00000007 0x00A2ABD0 0x44898BFD 0x4386923D +0120: 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF +0130: 0x0012F7B0 0x00A20000 0x7C910222 0x00000002
Aveti o rezolvare?
-
Am rezolvat tot trebuia sa scot asta din Gm sa o inchid sa nu mai functioneze.
ASTA CREAZA ACEA EROARE.
samp_mysql_free_result()
Ca sa nu mai aveti eroarea, o stergetii sau ii puneti ////samp_mysql_free_result()
-
#include <a_samp> #include <a_sampmysql> #include <core> #include <float> #include <a_npc> #include <time> #include <file> #include <utils> #include <streamer> #include <morphinc>
-
il am si are 3mb
-
tot nu merge
-
Deci eu am plecat de la mtrp-final, am bagat mysql si acu cand pornesc serveru imi da asta.
SA-MP Dedicated Server ---------------------- v0.3b R2, (C)2005-2010 SA-MP Team [19:18:35] filterscripts = "" (string) [19:18:35] [19:18:35] Server Plugins [19:18:35] -------------- [19:18:35] Loading plugin: streamer [19:18:35] *** Streamer Plugin v2.3.8 by Incognito loaded *** [19:18:35] Loaded. [19:18:35] Loading plugin: Whirlpool [19:18:35] [19:18:35] ================== [19:18:35] [19:18:35] Whirlpool loaded [19:18:35] [19:18:35] ================== [19:18:35] [19:18:35] Loaded. [19:18:35] Loaded 2 plugins. [19:18:35] [19:18:35] Filter Scripts [19:18:35] --------------- [19:18:35] Loaded 0 filter scripts. [19:18:35] Script[gamemodes/RP.amx]: Run time error 19: "File or function is not found" [19:18:35] Number of vehicle models: 0 [19:18:44] --- Server Shutting Down. [19:18:44] *** Streamer Plugin v2.3.8 by Incognito unloaded *** [19:18:44] [19:18:44] ==================== [19:18:44] [19:18:44] Whirlpool unloaded [19:18:44] [19:18:44] ==================== [19:18:44]
Nu stiu ce sa ii mai fac i-am pus si plugins streamer si degeaba..
Am gasit ca trebuie bagat si pluginu whirlpool, l-am bagat si degeaba...
Sper sa ma ajutati.
-
Aici am incercat sa fac si eu o mapa pentru serverele RolePlay.
Imagini:
Parcare
http://www.img-share.net/uploads/85mta-screen0028.jpg
http://www.img-share.net/uploads/98mta-screen0029.jpg
Rampa pentru reducerea vitezei
http://www.img-share.net/uploads/173mta-screen0031.jpg
http://www.img-share.net/uploads/174mta-screen0033.jpg
http://www.img-share.net/uploads/112mta-screen0034.jpg
http://www.img-share.net/uploads/35mta-screen0035.jpg
http://www.img-share.net/uploads/93mta-screen0036.jpg
http://www.img-share.net/uploads/68mta-screen0037.jpg
http://www.img-share.net/uploads/140mta-screen0038.jpg
Bara LSPD
http://www.img-share.net/uploads/192mta-screen0039.jpg
CreateObject(5152,1427.37182600,-1723.31420900,12.55600800,0.00000000,24.06422740,-181.71889323); //object(2) CreateObject(5152,1431.80090300,-1723.41333000,12.58100800,0.00000000,23.20479070,-181.71883594); //object(3) CreateObject(5152,1440.88439900,-1730.24450700,12.55600800,0.00000000,23.20479070,-270.07740772); //object(4) CreateObject(5152,1440.80212400,-1734.64709500,12.55600800,0.00000000,23.20479070,-271.71893181); //object(5) CreateObject(5152,1391.52124000,-1863.52197300,12.58100800,0.00000000,24.06422740,0.00000000); //object(7) CreateObject(5152,1386.73071300,-1863.55175800,12.63100700,0.00000000,24.06422740,0.00000000); //object(8) CreateObject(5152,1541.41589400,-1874.79138200,12.58100800,0.00000000,24.06422740,-89.99998128); //object(9) CreateObject(5152,1541.49804700,-1870.25439500,12.65600700,0.00000000,24.06422740,-89.99998128); //object(10) CreateObject(5152,1572.09533700,-1740.82019000,12.53100900,0.00000000,24.06422740,-179.99996255); //object(11) CreateObject(5152,1567.40515100,-1740.84411600,12.55600800,0.00000000,24.06422740,-179.99996255); //object(12) CreateObject(5152,1359.71960400,-1419.46777300,12.60600800,0.00000000,24.06422740,-179.99996255); //object(13) CreateObject(5152,1354.99353000,-1419.51074200,12.56380400,0.00000000,24.06422740,-179.99996255); //object(14) CreateObject(5152,1333.89880400,-1391.23474100,12.67561400,0.00000000,22.34535401,-270.00000112); //object(15) CreateObject(5152,1333.90185500,-1395.60986300,12.62569100,0.00000000,24.06422740,-270.00000112); //object(16) CreateObject(5152,1333.90075700,-1399.96911600,12.63540700,0.00000000,24.06422740,-270.00000112); //object(17) CreateObject(5152,1333.89990200,-1404.36621100,12.56968100,0.00000000,22.34535401,-270.00000112); //object(18) CreateObject(5152,1333.89331100,-1408.77002000,12.53963900,0.00000000,23.20479070,-270.00000112); //object(19) CreateObject(5152,1343.75854500,-1034.13256800,25.67801500,0.00000000,24.06422740,-270.00000112); //object(20) CreateObject(5152,1343.75488300,-1038.62646500,25.70563100,0.00000000,24.06422740,-269.14056443); //object(21) CreateObject(5152,619.65216100,-1227.99072300,17.25937300,0.00000000,23.20479070,-337.50004438); //object(22) CreateObject(5152,623.70294200,-1226.32775900,17.28257000,0.00000000,23.20479070,-337.50004438); //object(23) CreateObject(5152,627.68707300,-1224.67919900,17.30757000,0.00000000,24.06422740,22.49999532); //object(25) CreateObject(5152,631.75640900,-1223.03637700,17.27530100,0.00000000,24.06422740,22.49999532); //object(26) CreateObject(5152,635.80896000,-1221.39099100,17.23257100,0.00000000,24.06422740,22.49999532); //object(27) CreateObject(8042,349.91867100,-1787.05261200,9.90002400,0.00000000,0.00000000,101.25000758); //object(40) CreateObject(997,319.87307700,-1787.19958500,3.81290400,0.00000000,0.00000000,-89.99998128); //object(41) CreateObject(997,316.58044400,-1787.09838900,3.75456700,0.00000000,0.00000000,-89.99998128); //object(42) CreateObject(997,313.48120100,-1787.15930200,3.69906800,0.00000000,0.00000000,-89.99998128); //object(43) CreateObject(997,310.24343900,-1787.23486300,3.66546000,0.00000000,0.00000000,-89.99998128); //object(45) CreateObject(997,322.97586100,-1787.13842800,3.85351100,0.00000000,0.00000000,-89.99998128); //object(46) CreateObject(997,326.33413700,-1787.18298300,3.91051700,0.00000000,0.00000000,-89.99998128); //object(47) CreateObject(997,329.54937700,-1787.22961400,3.96887000,0.00000000,0.00000000,-89.99998128); //object(48) CreateObject(997,332.71594200,-1787.26672400,3.98597800,0.00000000,0.00000000,-89.99998128); //object(49) CreateObject(997,335.92810100,-1787.17773400,4.01735800,0.00000000,0.00000000,-89.99998128); //object(50) CreateObject(997,339.21884200,-1787.26989700,4.03924300,0.00000000,0.00000000,-89.99998128); //object(51) CreateObject(997,309.99136400,-1807.79235800,3.55967700,0.00000000,0.00000000,-89.99998128); //object(52) CreateObject(997,313.18280000,-1807.75158700,3.59337300,0.00000000,0.00000000,-89.99998128); //object(53) CreateObject(997,316.38549800,-1807.76452600,3.58563300,0.00000000,0.00000000,-89.99998128); //object(54) CreateObject(997,319.48815900,-1807.77600100,3.58837400,0.00000000,0.00000000,-89.99998128); //object(55) CreateObject(997,322.72583000,-1807.82177700,3.56575500,0.00000000,0.00000000,-89.99998128); //object(56) CreateObject(997,326.13375900,-1807.80004900,3.58142000,0.00000000,0.00000000,-89.99998128); //object(57) CreateObject(997,329.29507400,-1807.73413100,3.57212400,0.00000000,0.00000000,-89.99998128); //object(58) CreateObject(997,332.44967700,-1807.62756300,3.57155700,0.00000000,0.00000000,-89.99998128); //object(59) CreateObject(997,335.74121100,-1807.71276900,3.59970800,0.00000000,0.00000000,-89.99998128); //object(60) CreateObject(997,338.94253500,-1807.69567900,3.63074300,0.00000000,0.00000000,-89.99998128); //object(61) CreateObject(997,342.25589000,-1807.72937000,3.60873300,0.00000000,0.00000000,-89.99998128); //object(62) CreateObject(997,345.53900100,-1807.66564900,3.59835700,0.00000000,0.00000000,-89.99998128); //object(63) CreateObject(997,348.71340900,-1807.72241200,3.60057400,0.00000000,0.00000000,-89.99998128); //object(64) CreateObject(997,351.95840500,-1807.67932100,3.61845600,0.00000000,0.00000000,-89.99998128); //object(65) CreateObject(997,355.07537800,-1807.73742700,3.63415000,0.00000000,0.00000000,-89.99998128); //object(66) CreateObject(997,358.51803600,-1807.90844700,3.63252400,0.00000000,0.00000000,-89.99998128); //object(67) CreateObject(996,1537.47607400,-1664.83471700,13.13156800,0.00000000,0.00000000,-89.99998128); //object(67) CreateObject(996,1537.46252400,-1673.18029800,13.13156800,0.00000000,0.00000000,-89.99998128); //object(68) CreateObject(997,1541.32177700,-1877.69458000,12.64719300,0.00000000,0.00000000,-89.99998128); //object(70) CreateObject(997,1541.45593300,-1864.01440400,12.64719300,0.00000000,0.00000000,-89.99998128); //object(71) CreateObject(997,1440.61645500,-1737.70800800,12.64719300,0.00000000,0.00000000,-89.99998128); //object(72) CreateObject(997,1440.74206500,-1723.57482900,12.64719300,0.00000000,0.00000000,-89.99998128); //object(73) CreateObject(997,1438.94519000,-1723.43518100,12.64719300,0.00000000,0.00000000,-180.00001985); //object(74) CreateObject(997,1423.54809600,-1723.21203600,12.64719300,0.00000000,0.00000000,-180.00001985); //object(75) CreateObject(970,332.10052500,-1817.59716800,3.82411000,0.00000000,0.00000000,0.00000000); //object(76) CreateObject(970,336.38714600,-1817.60253900,3.82075600,0.00000000,0.00000000,0.00000000); //object(77) CreateObject(970,308.22985800,-1814.97155800,3.88472200,0.00000000,0.00000000,-89.99998128); //object(78) CreateObject(970,336.90780600,-1785.96740700,4.57411300,0.00000000,0.85943669 begin_of_the_skype_highlighting              0.85943669      end_of_the_skype_highlighting,-177.42165247); //object(79) CreateObject(970,332.53045700,-1786.06481900,4.47868100,0.00000000,0.85943669,-180.00001985); //object(80) CreateObject(970,328.14968900,-1785.98388700,4.37897200,0.00000000,0.85943669,-180.85945654); //object(81) CreateObject(970,323.73004200,-1786.09606900,4.33053600,0.00000000,0.85943669,-177.42165247); //object(82) CreateObject(970,319.41464200,-1786.13684100,4.26066100,0.00000000,0.85943669,-180.85945654); //object(83) CreateObject(970,315.08877600,-1786.02526900,4.17212300,0.00000000,0.85943669,-180.85945654); //object(84) CreateObject(970,310.80670200,-1785.93371600,4.11060800,0.00000000,0.85943669,-180.85945654); //object(85) CreateObject(970,360.14776600,-1800.36779800,4.40188500,0.00000000,-0.85943669,-265.78028155); //object(86) CreateObject(970,359.78659100,-1796.14990200,4.44983300,0.00000000,-0.85943669,-265.78028155); //object(87) CreateObject(970,359.48977700,-1791.99426300,4.56644900,0.00000000,-0.85943669,-265.78028155); //object(88) CreateObject(970,359.30575600,-1790.62036100,4.60010200,0.00000000,-0.85943669,-265.78028155); //object(89)
-
Salut, m-am apucat sa imi fac propriul Gm plecand de la mtrp-final, dar dupa incercarea de a scoate MysQL am inceput sa iau erorile astea.
Sau daca las MySQL merge sa pun sa urce informatiile direct pe un site free, fara sa umblu cu xampp ca nustiu sa fac cu xampp plus ca am ip dinamic.
Sper sa ma ajutati sa le rezolv.
D:\Download\Gamemod samp\SZRP.pwn(2104) : error 004: function "SafeGivePlayerMoney" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2133) : error 004: function "SafeGivePlayerMoney" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2169) : error 004: function "SafeResetPlayerWeapons" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2170) : error 004: function "SafeGivePlayerWeapon" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2197) : error 004: function "SafeResetPlayerWeapons" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2209) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2220) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2238) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2249) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2268) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2284) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2297) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2311) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2325) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2340) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2357) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2369) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2379) : error 004: function "ClearChatbox" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2587) : error 004: function "SetPlayerToTeamColor" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2612) : error 004: function "SetPlayerToTeamColor" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2632) : error 004: function "SetPlayerCriminal" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2637) : error 004: function "SetPlayerCriminal" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2661) : error 004: function "PlayerToPoint" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2665) : error 004: function "PlayerToPoint" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2730) : error 004: function "PlayerToPoint" is not implemented D:\Download\Gamemod samp\SZRP.pwn(2734) : error 004: function "PlayerToPoint" is not implemented Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 26 Errors.
-
spuneti-mi si mie id la obiectu asta din mijlocul strazii.
-
Poftim a_zones
http://www.server-upload.com/v9fef3k7ryt7
-
BoBiTzaa - Multumesc, am scos comanda aia sper sa nu mai am probleme de azi inainte..
-
deci incontinuare playeri iau ban.....parola rcon nu are cum sa o stie cineva...ca o schimb in fiecare zi...
Gamemodu este cel a lui MrIllusion, cu unele schimbari...
-
deci am o problema mare serveru meu e pe 0.3a si de vro 4 zile serveru imi baneaza adminii/playerii aiurea...
Ma puteti ajuta sa o rezolv?
-
Salut as dorii sa schimb si eu interiorul la HQ Hitmanilor, ca e pigpen si intra toti in Hq hitmanilor si nu e bn.
Bug Servieta
in Arhivă probleme
Posted
Ok, am luat FS cashbox dar am o problema cu acest Fs.
Problema consta:
- fs nu are comanda /locate si doar goto, Si acest /goto din fs l-am schimbat eu in locate.
- Merge un joc la al2lea se scrica.
Poza: