Jump to content

MaXeP

Membru
  • Posts

    7
  • Joined

  • Last visited

    Never

MaXeP's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Am rezolvat! Multumesc pentru ajutor! :)
  2. Salut! Am o problema cu /givemoneyall si /givemoney. Vreau sa dau bani la playeri si cand scriu /givemoney nume suma zice ca nu am acces la comanda la fel face si cu /givemoneyall (Precizez ca am admin level 8 adica fondator este cel mai mare). Am incercat sa ma conectez si cu rcon si tot degeaba. Am schimbat comanda si imi da niste erori. Daca ma puteti ajuta comanda este: Pentru /givemoneyall [pawn] if(strcmp(cmd, "/givemoneyall", true) == 0) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "{BFCOC2}Ne pare rau, dar nu esti logat pentru a utiliza aceata comanda!"); return 1; } new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(EsteManager(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/givemoneyall [amount]"); return 1; } moneys = strval(tmp); if(moneys < 1) { SendClientMessage(playerid, COLOR_GRAD1, "Nu poti sa dai mai putin de 1$."); return 1; } foreach(Player, i) { GivePlayerCash(i, moneys); format(string, sizeof(string), "{7FEF88}Administrator {7FEFE0}%s {7FEF88}a dat cate{E93CAC} $%d {7FEF88}tuturor playeri online.", PlayerData[playerid][pNume], moneys); PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0); SendClientMessage(i, COLOR_BLUE, string); new hour,minute,second; new year, month,day; gettime(hour,minute,second); getdate(year, month, day); format(string, sizeof(string), "%s a dat (/givemoneyall) $%d la %s (%d/%d/%d ora: %d:%d:%d )", PlayerData[playerid][pNume], moneys, PlayerData[pNume], day, month, year, hour,minute,second); PayLog(string); } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu poti folosi aceasta comanda!"); return 1; } return 1; }[/pawn] Pentru /givemoney [pawn] if(strcmp(cmd, "/givemoney", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "{ffffff}Ne pare rau, dar nu esti logat pentru a utiliza aceata comanda!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/givemoney [playerid/PartOfName] [bani] [motiv]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(EsteManager(playerid)) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { new year, month,day; getdate(year, month, day); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[200]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendUsage(playerid,"/givemoney [playerid/PartOfName] [suma] [motiv]"); return 1; } ConsumingMoney[playa] = 1; GivePlayerCash(playa, money); GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, "{C8D4D4}Adm{DB8E12}Warning:{FFFFFF} %s i-a setat bani la $%d la %s, Motiv: %s.", sendername, money, giveplayer, (result)); ABroadCast(COLOR_LIGHTRED,string,1); format(string, sizeof(string), "[WARNING]: %s i-a dat $%d la %s, Motiv: %s . (%d-%d-%d)", sendername, money, giveplayer, (result), month, day, year); AdminMoneyLog(string); } } } else { SendError(playerid,cmd); } } return 1; } [/pawn] Multumesc (Precizez ca, comanda este aceea fara erori)
  3. Salut ! Am si eu nevoie de putin ajutor legat de un gm La compiled imi da 6 erori: [pawn]C:\Documents and Settings\MaXeP\Desktop\RPG\pawno\include\JunkBuster.inc(69) : error 021: symbol already defined: "FALSE" C:\Documents and Settings\MaXeP\Desktop\RPG\pawno\include\JunkBuster.inc(70) : error 021: symbol already defined: "TRUE" C:\Documents and Settings\MaXeP\Desktop\RPG\pawno\include\JunkBuster.inc(3197) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint") C:\Documents and Settings\MaXeP\Desktop\RPG\gamemodes\rpg.pwn(59) : warning 235: public function lacks forward declaration (symbol "Fly") C:\Documents and Settings\MaXeP\Desktop\RPG\gamemodes\rpg.pwn(105) : error 017: undefined symbol "OnFly" C:\Documents and Settings\MaXeP\Desktop\RPG\gamemodes\rpg.pwn(105) : warning 215: expression has no effect C:\Documents and Settings\MaXeP\Desktop\RPG\gamemodes\rpg.pwn(105) : error 001: expected token: ";", but found "]" C:\Documents and Settings\MaXeP\Desktop\RPG\gamemodes\rpg.pwn(105) : error 029: invalid expression, assumed zero C:\Documents and Settings\MaXeP\Desktop\RPG\gamemodes\rpg.pwn(105) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. [/pawn] la linea 69 si 70 am : [pawn]GetPlayerCameraFrontVector(playerid,x,y,z); v_x = x+0.1;[/pawn] la 105 : [pawn]if(!OnFly[playerid]) SetTimerEx("Fly",100,false,"i",playerid); return 1;[/pawn] Multumesc
  4. Puteti inchide topicul am rezolvat ! Mersi vladutc ca ai incercat sa ma ajuti !
  5. Nu merge tot asa face! In oneplayerconnect am asa [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerConnect=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public OnPlayerConnect(playerid) // fly { /* PPos[playerid][0] = 0; PPos[playerid][1] = 0; PPos[playerid][2] = 0; AFKMins[playerid] = 0; new strq[200]; GetPlayerVersion(playerid,strq,sizeof(strq)); printf("Version: %s",strq); gpci(playerid,strq,sizeof(strq)); printf("Client ID: %s",strq); if(!strcmp(strq,DISALLOWED_ADDRESS,true))BanEx(playerid,"RakSAMP"); new ConnIP[16]; GetPlayerIp(playerid,ConnIP,16); new compare_IP[16]; new number_IP = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerIp(i,compare_IP,16); if(!strcmp(compare_IP,ConnIP)) number_IP++; } } if((GetTickCount() - Join_Stamp) < Time_Limit ) exceed=1; else exceed=0; if(strcmp(ban_s, ConnIP, false) == 0 && exceed == 1 ) { Same_IP++; if(Same_IP > SAME_IP_CONNECT ) { Ban(playerid); Same_IP=0; } } else { Same_IP=0; } if(number_IP > IP_LIMIT ) Kick(playerid); GetStampIP(playerid); return 1; } stock GetStampIP(playerid){ new S_IP[16]; Join_Stamp=GetTickCount(); GetPlayerIp(playerid,S_IP,16); format(ban_s, 16, "%s", S_IP);*/ /*new strq[200]; GetPlayerVersion(playerid,strq,sizeof(strq)); printf("Version: %s",strq); gpci(playerid,strq,sizeof(strq)); printf("Client ID: %s",strq); if(!strcmp(strq,DISALLOWED_ADDRESS,true))BanEx(playerid,"RakSAMP");*/ //============================================ SetPlayerPos(playerid,1928.1525,-1269.2301,53.1797); SetPlayerCameraPos(playerid, 1928.1525,-1269.2301,55.1797); SetPlayerCameraLookAt(playerid, 1961.3317,-1188.6837,25.9612); // SetTimerEx("PlCon", 40000, 0, "d", playerid); // SetTimerEx("stop", 33000, 0, "d", playerid); // PlayAudioStreamForPlayer(playerid, "http://sky-zone.ro/mp3/snow.mp3"); ////sunet de loghare // if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid); // if(IsPlayerNPC(playerid)) return 1; // aici l-am pus, era la onplayerreq... // TextDrawShowForPlayer(playerid, TextdrawNew0); //TextDrawShowForPlayer(playerid, TextdrawNew1); new Killz[MAX_PLAYERS]; new Deathz[MAX_PLAYERS]; PlayerInfo[playerid][pAchievement15] = 0; Training[playerid] = 0; // PlayersOnline+=1; UpdateCountText(); // format(stringuu, sizeof(stringuu), "~w~Conturi: ~y~%s ~w~(~y~%s ~w~Banned) / Newest Account: ~y~%s ~w~/ Player Record : ~y~%d ~w~(~y~%s~w~)", number_format(GetAccountNumber()),number_format(GetBannedNumber()),GetNewestPlayer(),GetPlayerRecord(),GetRecordDate()); // TextDrawSetString(SrvStats); // TextDrawShowForPlayer(playerid, SrvStats); // TextDrawShowForPlayer(playerid, CasetaStats); /* TextDrawShowForPlayer(playerid, TextdrawConnect0); TextDrawShowForPlayer(playerid, TextdrawConnect1); TextDrawShowForPlayer(playerid, TextdrawConnect2); TextDrawShowForPlayer(playerid, TextdrawConnect3); TextDrawShowForPlayer(playerid, TextdrawConnect4); TextDrawShowForPlayer(playerid, TextdrawConnect5); TextDrawShowForPlayer(playerid, TextdrawConnect6); TextDrawShowForPlayer(playerid, TextdrawConnect7); TextDrawShowForPlayer(playerid, TextdrawConnect8); TextDrawShowForPlayer(playerid, TextdrawConnect9); TextDrawShowForPlayer(playerid, TextdrawConnect10); TextDrawShowForPlayer(playerid, TextdrawConnect11); TextDrawShowForPlayer(playerid, TextdrawConnect12); TextDrawShowForPlayer(playerid, TextdrawConnect13); TextDrawShowForPlayer(playerid, TextdrawConnect14); TextDrawShowForPlayer(playerid, TextdrawConnect15); TextDrawShowForPlayer(playerid, TextdrawConnect16); TextDrawShowForPlayer(playerid, TextdrawConnect17); TextDrawShowForPlayer(playerid, TextdrawConnect18); TextDrawShowForPlayer(playerid, TextdrawConnect19);*/ GivingBlowjob[playerid] = 0; Killz[playerid] = 0; Deathz[playerid] = 0; Seatbelt[playerid] = 0; Helmet[playerid] = 0; SetPlayerMapIcon(playerid, 3, 1782.0967,-1762.1346,14.8550, 3, MAPICON_GLOBAL); // Biserica SetPlayerMapIcon(playerid, 4, 329.2784,-1512.7916,36.0391, 55, COLOR_YELLOW); // DMV SetPlayerMapIcon(playerid, 5, 1539.0339,-1674.4899,13.5469, 30, COLOR_YELLOW); // LSPD SetPlayerMapIcon(playerid, 6, 1458.3479,-1013.4602,26.8438, 52, COLOR_YELLOW); // Bank //SetPlayerCheckpoint(playerid,1782.0967,-1762.1346,14.8550,3.0);// biserica din start new Text3D:schooll1 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll1, school1, 0.0, 0.0, 0.0); new Text3D:schooll2 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll2, school2, 0.0, 0.0, 0.0); new Text3D:schooll3 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll3, school3, 0.0, 0.0, 0.0); new Text3D:schooll4 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll4, school4, 0.0, 0.0, 0.0); new Text3D:schooll5 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll5, school5, 0.0, 0.0, 0.0); new Text3D:schooll6 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll6, school6, 0.0, 0.0, 0.0); new Text3D:schooll7 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll7, school7, 0.0, 0.0, 0.0); new Text3D:schooll8 = Create3DTextLabel("INSTRUCTOR",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(schooll8, school8, 0.0, 0.0, 0.0); new Text3D:civ46t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(civ46t, civ46, 0.0, 0.0, 0.0); new Text3D:civ47t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(civ47t, civ47, 0.0, 0.0, 0.0); new Text3D:civ48t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(civ48t, civ48, 0.0, 0.0, 0.0); new Text3D:dmv1t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv1t, dmv1, 0.0, 0.0, 0.0); new Text3D:dmv2t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv2t, dmv2, 0.0, 0.0, 0.0); new Text3D:dmv3t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv3t, dmv3, 0.0, 0.0, 0.0); new Text3D:dmv4t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv4t, dmv4, 0.0, 0.0, 0.0); new Text3D:dmv5t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv5t, dmv5, 0.0, 0.0, 0.0); new Text3D:dmv6t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv6t, dmv6, 0.0, 0.0, 0.0); new Text3D:dmv7t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv7t, dmv7, 0.0, 0.0, 0.0); new Text3D:dmv8t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv8t, dmv8, 0.0, 0.0, 0.0); new Text3D:dmv9t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv9t, dmv9, 0.0, 0.0, 0.0); new Text3D:dmv10t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv10t, dmv10, 0.0, 0.0, 0.0); new Text3D:dmv11t = Create3DTextLabel("~~~Test Permis Auto~~~",COLOR_3DTEXT,30.0,30.0,5.0,30.0,0); Attach3DTextLabelToVehicle(dmv11t, dmv11, 0.0, 0.0, 0.0); //so the timer can be executed again //SetTimerEx("Contract", 720000, 0, "d", playerid); Seatbelt[playerid] = 0; Helmet[playerid] = 0; PlayerInfo[playerid][spawnDance] = true; ApplyAnimation(playerid,"DANCING","DNCE_M_B", 4.0, 1, 0, 0, 0, 0); //preventing a bug for the animation not being applied the first time OnPlayerRequestClass is called if(Security != 0) { SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken."); Kick(playerid); return 1; } JustReported[playerid] = 0; PlayerNeedsHelp[playerid] = 0; UsedCrack[playerid] = 0; CrackOffer[playerid] = 999; CrackPrice[playerid] = 0; CrackGram[playerid] = 0; STIPlayer[playerid] = 0; Searching[playerid] = 0; ReduceTime[playerid] = 0; gActivePlayers[playerid]++; numplayers++; gPlayerUsingLoopingAnim[playerid] = 1; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; HideHack[playerid] = 1; SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; ApprovedLawyer[playerid] = 0; CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; KickPlayer[playerid] = 0; CurrentMoney[playerid] = 0; UsedFind[playerid] = 0; CP[playerid] = 0; Robbed[playerid] = 0; SpawnChange[playerid] = 1; CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; CarCalls[playerid] = 0; RobbedTime[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; Rope[playerid] = 0; STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0; RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0; DrugOffer[playerid] = 999; HouseEntered[playerid] = 255; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; OnCK[playerid] = 999; GettingCK[playerid] = 999; DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0; JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0; WantedPoints[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; WantedLevel[playerid] = 0; TestFishes[playerid] = 0; BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0; SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0; Spectate[playerid] = 255; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0; Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0; WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0; ScriptMoney[playerid] = 0; ScriptMoneyUpdated[playerid] = 0; gLastCar[playerid] = 0; FirstSpawn[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; gSpeedo[playerid] = 0; gGas[playerid] = 0; gPlayerLogged[playerid] = 0; gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0; gPlayerSpawned[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0; PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; PlayerInfo[playerid][pDuty] = 0; StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; MatsHolding[playerid] = 0; TutTime[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; PlayerInfo[playerid][pBani] = dollah; NoFuel[playerid] = 0; HireCar[playerid] = 299; PlayersChannel[playerid] = 999; TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999; Locator[playerid] = 0; PlayerOnMission[playerid] = 0; MissionCheckpoint[playerid] = 0; WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; OwnableCarOffer[playerid] = 999; OwnableCarID[playerid] = 0; OwnableCarPrice[playerid] = 0; OwnableBoatOffer[playerid] = 999; OwnableBoatID[playerid] = 0; OwnableBoatPrice[playerid] = 0; OwnableeliOffer[playerid] = 999; OwnableeliID[playerid] = 0; OwnableeliPrice[playerid] = 0; BlindFold[playerid] = 0; GivePlayerMoney(playerid,PlayerInfo[playerid][pBani]); swat[playerid] = 0; admind[playerid] = 0; adminafk[playerid] = 0; FarmerVar[playerid] = 0; FarmerPickup[playerid][0] = 0; PlayerInfo[playerid][pLevel] = 0; PlayerInfo[playerid][pAdminServer] = 0; PlayerInfo[playerid][pHelperLevel] = 0; PlayerInfo[playerid][pDonateRank] = 2; PlayerInfo[playerid][pHackTog] = 0; PlayerInfo[playerid][gPupgrade] = 0; PlayerInfo[playerid][pConnectTime] = 0; PlayerInfo[playerid][pReg] = 0; PlayerInfo[playerid][pSex] = 0; PlayerInfo[playerid] = 0; PlayerInfo[playerid][pFstyles] = 0; PlayerInfo[playerid][pWstyles] = 0; PlayerInfo[playerid][pOrigin] = 0; PlayerInfo[playerid][pExp] = 0; PlayerInfo[playerid][pAcont] = 0; PlayerInfo[playerid][pCrimes] = 0; PlayerInfo[playerid][pDeaths] = 0; PlayerInfo[playerid][pArrested] = 0; PlayerInfo[playerid][pWantedDeaths] = 0; PlayerInfo[playerid][pPhoneBook] = 0; PlayerInfo[playerid][pLottoNr] = 0; PlayerInfo[playerid][pFishes] = 0; PlayerInfo[playerid][pBiggestFish] = 0; PlayerInfo[playerid][pJob] = 0; PlayerInfo[playerid][pPayCheck] = 0; PlayerInfo[playerid][pHeadValue] = 0; PlayerInfo[playerid][pJailed] = 0; PlayerInfo[playerid][pJailTime] = 0; PlayerInfo[playerid][pMats] = 0; PlayerInfo[playerid][pDrugs] = 0; PlayerInfo[playerid][pLider] = 0; PlayerInfo[playerid][pMembru] = 0; PlayerInfo[playerid][pFMembru] = 255; PlayerInfo[playerid][pRank] = 0; PlayerInfo[playerid][pChar] = 0; PlayerInfo[playerid][pContractTime] = 0; PlayerInfo[playerid][pDetSkill] = 0; PlayerInfo[playerid][pSexSkill] = 0; PlayerInfo[playerid][pBoxSkill] = 0; PlayerInfo[playerid][pLawSkill] = 0; PlayerInfo[playerid][pMechSkill] = 0; PlayerInfo[playerid][pJackSkill] = 0; PlayerInfo[playerid][pCarSkill] = 0; PlayerInfo[playerid][pNewsSkill] = 0; PlayerInfo[playerid][pDrugsSkill] = 0; PlayerInfo[playerid][pCookSkill] = 0; PlayerInfo[playerid][pFishSkill] = 0; PlayerInfo[playerid][pSHealth] = 100.0; PlayerInfo[playerid][pHealth] = 100.0; PlayerInfo[playerid][pPos_x] = 2246.6; PlayerInfo[playerid][pPos_y] = -1161.9; PlayerInfo[playerid][pPos_z] = 1029.7; PlayerInfo[playerid][pInt] = 15; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 60; PlayerInfo[playerid][pDuty] = 0; PlayerInfo[playerid][pPtelefon] = 0; PlayerInfo[playerid][pPcasakey] = 255; PlayerInfo[playerid][pPcheiem] = 999; PlayerInfo[playerid][pPcheiem2] = 999; PlayerInfo[playerid][pFwarn] = 0; PlayerInfo[playerid][pPboatkeY] = 999; PlayerInfo[playerid][pPelikeY] = 999; PlayerInfo[playerid][pPbizkey] = 255; PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pFlyLic] = 0; PlayerInfo[playerid][pBoatLic] = 0; PlayerInfo[playerid][pFishLic] = 0; PlayerInfo[playerid][pGunLic] = 0; PlayerInfo[playerid][pGun1] = 0; PlayerInfo[playerid][pGun2] = 0; PlayerInfo[playerid][pGun3] = 0; PlayerInfo[playerid][pGun4] = 0; PlayerInfo[playerid][pAmmo1] = 0; PlayerInfo[playerid][pAmmo2] = 0; PlayerInfo[playerid][pAmmo3] = 0; PlayerInfo[playerid][pAmmo4] = 0; PlayerInfo[playerid][pCarTime] = 0; PlayerInfo[playerid][pPayDay] = 0; PlayerInfo[playerid][pPayDayHad] = 0; PlayerInfo[playerid][pCDPlayer] = 0; PlayerInfo[playerid][pWins] = 0; PlayerInfo[playerid][pLoses] = 0; PlayerInfo[playerid][pAlcoholPerk] = 0; PlayerInfo[playerid][pDrugPerk] = 0; PlayerInfo[playerid][pMiserPerk] = 0; PlayerInfo[playerid][pPainPerk] = 0; PlayerInfo[playerid][pTraderPerk] = 0; PlayerInfo[playerid][pTut] = 0; PlayerInfo[playerid][pMask] = 0; PlayerInfo[playerid][pWarKill] = 0; PlayerInfo[playerid][pCallRep] = 0; PlayerInfo[playerid][pAwarn] = 0; PlayerInfo[playerid][pMasinaq] = 0; PlayerInfo[playerid][pMasinaq2] = 0; PlayerInfo[playerid][Pwipe] = 0; PlayerInfo[playerid][pLock] = 0; PlayerInfo[playerid][ptWarKill] = 0; PlayerInfo[playerid][pMissionNr] = 0; PlayerInfo[playerid][pWarns] = 0; PlayerInfo[playerid][pFuel] = 0; PlayerInfo[playerid][pAdjustable] = 0; PlayerInfo[playerid][pPassport] = 0; PlayerInfo[playerid][pCarnet2] = 0; PlayerInfo[playerid][pBuletin] = 0; PlayerInfo[playerid][pCrack] = 0; PlayerInfo[playerid][pCabinetTime] = 0; ClearFishes(playerid); ClearCooking(playerid); ClearGroceries(playerid); ClearMarriage(playerid); SetTimerEx("ggb", 60000, false, "i", playerid); //-------------------------------- PPos[playerid][0] = 0; PPos[playerid][1] = 0; PPos[playerid][2] = 0; AFKMins[playerid] = 0; new strq[200]; GetPlayerVersion(playerid,strq,sizeof(strq)); printf("Version: %s",strq); gpci(playerid,strq,sizeof(strq)); printf("Client ID: %s",strq); if(!strcmp(strq,DISALLOWED_ADDRESS,true) )BanEx(playerid,"RakSAMP"); new ConnIP[16]; GetPlayerIp(playerid,ConnIP,16); new compare_IP[16]; new number_IP = 0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i) ) { GetPlayerIp(i,compare_IP,16); if(!strcmp(compare_IP,ConnIP)) number_IP++; } } if((GetTickCount() - Join_Stamp) < Time_Limit) exceed=1; else exceed=0; if(strcmp(ban_s, ConnIP, false) == 0 && exceed == 1) { Same_IP++; if(Same_IP > SAME_IP_CONNECT) { Ban(playerid); Same_IP=0; } } else { Same_IP=0; } if(number_IP > IP_LIMIT) Kick(playerid); GetStampIP(playerid); return 1; } stock GetStampIP(playerid){ new S_IP[16]; Join_Stamp=GetTickCount(); GetPlayerIp(playerid,S_IP,16); format(ban_s, 16, "%s", S_IP); SetPlayerColor(playerid,COLOR_WHITE);/////culoare new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); // new string[MAX_PLAYER_NAME]; new nstring[39]; format(nstring, sizeof(nstring), "User/%s.ini", plname); if(fexist(nstring)) { // pai cam gata ... gPlayerAccount[playerid] = 1; new loginstring[256]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),""wh"Bine ai revenit pe Server %s"wh". Tasteaza parola pentru a te loga:",loginname); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"SERVER",loginstring,"Logare","Kick"); // by fly } else { gPlayerAccount[playerid] = 0; new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),""wh"Bine ai venit pe SkyZone %s"wh". Tasteaza o parola pentru a-ti face cont:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"SERVER",regstring,"Inregistrare","Kick"); // by fly }[/pawn]
  6. Salut , Am o problema legata de register/login! Cand intru pe server imi apare ca in imagine http://img541.imageshack.us/img541/1787/11555881.png Si nu apare ca sa ma inregistrez sau sa ma loghez! In gm am aceste linii : [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerRegister=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public OnPlayerRegister(playerid, password[]) { if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid); if(IsPlayerNPC(playerid)) return 1; if(IsPlayerConnected(playerid)) { if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid); if(IsPlayerNPC(playerid)) return 1; new string3[64]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "User/%s.ini", playername3); new File: hFile = fopen(string3, io_write); if (hFile) { strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); new var[32]; format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var); PlayerInfo[playerid][pBani] = GetPlayerMoney(playerid); format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var); format(var, 32, "LevelAdmin=%d\n",PlayerInfo[playerid][pAdminServer]);fwrite(hFile, var); format(var, 32, "LevelHelper2=%d\n",PlayerInfo[playerid][pHelperLevel]);fwrite(hFile, var); format(var, 32, "RivaliUcisi=%d\n",PlayerInfo[playerid][pWarKill]);fwrite(hFile, var); format(var, 32, "CallRep=%d\n",PlayerInfo[playerid][pCallRep]);fwrite(hFile, var); format(var, 32, "TotalRivaliUcisi=%d\n",PlayerInfo[playerid][ptWarKill]);fwrite(hFile, var); format(var, 32, "Awarn=%d\n",PlayerInfo[playerid][pAwarn]);fwrite(hFile, var); format(var, 32, "Masinaq=%d\n",PlayerInfo[playerid][pMasinaq]);fwrite(hFile, var); format(var, 32, "Masinaq2=%d\n",PlayerInfo[playerid][pMasinaq]);fwrite(hFile, var); format(var, 32, "Pwipe=%d\n",PlayerInfo[playerid][Pwipe]);fwrite(hFile, var); format(var, 32, "Acclock=%d\n",PlayerInfo[playerid][pLock]);fwrite(hFile, var); format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var); format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var); format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var); format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var); format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var); format(var, 32, "Age=%d\n",PlayerInfo[playerid] );fwrite(hFile, var); format(var, 32, "Fightstyles=%d\n",PlayerInfo[playerid][pFstyles]);fwrite(hFile, var); format(var, 32, "Walkstyles=%d\n",PlayerInfo[playerid][pWstyles]);fwrite(hFile, var); format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var); format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var); format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var); format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var); format(var, 32, "Money2=%d\n",PlayerInfo[playerid][pBani]);fwrite(hFile, var); format(var, 32, "Bank2=%d\n",PlayerInfo[playerid][pAcont]);fwrite(hFile, var); format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var); format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var); format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var); format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var); format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var); format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var); format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var); format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var); format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var); format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var); format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var); format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var); format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var); format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var); format(var, 32, "Lider=%d\n",PlayerInfo[playerid][pLider]);fwrite(hFile, var); format(var, 32, "Membru=%d\n",PlayerInfo[playerid][pMembru]);fwrite(hFile, var); format(var, 32, "FMembru=%d\n",PlayerInfo[playerid][pFMembru]);fwrite(hFile, var); format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var); format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var); format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var); format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var); format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var); format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var); format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var); format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var); format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var); format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var); format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var); format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var); format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var); format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var); format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var); GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]); format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var); format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var); format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var); format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var); format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var); format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var); format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var); format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var); format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var); format(var, 32, "Telefon=%d\n",PlayerInfo[playerid][pPtelefon]);fwrite(hFile, var); format(var, 32, "GYM=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var); format(var, 32, "CarPersonal1=%d\n",PlayerInfo[playerid][pPcheiem]);fwrite(hFile, var); format(var, 32, "CarPersonal2=%d\n",PlayerInfo[playerid][pPcheiem2]);fwrite(hFile, var); format(var, 64, "Elii=%d\n",PlayerInfo[playerid][pPelikeY]);fwrite(hFile, var); format(var, 64, "Boatt=%d\n",PlayerInfo[playerid][pPboatkeY]);fwrite(hFile, var); format(var, 64, "Fwarn=%d\n",PlayerInfo[playerid][pFwarn]);fwrite(hFile, var); format(var, 32, "CasaPersonala=%d\n",PlayerInfo[playerid][pPcasakey]);fwrite(hFile, var); format(var, 32, "AfacerePersonala=%d\n",PlayerInfo[playerid][pPbizkey]);fwrite(hFile, var); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 1684.9; PlayerInfo[playerid][pPos_y] = -2244.5; PlayerInfo[playerid][pPos_z] = 13.5; } if(Spectate[playerid] != 255) { 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]; } format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var); format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var); format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var); format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var); format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var); format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var); format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var); format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var); format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var); format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var); format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var); format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var); format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var); format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var); format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var); format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var); format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var); format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var); format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var); format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var); format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var); format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var); format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var); format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var); format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var); format(var, 32, "Mission=%d\n",PlayerInfo[playerid][pMissionNr]);fwrite(hFile, var); format(var, 64, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var); format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var); format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var); format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var); format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var); format(var, 32, "Passport=%d\n",PlayerInfo[playerid][pPassport]);fwrite(hFile, var); format(var, 32, "Carnet2=%d\n",PlayerInfo[playerid][pCarnet2]);fwrite(hFile, var); format(var, 32, "Buletin=%d\n",PlayerInfo[playerid][pBuletin]);fwrite(hFile, var); format(var, 32, "Crack=%d\n",PlayerInfo[playerid][pCrack]);fwrite(hFile, var); format(var, 32, "CabinetTime=%d\n",PlayerInfo[playerid][pCabinetTime]);fwrite(hFile, var); format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var); format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var); format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var); format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var); format(var, 32, "Telefon=%d\n",PlayerInfo[playerid][pPtelefon]);fwrite(hFile, var); format(var, 32, "GYM=%d\n",PlayerInfo[playerid][pAchievement15]);fwrite(hFile, var); format(var, 32, "CarPersonal1=%d\n",PlayerInfo[playerid][pPcheiem]);fwrite(hFile, var); format(var, 32, "CarPersonal2=%d\n",PlayerInfo[playerid][pPcheiem2]);fwrite(hFile, var); format(var, 64, "Elii=%d\n",PlayerInfo[playerid][pPelikeY]);fwrite(hFile, var); format(var, 64, "Boatt=%d\n",PlayerInfo[playerid][pPboatkeY]);fwrite(hFile, var); format(var, 32, "CasaPersonala=%d\n",PlayerInfo[playerid][pPcasakey]);fwrite(hFile, var); format(var, 32, "AfacerePersonala=%d\n",PlayerInfo[playerid][pPbizkey]);fwrite(hFile, var); fclose(hFile); new loginstring[256]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),""wh"Bine ai venit, %s"wh" .Tasteaza parola pentru a te loga:",loginname); ShowPlayerDialog(playerid,12346,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Logare","Iesire"); // by fly } } return 1; }[/pawn] Si [pawn]//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnPlayerLogin=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= public OnPlayerLogin(playerid,password[]) { if(IsPlayerNPC(playerid)) return SpawnPlayer(playerid); if(IsPlayerNPC(playerid)) return 1; // TextDrawHideForPlayer(playerid, SrvStats); // TextDrawHideForPlayer(playerid, CasetaStats); 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), "User/%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 , "LevelAdmin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAdminServer] = strval( val ); } if( strcmp( key , "LevelHelper2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pHelperLevel] = strval( val ); } if( strcmp( key , "RivaliUcisi" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWarKill] = strval( val ); } if( strcmp( key , "CallRep" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCallRep] = strval( val ); } if( strcmp( key , "TotalRivaliUcisi" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][ptWarKill] = strval( val ); } if( strcmp( key , "Awarn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAwarn] = strval( val ); } if( strcmp( key , "Masinaq" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMasinaq] = strval( val ); } if( strcmp( key , "Masinaq2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMasinaq2] = strval( val ); } if( strcmp( key , "Pwipe" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][Pwipe] = strval( val ); } if( strcmp( key , "Acclock" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLock] = 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] = strval( val ); } if( strcmp( key , "Fightstyles" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFstyles] = strval( val ); } if( strcmp( key , "Walkstyles" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWstyles] = 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 , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pExp] = strval( val ); } if( strcmp( key , "Money2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBani] = strval( val ); } if( strcmp( key , "Bank2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAcont] = 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 , "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 , "Lider" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pLider] = strval( val ); } if( strcmp( key , "Membru" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pMembru] = strval( val ); } if( strcmp( key , "FMembru" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFMembru] = 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 , "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 , "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 , "Passport" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPassport] = strvalEx( val ); } if( strcmp( key , "Carnet2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCarnet2] = strvalEx( val ); } if( strcmp( key , "Buletin" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pBuletin] = strval( val ); } if( strcmp( key , "CabinetTime" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pCabinetTime] = strval( val ); } if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); WantedLevel[playerid] = strval( val ); } if( strcmp( key , "WantedPoints" , true ) == 0 ) { val = ini_GetValue( Data ); WantedPoints[playerid] = 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 , "Telefon" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPtelefon] = strval( val ); } if( strcmp( key , "GYM" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAchievement15] = strval( val ); } if( strcmp( key , "CarPersonal1" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcheiem] = strval( val ); } if( strcmp( key , "CarPersonal2" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcheiem2] = strval( val ); } if( strcmp( key , "Elii" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPelikeY] = strval( val ); } if( strcmp( key , "Boatt" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPboatkeY] = strval( val ); } if( strcmp( key , "Fwarn" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pFwarn] = strval( val ); } if( strcmp( key , "CasaPersonala" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPcasakey] = strval( val ); } if( strcmp( key , "AfacerePersonala" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pPbizkey] = strval( val ); } }//end while fclose(UserFile);//close the file after everything has been read in the while for (new i = 0; i != MAX_PLAYERS; ++i) { if (IsPlayerConnected(i)) { new sendername[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string,sizeof(string),"** (%d) %s s-a logat pe server",playerid,sendername); ABroadCast(0x418181FF,string,1); SaveAccounts(); SetTimerEx("creeaza", 7000, 0, "d", playerid); SetTimerEx("creeaza2", 8000, 0, "d", playerid); SetTimerEx("wipe", 3000, 0, "d", playerid); break; } break; } } else { new loginstring[256]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),""wh"Parola Gresita ! Incearca din nou cu mai multa atentie:",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Login",loginstring,"Login","Exit"); // by fly fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 3) { SCM ( playerid , COLOR_WHITE , "Ai luat KICK pentru ca ai bagat parola de 3 ori gresita !" ) ; Kick(playerid);} return 1; } PlayerInfo[playerid][pAdjustable] = 0; ResetPlayerMoney(playerid); ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,PlayerInfo[playerid][pBani]); CurrentMoney[playerid] = PlayerInfo[playerid][pBani]; if(PlayerInfo[playerid][pReg] == 0) { PlayerInfo[playerid][pLevel] = 1; PlayerInfo[playerid][pExp] = 8; PlayerInfo[playerid][pPcheiem] = 999; PlayerInfo[playerid][pPcheiem2] = 999; PlayerInfo[playerid][pSHealth] = 0.0; PlayerInfo[playerid][pHealth] = 100.0; PlayerInfo[playerid][pPos_x] = 246.6; PlayerInfo[playerid][pPos_y] = -161.9; PlayerInfo[playerid][pPos_z] = 1029.7; PlayerInfo[playerid][pInt] = 15; PlayerInfo[playerid][pLocal] = 255; PlayerInfo[playerid][pTeam] = 3; PlayerInfo[playerid][pModel] = 60; PlayerInfo[playerid][pPtelefon] = 0; PlayerInfo[playerid][pPcasakey] = 255; PlayerInfo[playerid][pPbizkey] = 255; PlayerInfo[playerid][pAcont] = 85000; PlayerInfo[playerid][pReg] = 1; GivePlayerMoney(playerid, 3300); } if(PlayerInfo[playerid][pLevel] == -999) //autoban { SendClientMessage(playerid, COLOR_2RED, "================================================================="); SendClientMessage(playerid, COLOR_2RED, ">>>>> Cont Banat ! Poti face cerere unban pe www.Sky-Zone.ro <<<<<"); // 1 SendClientMessage(playerid, COLOR_2RED, "================================================================="); Ban(playerid); } else if(PlayerInfo[playerid][pCK] > 0) { Kick(playerid); } SetPlayerSkills(playerid); //SetTimerEx("Contract", 720000, 0, "d", playerid); SetTimerEx("ResetOOC", 5000, 0, "d", playerid); //SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4); // SendClientMessage(playerid, COLOR_SkyZone, "============================================"); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 SendClientMessage(playerid, COLOR_SkyZone, " "); // 1 format(string2, sizeof(string2), "- Bine ai venit %s!",playername2); // 2 SendClientMessage(playerid, COLOR_WHITE,string2); printf("%s has logged in.",playername2); // format(string2, sizeof(string2), "- Level: %d.",PlayerInfo[playerid][pLevel]); // 5 // SendClientMessage(playerid, COLOR_SkyZone,string2); /* if (PlayerInfo[playerid][pAdminServer] == 1) { format(string2, sizeof(string2), "- Te-ai Logat cu - Trial Admin Level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_SkyZone,string2); } if (PlayerInfo[playerid][pAdminServer] == 2) { format(string2, sizeof(string2), "- Te-ai Logat cu - Advanced Admin level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_SkyZone,string2); } if (PlayerInfo[playerid][pAdminServer] == 3) { format(string2, sizeof(string2), "- Te-ai Logat cu - eXtra Admin Level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_SkyZone,string2); } if (PlayerInfo[playerid][pAdminServer] == 4) { format(string2, sizeof(string2), "- Te-ai Logat cu - Vip Admin level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string2); } if (PlayerInfo[playerid][pAdminServer] == 1337) { format(string2, sizeof(string2), "- Te-ai Logat cu - Super Admin Level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string2); } if (PlayerInfo[playerid][pAdminServer] == 1338) { format(string2, sizeof(string2), "- Te-ai Logat cu - Co-Owner Level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_LIGHTBLUE,string2); } if (PlayerInfo[playerid][pAdminServer] == 1339) { format(string2, sizeof(string2), "- Te-ai Logat cu - Owner Level %d.",PlayerInfo[playerid][pAdminServer]); SendClientMessage(playerid, COLOR_SkyZone,string2); } if (PlayerInfo[playerid][pAdminServer] > 0) { format(string2, sizeof(string2), "- Ai %d/5 Admin warn's",PlayerInfo[playerid][pAwarn]); // 4 SendClientMessage(playerid, COLOR_SkyZone,string2); } if (PlayerInfo[playerid][pHelperLevel] > 0) { format(string2, sizeof(string2), "- Te-ai Logat cu - Helper Level %d",PlayerInfo[playerid][pHelperLevel]); // 4 SendClientMessage(playerid, COLOR_SkyZone,string2); } format(string2, sizeof(string2), "- Bani: %d$ ",PlayerInfo[playerid][pBani]); // 5 SendClientMessage(playerid, COLOR_SkyZone,string2); format(string2, sizeof(string2), "- Puncte Respect: %d ",PlayerInfo[playerid][pExp]); // 5 SendClientMessage(playerid, COLOR_SkyZone,string2); SendClientMessage(playerid, COLOR_SkyZone, "===================="); // 6*/ PlCon2(playerid); // SCM(playerid,COLOR_WHITE, "Tasteaza {00A1FF}/buycar {FFFFFF}pentru a gasi noul parc de masini personale."); // SendClientMessage(playerid, COLOR_SkyZone, "Esti protejat de DeathMatch in Spawn."); // 6 PlCon1(playerid); EngineStatus[playerid] = 0; LightsStatus[playerid] = 0; SetPlayerWantedLevel(playerid,WantedLevel[playerid]); //SetPlayerWeather(playerid, 5); //SetWorldTime(23); //SetPlayerAttachedObject(playerid, 3, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4); if(WantedLevel[playerid] >=2) { SendClientMessage(playerid, COLOR_KOS, "Cand ai iesit aveai Wanted, acum l-ai primit inapoi!"); } TextDrawHideForPlayer(playerid, TextdrawConnect0); TextDrawHideForPlayer(playerid, TextdrawConnect1); TextDrawHideForPlayer(playerid, TextdrawConnect2); TextDrawHideForPlayer(playerid, TextdrawConnect3); TextDrawHideForPlayer(playerid, TextdrawConnect4); TextDrawHideForPlayer(playerid, TextdrawConnect5); TextDrawHideForPlayer(playerid, TextdrawConnect6); TextDrawHideForPlayer(playerid, TextdrawConnect7); TextDrawHideForPlayer(playerid, TextdrawConnect8); TextDrawHideForPlayer(playerid, TextdrawConnect9); TextDrawHideForPlayer(playerid, TextdrawConnect10); TextDrawHideForPlayer(playerid, TextdrawConnect11); TextDrawHideForPlayer(playerid, TextdrawConnect12); TextDrawHideForPlayer(playerid, TextdrawConnect13); TextDrawHideForPlayer(playerid, TextdrawConnect14); TextDrawHideForPlayer(playerid, TextdrawConnect15); TextDrawHideForPlayer(playerid, TextdrawConnect16); TextDrawHideForPlayer(playerid, TextdrawConnect17); TextDrawHideForPlayer(playerid, TextdrawConnect18); TextDrawHideForPlayer(playerid, TextdrawConnect19); TextDrawShowForPlayer(playerid, Textdrawreddy0); TextDrawShowForPlayer(playerid, Textdrawreddy1); TextDrawShowForPlayer(playerid, Textdrawreddy2); TextDrawShowForPlayer(playerid, Textdrawreddy3); TextDrawShowForPlayer(playerid, Textdrawreddy4); TextDrawShowForPlayer(playerid, Textdrawreddy5); TextDrawShowForPlayer(playerid, Textdrawreddy6); TextDrawShowForPlayer(playerid, Textdrawreddy7); SetTimerEx("reddy", 500, false, "i", playerid); 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(PlayerInfo[playerid][pFstyles] == 1) { SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING); } if(PlayerInfo[playerid][pFstyles] == 2) { SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); } if(PlayerInfo[playerid][pFstyles] == 3) { SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD); } if(PlayerInfo[playerid][pFstyles] == 4) { SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK); } if(PlayerInfo[playerid][pFstyles] == 5) { SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW); } if(PlayerInfo[playerid][pFstyles] == 6) { SetPlayerFightingStyle(playerid, FIGHT_STYLE_NORMAL); } if(PlayerInfo[playerid][pWstyles] == 1) { SetPlayerWalkingStyle(playerid, WALK_DEFAULT); } if(PlayerInfo[playerid][pWstyles] == 2) { SetPlayerWalkingStyle(playerid, WALK_NORMAL); } if(PlayerInfo[playerid][pWstyles] == 3) { SetPlayerWalkingStyle(playerid, WALK_PED); } if(PlayerInfo[playerid][pWstyles] == 4) { SetPlayerWalkingStyle(playerid, WALK_GANGSTA); } if(PlayerInfo[playerid][pWstyles] == 5) { SetPlayerWalkingStyle(playerid, WALK_GANGSTA2); } if(PlayerInfo[playerid][pWstyles] == 6) { SetPlayerWalkingStyle(playerid, WALK_OLD); } if(PlayerInfo[playerid][pWstyles] == 7) { SetPlayerWalkingStyle(playerid, WALK_FAT_OLD); } if(PlayerInfo[playerid][pWstyles] == 8) { SetPlayerWalkingStyle(playerid, WALK_FAT); } if(PlayerInfo[playerid][pWstyles] == 9) { SetPlayerWalkingStyle(playerid, WALK_LADY); } if(PlayerInfo[playerid][pWstyles] == 10) { SetPlayerWalkingStyle(playerid, WALK_LADY2); } if(PlayerInfo[playerid][pWstyles] == 11) { SetPlayerWalkingStyle(playerid, WALK_WHORE); } if(PlayerInfo[playerid][pWstyles] == 12) { SetPlayerWalkingStyle(playerid, WALK_WHORE2); } if(PlayerInfo[playerid][pWstyles] == 13) { SetPlayerWalkingStyle(playerid, WALK_DRUNK); } if(gTeam[playerid] == 0) { gTeam[playerid] = 3; } else { gTeam[playerid] = PlayerInfo[playerid][pTeam]; } gPlayerLogged[playerid] = 1; // fly SpawnPlayer(playerid); // format(tmp2, sizeof(tmp2), "~w~Bine ai Venit ~n~~r~~h~ %s", playername2); DateProp(playerid); // GameTextForPlayer(playerid, tmp2, 300, 1); SendClientMessage(playerid, COLOR_YELLOW, motd); if(PlayerInfo[playerid][pFMembru] < 255) { format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMembru]][FamilyMOTD]); SendClientMessage(playerid, COLOR_YELLOW, tmp2); } //reset player car pos on connect /* new car1; new car2; car1 = PlayerInfo[playerid][pPcheiem]; car2 = PlayerInfo[playerid][pPcheiem2]; if (car1 == 0){ } else { SetVehicleToRespawn(car1); // SetVehiclePos(car1,CarInfo[car1][cLocationx],CarInfo[car1][cLocationy],CarInfo[car1][cLocationz]); } if (car2 == 0){ } else { // SetVehiclePos(car2,CarInfo[car2][cLocationx],CarInfo[car2][cLocationy],CarInfo[car2][cLocationz]);-5500 SetVehicleToRespawn(car2); } if(PlayerInfo[playerid][pAdminServer] >= 1339) { IsPlayerAdmin(playerid); }*/ } return 1; }[/pawn] Ma puteti ajuta? Multumesc!
×
×
  • 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.