Jump to content

diablo16

Membru
  • Posts

    21
  • Joined

  • Last visited

Everything posted by diablo16

  1. Multumesc pentru raspuns Ph0eniX , serverul este pe 0.3x am facut update la fisiere preventiv inainte sa il pornesc ... iar la OnPlayerConnect nu am observat nimic suspect de genu rcon command "exit" etc. (am postat OnPlayerConnect mai sus)
  2. Salut am si eu o problema cu severul de sa-mp si anume : - pornesc serverul totul este bine. server_log : [pawn] ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x-R2, ©2005-2013 SA-MP Team [15:23:36] [15:23:36] Server Plugins [15:23:36] -------------- [15:23:36] Loading plugin: mysql [15:23:36] > MySQL plugin R5 successfully loaded. [15:23:36] Loaded. [15:23:36] Loading plugin: sscanf [15:23:36] [15:23:36] =============================== [15:23:36] sscanf plugin loaded. [15:23:36] © 2009 Alex "Y_Less" Cole [15:23:36] 0.3d-R2 500 Players "dnee" [15:23:36] =============================== [15:23:36] Loaded. [15:23:36] Loading plugin: streamer [15:23:36] *** Streamer Plugin v2.6.1 by Incognito loaded *** [15:23:36] Loaded. [15:23:36] Loading plugin: Whirlpool [15:23:36] [15:23:36] ================== [15:23:36] [15:23:36] Whirlpool loaded [15:23:36] [15:23:36] ================== [15:23:36] [15:23:36] Loaded. [15:23:36] Loaded 4 plugins. [15:23:36] [15:23:36] Ban list [15:23:36] -------- [15:23:36] Loaded: samp.ban [15:23:36] [15:23:36] [15:23:36] Filterscripts [15:23:36] --------------- [15:23:36] Loading filterscript 'anti-fake-killer.amx'... [15:23:36] --------------------------------------------------------------- [15:23:36] Anti Fake-Killer | Creation date: 01.12.2012 | Autor: DMC | [15:23:36] --------------------------------------------------------------- [15:23:36] Loading filterscript 'anti-spam.amx'... [15:23:36] --------------------------------------------------------------- [15:23:36] Anti Spam Flood | Creation date: 01.12.2012 | Autor: DMC | [15:23:36] --------------------------------------------------------------- [15:23:36] Loading filterscript 'artificii.amx'... [15:23:36] --------------------------------------------------------------- [15:23:36] Artificii | Creation date: 01.12.2012 | Autor: DMC | [15:23:36] --------------------------------------------------------------- [15:23:36] Loading filterscript 'brad-de-craciun.amx'... [15:23:36] --------------------------------------------------------------- [15:23:36] Brad de craciun | Creation date: 01.12.2012 | Autor: DMC | [15:23:36] --------------------------------------------------------------- [15:23:36] Loading filterscript 'laser-la-arme.amx'... [15:23:36] --------------------------------------------------------------- [15:23:36] Laser la arme | Creation date: 01.12.2012 | Autor: DMC | [15:23:36] --------------------------------------------------------------- [15:23:36] Loading filterscript 'anti-flood.amx'... [15:23:36] Loading filterscript 'anti-boot.amx'... [15:23:36] Unable to load filterscript 'anti-boot.amx'. [15:23:36] Loading filterscript 'vae.amx'... [15:23:36] Loading filterscript 'basket.amx'... [15:23:36] Loaded 8 filterscripts. [15:23:36] [MYSQL]: Conectare la `zp_26205` a avut succes! [15:23:36] * Case citite: 0 [15:23:36] * Canale IRC citite: 10 [15:23:36] * Character killuri citite: 10 [15:23:36] * Ziare citite: 10 [15:23:36] * Bizzuri citite: 0 [15:23:36] * SBizzuri citite: 0 [15:23:36] * Teritorii citite: 0 [15:23:36] * Seifuri citite: 0 [15:23:36] * Masini personale citite: 0 [15:23:36] * DealerShips citite: 4 [15:23:36] * ID = 0 | Factiune = 0 | Alianta = 0 [15:23:36] * ID = 0 | Factiune = 0 | Alianta = 0 [15:23:36] * ID = 0 | Factiune = 0 | Alianta = 0 [15:23:36] * ID = 0 | Factiune = 0 | Alianta = 0 [15:23:36] * ID = 0 | Factiune = 0 | Alianta = 0 [15:23:36] * ID = 0 | Factiune = 0 | Alianta = 0 [15:23:36] * Pickup-uri citite: 45 [15:23:36] [15:23:36] ------------------------------- [15:23:36] SA-Zone RPG [15:23:36] ------------------------------- [15:23:36] [15:23:36] Number of vehicle models: 104 [15:24:00] Incoming connection: 95.76.53.206:50196 [15:24:00] [join] XStyle has joined the server (0:95.76.53.206) [/pawn] - baza de date este facuta. - dar cand incerc sa ma conectez pe server se inchide ! [img width=500 height=375] - P.S baza de date si serverul sunt pe localhost. Multumesc anticipat pentru ajutor. EDIT : OnPlayerConnect [pawn]public OnPlayerConnect(playerid) { //------------------------------------------------------------------------------------------------------// //tiruri RemoveBuildingForPlayer(playerid, 17350, -54.9922, -1130.7266, 4.5781, 0.25); RemoveBuildingForPlayer(playerid, 17072, -54.9922, -1130.7266, 4.5781, 0.25); RemoveBuildingForPlayer(playerid, 17073, -56.1250, -1130.1719, 4.4922, 0.25); RemoveBuildingForPlayer(playerid, 1447, -84.0547, -1117.2188, 1.3906, 0.25); RemoveBuildingForPlayer(playerid, 1415, -68.3516, -1104.9922, 0.2188, 0.25); RemoveBuildingForPlayer(playerid, 1462, -60.3594, -1116.9375, 0.2578, 0.25); RemoveBuildingForPlayer(playerid, 1438, -63.6719, -1125.6953, 0.0469, 0.25); RemoveBuildingForPlayer(playerid, 1438, -63.4141, -1115.4141, 0.0469, 0.25); RemoveBuildingForPlayer(playerid, 1415, -63.8125, -1106.4219, 0.2188, 0.25); // RemoveBuildingForPlayer(playerid, 1250, 997.4141, 1707.5234, 10.8516, 0.25); RemoveBuildingForPlayer(playerid, 1251, 997.0469, 1710.9531, 11.2656, 0.25); RemoveBuildingForPlayer(playerid, 1251, 998.0938, 1755.6875, 11.2656, 0.25); RemoveBuildingForPlayer(playerid, 1250, 997.7266, 1759.1250, 10.8516, 0.25); RemoveBuildingForPlayer(playerid, 14843, 266.3516, 81.1953, 1001.2813, 0.25); Textdraw1[playerid] = TextDrawCreate(400.000000, 2.000000, " "); // jail time TextDrawAlignment(Textdraw1[playerid], 2); TextDrawBackgroundColor(Textdraw1[playerid], 255); TextDrawFont(Textdraw1[playerid], 1); TextDrawLetterSize(Textdraw1[playerid], 0.300000, 1.000000); TextDrawColor(Textdraw1[playerid], -1); TextDrawSetOutline(Textdraw1[playerid], 1); TextDrawSetProportional(Textdraw1[playerid], 1); TextDrawSpec[playerid][1] = TextDrawCreate(269.000000, 335.000000, " "); TextDrawBackgroundColor(TextDrawSpec[playerid][1], 255); TextDrawFont(TextDrawSpec[playerid][1], 1); TextDrawLetterSize(TextDrawSpec[playerid][1], 0.460000, 1.900000); TextDrawColor(TextDrawSpec[playerid][1], -119841281); TextDrawSetOutline(TextDrawSpec[playerid][1], 1); TextDrawSetProportional(TextDrawSpec[playerid][1], 1); //TextDrawAlignment(TextDrawSpec[playerid][1], 2); TextDrawSpec[playerid][2] = TextDrawCreate(270.000000, 354.000000, "Health: 0"); TextDrawBackgroundColor(TextDrawSpec[playerid][2], 255); TextDrawFont(TextDrawSpec[playerid][2], 1); TextDrawLetterSize(TextDrawSpec[playerid][2], 0.460000, 1.900000); TextDrawColor(TextDrawSpec[playerid][2], -1); TextDrawSetOutline(TextDrawSpec[playerid][2], 1); TextDrawSetProportional(TextDrawSpec[playerid][2], 1); TextDrawSpec[playerid][3] = TextDrawCreate(262.000000, 372.000000, "Vehicle ID: 0"); TextDrawBackgroundColor(TextDrawSpec[playerid][3], 255); TextDrawFont(TextDrawSpec[playerid][3], 1); TextDrawLetterSize(TextDrawSpec[playerid][3], 0.460000, 1.900000); TextDrawColor(TextDrawSpec[playerid][3], -1); TextDrawSetOutline(TextDrawSpec[playerid][3], 1); TextDrawSetProportional(TextDrawSpec[playerid][3], 1); TextDrawSpec[playerid][4] = TextDrawCreate(236.000000, 389.000000, "Vehicle Health: 0000"); TextDrawBackgroundColor(TextDrawSpec[playerid][4], 255); TextDrawFont(TextDrawSpec[playerid][4], 1); TextDrawLetterSize(TextDrawSpec[playerid][4], 0.460000, 1.900000); TextDrawColor(TextDrawSpec[playerid][4], -1); TextDrawSetOutline(TextDrawSpec[playerid][4], 1); TextDrawSetProportional(TextDrawSpec[playerid][4], 1); TextDrawSpec[playerid][5] = TextDrawCreate(219.000000, 405.000000, "Vehicle Speed: 000 KM/H"); TextDrawBackgroundColor(TextDrawSpec[playerid][5], 255); TextDrawFont(TextDrawSpec[playerid][5], 1); TextDrawLetterSize(TextDrawSpec[playerid][5], 0.460000, 1.900000); TextDrawColor(TextDrawSpec[playerid][5], -1); TextDrawSetOutline(TextDrawSpec[playerid][5], 1); TextDrawSetProportional(TextDrawSpec[playerid][5], 1); //-------------------------------------------------------------------------------- TextDrawSpeed[playerid][0] = TextDrawCreate(499.000000, 362.000000, "Vehicle: 000km/h"); TextDrawBackgroundColor(TextDrawSpeed[playerid][0], 255); TextDrawFont(TextDrawSpeed[playerid][0], 1); TextDrawLetterSize(TextDrawSpeed[playerid][0], 0.310000, 1.000000); TextDrawColor(TextDrawSpeed[playerid][0], -1); TextDrawSetOutline(TextDrawSpeed[playerid][0], 0); TextDrawSetProportional(TextDrawSpeed[playerid][0], 1); TextDrawSetShadow(TextDrawSpeed[playerid][0], 1); TextDrawUseBox(TextDrawSpeed[playerid][0], 1); TextDrawBoxColor(TextDrawSpeed[playerid][0], 50); TextDrawTextSize(TextDrawSpeed[playerid][0], 606.000000, 0.000000); TextDrawSpeed[playerid][1] = TextDrawCreate(499.000000, 375.000000, "Health: 0%"); TextDrawBackgroundColor(TextDrawSpeed[playerid][1], 255); TextDrawFont(TextDrawSpeed[playerid][1], 1); TextDrawLetterSize(TextDrawSpeed[playerid][1], 0.310000, 1.000000); TextDrawColor(TextDrawSpeed[playerid][1], -1); TextDrawSetOutline(TextDrawSpeed[playerid][1], 0); TextDrawSetProportional(TextDrawSpeed[playerid][1], 1); TextDrawSetShadow(TextDrawSpeed[playerid][1], 1); TextDrawUseBox(TextDrawSpeed[playerid][1], 1); TextDrawBoxColor(TextDrawSpeed[playerid][1], 50); TextDrawTextSize(TextDrawSpeed[playerid][1], 606.000000, 0.000000); TextDrawSpeed[playerid][2] = TextDrawCreate(499.000000, 388.000000, "Fuel: 0%"); TextDrawBackgroundColor(TextDrawSpeed[playerid][2], 255); TextDrawFont(TextDrawSpeed[playerid][2], 1); TextDrawLetterSize(TextDrawSpeed[playerid][2], 0.310000, 1.000000); TextDrawColor(TextDrawSpeed[playerid][2], -1); TextDrawSetOutline(TextDrawSpeed[playerid][2], 0); TextDrawSetProportional(TextDrawSpeed[playerid][2], 1); TextDrawSetShadow(TextDrawSpeed[playerid][2], 1); TextDrawUseBox(TextDrawSpeed[playerid][2], 1); TextDrawBoxColor(TextDrawSpeed[playerid][2], 50); TextDrawTextSize(TextDrawSpeed[playerid][2], 606.000000, 0.000000); TextDrawSpeed[playerid][3] = TextDrawCreate(499.000000, 401.000000, "Speed: 0% km/h"); TextDrawBackgroundColor(TextDrawSpeed[playerid][3], 255); TextDrawFont(TextDrawSpeed[playerid][3], 1); TextDrawLetterSize(TextDrawSpeed[playerid][3], 0.310000, 1.000000); TextDrawColor(TextDrawSpeed[playerid][3], -1); TextDrawSetOutline(TextDrawSpeed[playerid][3], 0); TextDrawSetProportional(TextDrawSpeed[playerid][3], 1); TextDrawSetShadow(TextDrawSpeed[playerid][3], 1); TextDrawUseBox(TextDrawSpeed[playerid][3], 1); TextDrawBoxColor(TextDrawSpeed[playerid][3], 50); TextDrawTextSize(TextDrawSpeed[playerid][3], 606.000000, 0.000000); TextDrawSpeed[playerid][4] = TextDrawCreate(499.000000, 348.200000, "Kilometers: 0"); TextDrawBackgroundColor(TextDrawSpeed[playerid][4], 255); TextDrawFont(TextDrawSpeed[playerid][4], 1); TextDrawLetterSize(TextDrawSpeed[playerid][4], 0.310000, 1.000000); TextDrawColor(TextDrawSpeed[playerid][4], -1); TextDrawSetOutline(TextDrawSpeed[playerid][4], 0); TextDrawSetProportional(TextDrawSpeed[playerid][4], 1); TextDrawSetShadow(TextDrawSpeed[playerid][4], 1); TextDrawUseBox(TextDrawSpeed[playerid][4], 1); TextDrawBoxColor(TextDrawSpeed[playerid][4], 50); TextDrawTextSize(TextDrawSpeed[playerid][4], 606.000000, 0.000000); TextDrawSpeed[playerid][5] = TextDrawCreate(499.000000, 414.000000, "_"); TextDrawBackgroundColor(TextDrawSpeed[playerid][5], 255); TextDrawFont(TextDrawSpeed[playerid][5], 1); TextDrawLetterSize(TextDrawSpeed[playerid][5], 0.900000, 0.199999); TextDrawColor(TextDrawSpeed[playerid][5], -1); TextDrawSetOutline(TextDrawSpeed[playerid][5], 0); TextDrawSetProportional(TextDrawSpeed[playerid][5], 1); TextDrawSetShadow(TextDrawSpeed[playerid][5], 1); TextDrawUseBox(TextDrawSpeed[playerid][5], 1); TextDrawBoxColor(TextDrawSpeed[playerid][5], 255); TextDrawTextSize(TextDrawSpeed[playerid][5], 606.000000, 90.000000); HideRXTT(playerid); ResetPlayerWeapons(playerid); new plname[MAX_PLAYER_NAME]; for(new i = 1; i<20;i++) { TrySeifLog[playerid]=0; } Examen[0][playerid] = 0; Examen[1][playerid] = 0; SwitchKey[playerid] = 5; AsADriver[playerid] = 0; CarExploded[playerid] = 0; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; JoinedGunGame[playerid] = 0; JoinedMotoCross[playerid] = 0; SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; JoinedDD[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; RentHotel[playerid] = 0; RadarON[playerid] = 0; ContractDone[playerid] = 0; CarOffer[playerid] = 999; CarPrice[playerid] = 0; CarID[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; WeaponToPlayer[playerid] = 999; WeaponOffer[playerid] = 999; WeaponIdOffer[playerid] = 0; WeaponPrice[playerid] = 0; WeaponAmount[playerid] = 0; WeaponMaterials[playerid] = 0; STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0; MatsOffer[playerid] = 999; MatsPrice[playerid]= 0; MatsAmount[playerid]= 0; MatsToPlayer[playerid] = 999; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; TakingLesson[playerid] = 0; RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; CaridRefuel[playerid] = 999; RefuelPrice[playerid] = 0; RefuelLitri[playerid] = 0; DrugOffer[playerid] = 999; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; DrugPrice[playerid] = 0; RegistrationStep[playerid] = 0; DrugGram[playerid] = 0; ConnectedToPC[playerid] = 0; OrderReady[playerid] = 0; JailPrice[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; MedicBill[playerid] = 0; GotHit[playerid] = 0; GoChase[playerid] = 999; GetChased[playerid] = 999; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; OnTurfs[playerid] = 0; BoxWaitTime[playerid] = 0; SchoolSpawn[playerid] = 0; ChangePos2[playerid][1] = 0; SafeTime[playerid] = 60; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; TaxiCallTime[playerid] = 0; PlayerToFind[playerid] = 999; MedicCallTime[playerid] = 0; MechanicCallTime[playerid] = 0; RemorcariCallTime[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] = 999; PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0; Unspec[playerid][sLocal] = 255; FishCount[playerid] = 0;MolotovMaked[playerid] = 0; High[playerid] = 0; WritingPaper[playerid] = 0; WritingPaperNumber[playerid] = 999; WritingLine[playerid] = 0; BringingPaper[playerid] = 0; GotPaper[playerid] = 0; PaperOffer[playerid] = 999; ConsumingMoney[playerid] = 0; PrePassport[playerid] = 0; gLastCar[playerid] = 0; SLEEP[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; gAdm[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; StartTime[playerid] = 0; TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; MatsHolding[playerid] = 0; TutTime[playerid] = 0; JFKick[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; InBizz[playerid] = 0; InHouse[playerid] = 0; HireCar[playerid] = 299; PlayersChannel[playerid] = 999; TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999; WatchingTV[playerid] = 0; PlayerPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; BusTicket[playerid] = 0; TrainTicket[playerid] = 0; WatchingPLAYER[playerid] = 0; OwnableCarOffer[playerid] = 999; OwnableCarID[playerid] = 0; OwnableCarPrice[playerid] = 0;Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; DMVPrepare[playerid] = 0; DMVlocation[playerid] = 0; ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; KickAdmin[playerid] = 0; DMVPrepare[playerid] = 0; Seatbelt[playerid] = 0; RestartPrepare[playerid] = 0; Disguise[playerid] = 0; CallReport[playerid] = 0; CallAjutor[playerid] = 0; CalAjutor[playerid] = 0; HealOffer[playerid] = 999; SpectateSpawn[playerid] = 0; PlayerData[playerid][pLevel] = 0; HealOfferMoney[playerid] = 0; PlayerData[playerid][pAdmin] = 0; PlayerData[playerid][pDonateRank] = 0; PlayerData[playerid][gPupgrade] = 0; PlayerData[playerid][pWantedPoints] = 0; PlayerData[playerid][pConnectTime] = 0; PlayerData[playerid][pReg] = 0; PlayerData[playerid][pSex] = 0; PlayerData[playerid] = 0; PlayerData[playerid][pOrigin] = 0; PlayerData[playerid][pExp] = 0; PlayerData[playerid][pAccount] = 0; PlayerData[playerid][pCrimes] = 0; PlayerData[playerid][pDeaths] = 0; PlayerData[playerid][pArrested] = 0; PlayerData[playerid][pWantedDeaths] = 0; PlayerData[playerid][pPhoneBook] = 0; PlayerData[playerid][pRobSkill] = 0; PlayerData[playerid][pLottoNr] = 0; PlayerData[playerid][pFishes] = 0; PlayerData[playerid][pSticle] = 0; PlayerData[playerid][pBiggestFish] = 0; PlayerData[playerid][pJob] = 0; PlayerData[playerid][pPayCheck] = 0; PlayerData[playerid][pHeadValue] = 0; PlayerData[playerid][pJailed] = 0; PlayerData[playerid][pJailTime] = 0; PlayerData[playerid][pMuteTime] = 0; PlayerData[playerid][pMats] = 0; PlayerData[playerid][pDrugs] = 0; PlayerData[playerid][pLeader] = 0; PlayerData[playerid][pMember] = 0; PlayerData[playerid][pFMember] = 255; PlayerData[playerid][pRank] = 0; PlayerData[playerid][pAlawyer] = 0; PlayerData[playerid][pLimba] = 0; PlayerData[playerid][pChar] = 0; PlayerData[playerid][pContractTime] = 0; PlayerData[playerid][pDetSkill] = 0; PlayerData[playerid][pSexSkill] = 0; PlayerData[playerid][pBoxSkill] = 0; PlayerData[playerid][pLawSkill] = 0; PlayerData[playerid][pMechSkill] = 0; PlayerData[playerid][pJackSkill] = 0; PlayerData[playerid][pCarSkill] = 0; PlayerData[playerid][pNewsSkill] = 0; PlayerData[playerid][pDrugsSkill] = 0; PlayerData[playerid][pCookSkill] = 0; PlayerData[playerid][pFishSkill] = 0; PlayerData[playerid][pRromSkill] = 0; PlayerData[playerid][pPassport] = 0; PlayerData[playerid][pSHealth] = 0.0; PlayerData[playerid][pHealth] = 50.0; PlayerData[playerid][pArmour] = 0.0; PlayerData[playerid][pPos_x] = 2246.6; PlayerData[playerid][pPos_y] = -1161.9; PlayerData[playerid][pPos_z] = 1029.7; PlayerData[playerid][pInt] = 15; PlayerData[playerid][pLocal] = 255; PlayerData[playerid][pTeam] = 3; PlayerData[playerid][pModel] = 62; new randphone = 1000000 + random(8999999);//minimum 1000 max 9999 //giving one at the start PlayerData[playerid][pPnumber] = randphone; PlayerData[playerid][pPcarkey] = 999; PlayerData[playerid][pSf] = 0; PlayerData[playerid][pPhousekey] = 255; PlayerData[playerid][pPbiskey] = 255; PlayerData[playerid][pCarLic] = 0; PlayerData[playerid][pPunctePen] = 15; PlayerData[playerid][pTow] = 1; PlayerData[playerid][pFlyLic] = 0; PlayerData[playerid][pBoatLic] = 0; PlayerData[playerid][pFishLic] = 0; PlayerData[playerid][pGunLic] = 0; PlayerData[playerid][pMatsLic] = 0; PlayerData[playerid][pGun1] = 0; PlayerData[playerid][pGun2] = 0; PlayerData[playerid][pGun3] = 0; PlayerData[playerid][pGun4] = 0; PlayerData[playerid][pAmmo1] = 0; PlayerData[playerid][pAmmo2] = 0; PlayerData[playerid][pAmmo3] = 0; PlayerData[playerid][pAmmo4] = 0; PlayerData[playerid][pCarTime] = 0; PlayerData[playerid][pCGunoiTime] = 0; PlayerData[playerid][pPayDay] = 0; PlayerData[playerid][pPayDayHad] = 0; PlayerData[playerid][pCDPlayer] = 0; PlayerData[playerid][pWins] = 0; PlayerData[playerid][pLoses] = 0; PlayerData[playerid][pAlcoholPerk] = 0; PlayerData[playerid][pDrugPerk] = 0; PlayerData[playerid][pMiserPerk] = 0; PlayerData[playerid][pPainPerk] = 0; PlayerData[playerid][pTraderPerk] = 0; PlayerData[playerid][pTut] = 0; PlayerData[playerid][pMissionNr] = 0; PlayerData[playerid][pWarns] = 0; PlayerData[playerid][pFACWarns] = 0; PlayerData[playerid][pFpunish] = 0; PlayerData[playerid][pFuel] = 0; PlayerData[playerid][pRequestingBackup] = 0; PlayerData[playerid][pAdjustable] = 0; PlayerData[playerid][pWipe] = 0; PlayerData[playerid][pLocked] = 0; PlayerData[playerid][pSQLID] = 0; PlayerData[playerid][pStatus] = 0; pTazed[playerid] = 0; pTazer[playerid] = 0; VreaSfaturi[playerid] = 0; //LabelActive[playerid] = false; //DLabelActive[playerid] = false; MySQLCheckConnection(); ClearCrime(playerid); ClearFishes(playerid); ClearCooking(playerid); ClearGroceries(playerid); ClearMarriage(playerid); SetPlayerColor(playerid, COLOR_GRAD2); GetPlayerName(playerid, plname, sizeof(plname)); //Nume[playerid]= TextDrawCreate(28.000000,428.000000,plname); Nume[playerid] = TextDrawCreate(48.000000, 425.000000, plname); TextDrawAlignment(Nume[playerid],0); //TextDrawBackgroundColor(Nume[playerid],0xffffffff); TextDrawBackgroundColor(Nume[playerid], 255); TextDrawFont(Nume[playerid],1); //TextDrawLetterSize(Nume[playerid],0.4000000,1.200000); TextDrawLetterSize(Nume[playerid],0.3400000,1.000000); //TextDrawColor(Nume[playerid],0x000000ff); TextDrawColor(Nume[playerid], -1); TextDrawSetOutline(Nume[playerid],1); //TextDrawSetProportional(Nume[playerid],1); //TextDrawSetShadow(Nume[playerid],1); //TextDrawUseBox(Nume[playerid], 1); //TextDrawBoxColor(Nume[playerid], 68); //new testing = 44 + (strlen(plname) * 7 + 3); //TextDrawTextSize(Nume[playerid], testing, 1.000000); TextDrawShowForPlayer(playerid,Nume[playerid]); //new pip[16]; //GetPlayerIp(playerid, pip, sizeof(pip)); new playersip[256]; GetPlayerIp(playerid,playersip,sizeof(playersip)); new quer[256]; format(quer, sizeof(quer), "SELECT * FROM banuri WHERE TIP=2 AND PlayerIP='%s'", playersip); mysql_query(quer); mysql_store_result(); new sqlaccountstatus = MySQLCheckAccount(plname); allow[playerid] = 0; if(sqlaccountstatus != 0) { allow[playerid] = MYSQLAllowAccount(plname); } if(sqlaccountstatus != 0) { if(MySQLCheckAccountLocked(sqlaccountstatus, playerid) != 0) { if(PlayerData[playerid][pBanaP] == 0) { new string[128]; format(string, sizeof(string), "Contul tau este banat permanent de catre adminul %s, motivul: %s.",PlayerData[playerid][pAdminBan],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com"); Kick(playerid); return 0; } else if(PlayerData[playerid][pBanaP] != 0) { new zero1[5]; new zero2[5]; new zero3[5]; new zero4[5]; new year, month,day; getdate(year, month, day); if(PlayerData[playerid][pBanaP] <= year) { if(PlayerData[playerid][pBanaP] < year) { new query[128]; PlayerData[playerid][pLocked] = 0; format(query, sizeof(query), "DELETE FROM banuri WHERE LOWER(Nume) = LOWER('%s')", plname); mysql_query(query); format(query, sizeof(query), "UPDATE players SET Locked='%d' WHERE LOWER(Name) = LOWER('%s')", PlayerData[playerid][pLocked], plname); mysql_query(query); } else if(PlayerData[playerid][pBanaP] == year) { if(PlayerData[playerid][pBanlP] < month) { new query[128]; PlayerData[playerid][pLocked] = 0; format(query, sizeof(query), "DELETE FROM banuri WHERE LOWER(Nume) = LOWER('%s')", plname); mysql_query(query); format(query, sizeof(query), "UPDATE players SET Locked='%d' WHERE LOWER(Name) = LOWER('%s')", PlayerData[playerid][pLocked], plname); mysql_query(query); } else if(PlayerData[playerid][pBanlP] == month) { if(PlayerData[playerid][pBanzP] < day) { new query[128]; PlayerData[playerid][pLocked] = 0; format(query, sizeof(query), "DELETE FROM banuri WHERE LOWER(Nume) = LOWER('%s')", plname); mysql_query(query); format(query, sizeof(query), "UPDATE players SET Locked='%d' WHERE LOWER(Name) = LOWER('%s')", PlayerData[playerid][pLocked], plname); mysql_query(query); } else if(PlayerData[playerid][pBanzP] == day) { new hour,minute,second; gettime(hour,minute,second); if(PlayerData[playerid][pBanoP] < hour) { new query[128]; PlayerData[playerid][pLocked] = 0; format(query, sizeof(query), "DELETE FROM banuri WHERE LOWER(Nume) = LOWER('%s')", plname); mysql_query(query); format(query, sizeof(query), "UPDATE players SET Locked='%d' WHERE LOWER(Name) = LOWER('%s')", PlayerData[playerid][pLocked], plname); mysql_query(query); } else if(PlayerData[playerid][pBanoP] == hour) { if(PlayerData[playerid][pBanmP] < minute) { new query[128]; PlayerData[playerid][pLocked] = 0; format(query, sizeof(query), "DELETE FROM banuri WHERE LOWER(Nume) = LOWER('%s')", plname); mysql_query(query); format(query, sizeof(query), "UPDATE players SET Locked='%d' WHERE LOWER(Name) = LOWER('%s')", PlayerData[playerid][pLocked], plname); mysql_query(query); } else { new string[128]; if(PlayerData[playerid][pBanoP] < 10) { zero1 = "0"; } if(PlayerData[playerid][pBanmP] < 10) { zero2 = "0"; } if(PlayerData[playerid][pBanzP] < 10) { zero3 = "0"; } if(PlayerData[playerid][pBanlP] < 10) { zero4 = "0"; } format(string, sizeof(string), "Contul tau este banat de adminul: %s, pana %s%d/%s%d/%d ora %s%d:%s%d, motivul: %s.",PlayerData[playerid][pAdminBan],zero3,PlayerData[playerid][pBanzP],zero4,PlayerData[playerid][pBanlP],PlayerData[playerid][pBanaP],zero1,PlayerData[playerid][pBanoP],zero2,PlayerData[playerid][pBanmP],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com."); Kick(playerid); return 0; } } else { new string[128]; if(PlayerData[playerid][pBanoP] < 10) { zero1 = "0"; } if(PlayerData[playerid][pBanmP] < 10) { zero2 = "0"; } if(PlayerData[playerid][pBanzP] < 10) { zero3 = "0"; } if(PlayerData[playerid][pBanlP] < 10) { zero4 = "0"; } format(string, sizeof(string), "Contul tau este banat de adminul: %s, pana %s%d/%s%d/%d ora %s%d:%s%d, motivul: %s.",PlayerData[playerid][pAdminBan],zero3,PlayerData[playerid][pBanzP],zero4,PlayerData[playerid][pBanlP],PlayerData[playerid][pBanaP],zero1,PlayerData[playerid][pBanoP],zero2,PlayerData[playerid][pBanmP],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com."); Kick(playerid); return 0; } } else { new string[128]; if(PlayerData[playerid][pBanoP] < 10) { zero1 = "0"; } if(PlayerData[playerid][pBanmP] < 10) { zero2 = "0"; } if(PlayerData[playerid][pBanzP] < 10) { zero3 = "0"; } if(PlayerData[playerid][pBanlP] < 10) { zero4 = "0"; } format(string, sizeof(string), "Contul tau este banat de adminul: %s, pana %s%d/%s%d/%d ora %s%d:%s%d, motivul: %s.",PlayerData[playerid][pAdminBan],zero3,PlayerData[playerid][pBanzP],zero4,PlayerData[playerid][pBanlP],PlayerData[playerid][pBanaP],zero1,PlayerData[playerid][pBanoP],zero2,PlayerData[playerid][pBanmP],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com."); Kick(playerid); return 0; } } else { new string[128]; if(PlayerData[playerid][pBanoP] < 10) { zero1 = "0"; } if(PlayerData[playerid][pBanmP] < 10) { zero2 = "0"; } if(PlayerData[playerid][pBanzP] < 10) { zero3 = "0"; } if(PlayerData[playerid][pBanlP] < 10) { zero4 = "0"; } format(string, sizeof(string), "Contul tau este banat de adminul: %s, pana %s%d/%s%d/%d ora %s%d:%s%d, motivul: %s.",PlayerData[playerid][pAdminBan],zero3,PlayerData[playerid][pBanzP],zero4,PlayerData[playerid][pBanlP],PlayerData[playerid][pBanaP],zero1,PlayerData[playerid][pBanoP],zero2,PlayerData[playerid][pBanmP],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com."); Kick(playerid); return 0; } } else { new string[128]; if(PlayerData[playerid][pBanoP] < 10) { zero1 = "0"; } if(PlayerData[playerid][pBanmP] < 10) { zero2 = "0"; } if(PlayerData[playerid][pBanzP] < 10) { zero3 = "0"; } if(PlayerData[playerid][pBanlP] < 10) { zero4 = "0"; } format(string, sizeof(string), "Contul tau este banat de adminul: %s, pana %s%d/%s%d/%d ora %s%d:%s%d, motivul: %s.",PlayerData[playerid][pAdminBan],zero3,PlayerData[playerid][pBanzP],zero4,PlayerData[playerid][pBanlP],PlayerData[playerid][pBanaP],zero1,PlayerData[playerid][pBanoP],zero2,PlayerData[playerid][pBanmP],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com."); Kick(playerid); return 0; } } else { new string[128]; format(string, sizeof(string), "Contul tau este banat de adminul: %s, pana %s%d/%s%d/%d ora %s%d:%s%d, motivul: %s.",PlayerData[playerid][pAdminBan],zero3,PlayerData[playerid][pBanzP],zero4,PlayerData[playerid][pBanlP],PlayerData[playerid][pBanaP],zero1,PlayerData[playerid][pBanoP],zero2,PlayerData[playerid][pBanmP],PlayerData[playerid][pBanReason]); SendClientMessage(playerid, COLOR_LIGHTRED, string); SendClientMessage(playerid, COLOR_WHITE, "Pentru unban viziteaza sa-mp.com."); Kick(playerid); return 0; } } } gPlayerAccount[playerid] = 1; PlayerData[playerid][pSQLID] = sqlaccountstatus; PlayAudioStreamForPlayer(playerid,"http://sa-mp.com/gf.mp3"); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, ""); SendClientMessage(playerid, COLOR_WHITE, "> Bine ai venit pe serverul {ff0000}sa-mp RPG{FFFFFF}."); SendClientMessage(playerid, COLOR_WHITE, "> Trebuie sa te loghezi/inregistrezi pentru a te juca pe server."); SendClientMessage(playerid, COLOR_WHITE, "> Dupa ce te loghezi, foloseste /help pt. comenzile disponibile."); SendClientMessage(playerid, COLOR_WHITE, "> Pentru alte intrebari foloseste /ajutor."); SendClientMessage(playerid, 0x0080FFFF, "-----------------------------------------------------------------------------------------------------------"); if(getdate() == expirare) { SendClientMessage(playerid, COLOR_GRAD1, "Ti-a sunat ceasul!"); } } else { gPlayerAccount[playerid] = 0; } return 1; }[/pawn]
  3. [pawn]if(strcmp(cmd, "/bant", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /bant [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } if(bantime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "** Are you trying to ban this server?"); new year, month,day; getdate(year, month, day); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); new playersip[256]; GetPlayerIp(giveplayerid,playersip, sizeof(playersip)); SendClientMessage(giveplayerid,CRISTIAN,"|______________Ban Info______________|"); format(string, sizeof(string), " Your nick: %s !",giveplayer); SendClientMessage(giveplayerid, COLOR_GRAD1, string); format(string, sizeof(string), " Your ip is: %s !",playersip); SendClientMessage(giveplayerid, COLOR_GRAD2, string); format(string, sizeof(string), " You are banned by: %s !",sendername); SendClientMessage(giveplayerid, COLOR_GRAD3, string); format(string, sizeof(string), " Reason: %s !",(result)); SendClientMessage(giveplayerid, COLOR_GRAD4, string); format(string, sizeof(string), " Data: %d/%d/%d !",day,month,year); SendClientMessage(giveplayerid, COLOR_GRAD5, string); SendClientMessage(giveplayerid,CRISTIAN,"|______________Ban Info______________|"); SendClientMessage(giveplayerid,COLOR_LIGHTRED,"[bAN INFO]: Poti face o cerere de unban pe forumul nostru.Forumul este www.zonek.ro/forum Succes !"); SendClientMessage(giveplayerid,COLOR_WHITE,"[HINT]: Te sfatuim sa faci o poza la aceste informatii,si sa o postezi cand faci cerere unban.Apasa F8 pentru a face poza !"); bantime[playerid] = 1; SetTimerEx("bant", 10000, 0, "%d", playerid); PlayerInfo[giveplayerid][pLocked] = 1; Ban(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }[/pawn]
  4. Salut va rog sa ma ajutati , cum pot face atunci cand un player banat vrea sa se conecteze pe server sa ii apara informatii despre ban (zi-ora/admin care l-a banat/reason) PS. serverul nu este pe mysql.
  5. if(strcmp(cmd, "/gotosf", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pHelper] >= 3) { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -1417.0,-295.8,14.1); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, -1417.0,-295.8,14.1); } SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported"); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command!"); } } return 1; } Sper ca te-am ajutat! :D
  6. Multumesc Leon pentru raspuns se compileaza fara probleme dar aceeasi problema : nu apare al-2-leac checkpoint , va rog ajutati-ma !
  7. Scuze pentru dublu post dar poate cineva sa ma ajute ?
  8. Salut , as avea nevoie de putin ajutor cu /cuff , cand dau cuff unui player ii apar catusele doar pe mana dreapta. Am facut update la include dar acelasi lucru..... SS: [img width=500 height=375] Aici este codul: new SPECIAL_ACTION_CUFFED; if(strcmp(cmd, "/cuff", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsACop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /cuff [Playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid)) { SendClientMessage(playerid, COLOR_GREY, " You can't Cuff Cops !"); return 1; } if(PlayerCuffed[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " Player already Cuffed !"); return 1; } if (ProxDetectorS(3.0, playerid, giveplayerid)) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Cuff yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s ti-a pus catusele pe maini, nu mai poti pelca nicaieri.", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* I-ai pus catusile lui %s, sa nu mai poata pleca nicaieri.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s i-a pus catusile lui %s.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3); SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000); SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_CUFFED); PlayerCuffed[giveplayerid] = 2; PlayerCuffedTime[giveplayerid] = 180; } else { SendClientMessage(playerid, COLOR_GREY, " Acest player nu este langa tine !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Acest player este Offline !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Nu esti Cop / S.W.A.T / National Guard !"); } } return 1; } if(strcmp(cmd, "/uncuff", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsACop(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /uncuff [Playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(3.0, playerid, giveplayerid)) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Uncuff yourself!"); return 1; } if(PlayerCuffed[giveplayerid]) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s ti-a dat catusile jos.", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* I-ai dat catusile jos lui %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); GameTextForPlayer(giveplayerid, "~g~Uncuffed", 2500, 3); for(new i;i<10;i++) RemovePlayerAttachedObject(giveplayerid,i); SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_NONE); TogglePlayerControllable(giveplayerid, 1); PlayerCuffed[giveplayerid] = 0; } else { SendClientMessage(playerid, COLOR_GREY, " That player isn't Tied up !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Acest player nu este langa tine !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Acest player este Offline !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " Nu esti Cop / S.W.A.T / National Guard !"); } }//not connected return 1; } Va rog ajutati-ma !
  9. diablo16

    Intrebare

    Trebuie sa faci ceva de genu : if(strcmp(cmd, "/cmds", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GRAD1,":: ACCOUNT :: /rules /login /stats /changepass /levelup /upgrade"); } return 1; }
  10. Daca ai CarOwnership uita-te in cars.cfg daca masina respectiva nu este luata deja de un player sau daca acel player este de pe serverul tau sterge-i masina din fila lui din users cum a zis si Evilboy .
  11. La Nume[playerid]= TextDrawCreate([color=red][b]54.000000,322.000000[/b][/color],pnamee); trebuie sa schimbi coordonatele de aceea nu iti apare textdraw-ul unde il vrei tu.
  12. da dispare si cand trebuie sa apara al -2-lea nu mai apare ....
  13. Va rog ajutati-ma cu dmv-ul : dau /dmv ma spawneaza in masina trec prin primul checkpoint dar urmatorul checkpoint nu mai apare ! Aici este codul : #include <a_samp> #define COLOR_LIGHTBLUE 0x33CCFFAA #define COLOR_GRAD1 0xB4B5B7FF #define MAX_STRING 255 new dmv; new dmvc; new CP[MAX_PLAYERS]; new TakingLesson[MAX_PLAYERS]; forward PlayerToPoint(); enum pInfo { pCarLic, } new PlayerInfo[MAX_PLAYERS][pInfo]; public OnPlayerConnect(playerid) { SetVehicleNumberPlate(dmvc, " School"); return 1; } public OnPlayerEnterCheckpoint(playerid) { //new string[128]; //new name[MAX_PLAYER_NAME]; if(CP[playerid]==200)//dmv_01 { if(IsPlayerInVehicle(playerid, dmvc)) { DisablePlayerCheckpoint(playerid); CP[playerid] = 201; SetPlayerCheckpoint(playerid, 1432.4354,-1658.6343,13.1245, 5.0); } else { SendClientMessage(playerid, COLOR_LIGHTBLUE,"Examen: Nu esti in masina!"); SendClientMessage(playerid, COLOR_LIGHTBLUE,"Examen: Nu ai luat licenta de condus,incearca din nou !"); DisablePlayerCheckpoint(playerid); RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(dmvc); SetVehicleNumberPlate(dmvc, " School"); TakingLesson[playerid] = 0; } } else if(CP[playerid]==201)//dmv_02 { DisablePlayerCheckpoint(playerid); CP[playerid] = 202; SetPlayerCheckpoint(playerid, 1432.3827,-1588.9227,13.1318, 5.0); } else if(CP[playerid]==202)//dmv_03 { DisablePlayerCheckpoint(playerid); CP[playerid] = 203; SetPlayerCheckpoint(playerid, 1454.7500,-1480.2014,13.0978, 5.0); } else if(CP[playerid]==203)//dmv_04 { DisablePlayerCheckpoint(playerid); CP[playerid] = 204; SetPlayerCheckpoint(playerid, 1457.2000,-1439.2382,13.1303, 5.0); } else if(CP[playerid]==204)//dmv_05 { DisablePlayerCheckpoint(playerid); CP[playerid] = 205; SetPlayerCheckpoint(playerid, 1429.9436,-1437.6150,13.1244, 5.0); } else if(CP[playerid]==205)//dmv_06 { DisablePlayerCheckpoint(playerid); CP[playerid] = 206; SetPlayerCheckpoint(playerid, 1423.7155,-1398.9248,13.1238, 5.0); } else if(CP[playerid]==206)//dmv_07 { DisablePlayerCheckpoint(playerid); CP[playerid] = 207; SetPlayerCheckpoint(playerid, 1350.0922,-1393.0492,13.1469, 5.0); } else if(CP[playerid]==207)//dmv_08 { DisablePlayerCheckpoint(playerid); CP[playerid] = 208; SetPlayerCheckpoint(playerid, 1106.5748,-1397.0431,13.1716, 5.0); } else if(CP[playerid]==208)//dmv_09 { DisablePlayerCheckpoint(playerid); CP[playerid] = 209; SetPlayerCheckpoint(playerid, 1059.6833,-1419.8898,13.1155, 5.0); } else if(CP[playerid]==209)//dmv_10 { DisablePlayerCheckpoint(playerid); CP[playerid] = 210; SetPlayerCheckpoint(playerid, 1035.0563,-1571.5737,13.1341, 5.0); } else if(CP[playerid]==210)//dmv_11 { DisablePlayerCheckpoint(playerid); CP[playerid] = 211; SetPlayerCheckpoint(playerid, 1143.5441,-1574.9717,13.0121, 5.0); } else if(CP[playerid]==211)//dmv_12 { DisablePlayerCheckpoint(playerid); CP[playerid] = 212; SetPlayerCheckpoint(playerid, 1289.9336,-1574.8125,13.1246, 5.0); } else if(CP[playerid]==212)//dmv_13 { DisablePlayerCheckpoint(playerid); CP[playerid] = 213; SetPlayerCheckpoint(playerid, 1295.0909,-1659.1091,13.1246, 5.0); } else if(CP[playerid]==213)//dmv_14 { DisablePlayerCheckpoint(playerid); CP[playerid] = 214; SetPlayerCheckpoint(playerid, 1295.0031,-1704.4797,13.1240, 5.0); } else if(CP[playerid]==214)//dmv_15 { DisablePlayerCheckpoint(playerid); CP[playerid] = 215; SetPlayerCheckpoint(playerid, 1299.5117,-1817.1479,13.1245, 5.0); } else if(CP[playerid]==215)//dmv_16 { DisablePlayerCheckpoint(playerid); CP[playerid] = 216; SetPlayerCheckpoint(playerid, 1300.8134,-1855.0059,13.1245, 5.0); } else if(CP[playerid]==216)//dmv_17 { DisablePlayerCheckpoint(playerid); CP[playerid] = 217; SetPlayerCheckpoint(playerid, 1389.0083,-1874.1768,13.1245, 5.0); } else if(CP[playerid]==217)//dmv_18 { DisablePlayerCheckpoint(playerid); CP[playerid] = 218; SetPlayerCheckpoint(playerid, 1523.0303,-1874.8875,13.1266, 5.0); } else if(CP[playerid]==218)//dmv_19 { DisablePlayerCheckpoint(playerid); CP[playerid] = 219; SetPlayerCheckpoint(playerid, 1571.1161,-1872.5188,13.1252, 5.0); } else if(CP[playerid]==219)//dmv_20 { DisablePlayerCheckpoint(playerid); CP[playerid] = 220; SetPlayerCheckpoint(playerid, 1572.3271,-1733.9789,13.1269, 5.0); } else if(CP[playerid]==220)//dmv_21 { DisablePlayerCheckpoint(playerid); CP[playerid] = 221; SetPlayerCheckpoint(playerid, 1531.4258,-1730.1346,13.1245, 5.0); } else if(CP[playerid]==221)//dmv_22 { DisablePlayerCheckpoint(playerid); CP[playerid] = 222; SetPlayerCheckpoint(playerid, 1437.5671,-1730.2736,13.1254, 5.0); } else if(CP[playerid]==222)//dmv_23 { DisablePlayerCheckpoint(playerid); CP[playerid] = 223; SetPlayerCheckpoint(playerid, 1424.2367,-1694.3533,13.2030, 5.0); } else if(CP[playerid]==223)//dmv_Final { new pName[24]; new str[128]; GetPlayerName(playerid, pName, 24); GivePlayerMoney(playerid, -5000); format(str, 128,"dmven: Felicitari %s! Ai luat licenta de condus.", pName); SendClientMessage(playerid, COLOR_LIGHTBLUE, str); RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(dmvc); SetVehicleNumberPlate(dmvc, " School"); TakingLesson[playerid] = 0; PlayerInfo[playerid][pCarLic] = 1; DisablePlayerCheckpoint(playerid); } return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == dmv) { GameTextForPlayer(playerid,"~g~Bine ai venit la DMV ~n~~y~Scrie /dmv pentru licenta de condus ~n~~w~Costa: $5000", 5000, 3); } } public OnFilterScriptInit() { dmv = CreatePickup(1239, 23, 1412.8313,-1700.3066,13.5395); //dmv_DMV dmvc = AddStaticVehicleEx(506,1413.2147,-1717.5602,13.2899,359.6807,12,12,10); //dmv Car } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { //----------------------------------[dmv]----------------------------------------------- if(strcmp(cmdtext, "/dmv", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pCarLic] == 0) { if(IsPlayerInRangeOfPoint(playerid, 3.0, 1412.8313, -1700.3066, 13.5395)) { CP[playerid] = 200; SetPlayerCheckpoint(playerid, 1421.1475,-1699.3237,13.2888, 4.0); TakingLesson[playerid] = 1; PutPlayerInVehicle(playerid, dmvc, 0); SendClientMessage(playerid, COLOR_LIGHTBLUE, "dmv: Please follow the checkpoints and drive safety!"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You already have a Drive License !"); return 1; } } return 1; } return 0; } Multumesc anticipat !
  14. Salut am si eu o problema cu comenzile /towls & /towlv cand duc la drop masina imi aparare mesaj ca am primit 5000$ dar imi revin banii la loc. Aici sunt comenzile /towls/lv : if(strcmp(cmdtext, "/towls", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { if(IsPlayerInVehicle(playerid, tcccar) || IsPlayerInVehicle(playerid, tcccar1) || IsPlayerInVehicle(playerid, tcccar2) || IsPlayerInVehicle(playerid, tcccar3)) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { if(PlayerInfo[playerid][pTow] >= 1) { if(towtimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "** You already towed a car, wait 3 minutes!"); PlayerInfo[playerid][pTow] -= 1; CP[playerid] = 199; SetPlayerCheckpoint(playerid, 2409.8416,-1425.7860,23.9826, 5.0); SendClientMessage(playerid, COLOR_GREY, "Drive to Warehouse to destroy the towed car."); towtimer[playerid] = 0; SetTimerEx("towtime", 0, 0, "%d", playerid); } else SendClientMessage(playerid, COLOR_GRAD1, "** You cannot tow any car till PayDay."); } else SendClientMessage(playerid, COLOR_GRAD1, "** You dont towed a car !"); } else SendClientMessage(playerid, COLOR_GRAD1, "** You are not in a Tow Truck !"); } } return 1; } if(strcmp(cmdtext, "/towlv", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { if(IsPlayerInVehicle(playerid, tcccar) || IsPlayerInVehicle(playerid, tcccar1) || IsPlayerInVehicle(playerid, tcccar2) || IsPlayerInVehicle(playerid, tcccar3)) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { if(PlayerInfo[playerid][pTow] >= 1) { if(towtimer[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, "** You already towed a car, wait 3 minutes!"); PlayerInfo[playerid][pTow] -= 1; CP[playerid] = 199; SetPlayerCheckpoint(playerid, 2201.7668,938.9688,10.6974, 5.0); SendClientMessage(playerid, COLOR_GREY, "Drive to Warehouse to destroy the towed car."); towtimer[playerid] = 0; SetTimerEx("towtime", 0, 0, "%d", playerid); } else SendClientMessage(playerid, COLOR_GRAD1, "** You cannot tow any car till PayDay."); } else SendClientMessage(playerid, COLOR_GRAD1, "** You dont towed a car !"); } else SendClientMessage(playerid, COLOR_GRAD1, "** You are not in a Tow Truck !"); } } return 1; } Iar aici sunt liniile cand distrugi masina: else if(CP[playerid]==198)//TCC LS { new towedcar; towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid)); GivePlayerMoney(playerid, 5000); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You destroyed the car for $5000"); GameTextForPlayer(playerid, "~b~Car was successful destroyed", 2500, 1); SetVehicleToRespawn(towedcar); DisablePlayerCheckpoint(playerid); } else if(CP[playerid]==199)//TCC LV { new towedcar; towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid)); GivePlayerMoney(playerid, 5000); SendClientMessage(playerid, COLOR_LIGHTBLUE, "You destroyed the car for $5000"); GameTextForPlayer(playerid, "~b~Car was successful destroyed", 2500, 1); SetVehicleToRespawn(towedcar); DisablePlayerCheckpoint(playerid); } Va rog ajutati-ma.
  15. Va rog sa ma ajutati la aceste 2 comenzi : la /fdeposit imi arata ca-mi ia banii se adauga in contul familiei dar banii revin la mine in mana iar la /fwithdraw imi arata ca iau banii din contul familiei dar nu-mi da banii. Poze cu problema /fdeposit : >>>SS 1: >>>SS 2: [img width=500 height=375]http://desmond.imageshack.us/Himg84/scaled.php?server=84&filename=samp057qz.png&res=landing Poze cu problema /fwithdraw >>>SS 1: [img width=500 height=375]http://desmond.imageshack.us/Himg801/scaled.php?server=801&filename=samp058pt.png&res=landing >>>SS 2: [img width=500 height=375]http://desmond.imageshack.us/Himg692/scaled.php?server=692&filename=samp059yw.png&res=landing Uitati si liniile : [pawn]if(strcmp(cmd, "/fdeposit", true) == 0) { if(IsAMember(playerid)) { if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fdeposit [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fdeposit [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much"); return 1; } GivePlayerMoney(playerid,-cashdeposit); new curfunds = PlayerInfo[playerid][pAccf]; PlayerInfo[playerid][pAccf]=cashdeposit+PlayerInfo[playerid][pAccf]; SendClientMessage(playerid, COLOR_WHITE, "|___ SAFE BOX ___|"); format(string, sizeof(string), " Old Balance: $%d", curfunds); SendClientMessage(playerid, COLOR_GRAD2, string); format(string, sizeof(string), " Deposit: $%d",cashdeposit); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_GRAD6, "|-----------------|"); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } } return 1; } if(strcmp(cmd, "/fwithdraw", true) == 0) { if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 13 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 16) { if (PlayerToPoint(30.0, playerid,-2159.122802,641.517517,1052.381713) || PlayerToPoint(30.0, playerid,2324.419921,-1145.568359,1050.710083) || PlayerToPoint(30.0, playerid,1277.9442,-837.3730,1085.6328) || PlayerToPoint(30.0, playerid,1710.433715,-1669.379272,20.225049) || PlayerToPoint(30.0, playerid,942.171997,-16.542755,1000.929687) || PlayerToPoint(30.0, playerid,964.106994,-53.205497,1001.124572)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fwithdraw [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } new cashdeposit = strval(tmp); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fwithdraw [amount]"); format(string, sizeof(string), " You Have $%d in your hq.", PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (cashdeposit > PlayerInfo[playerid][pAccf] || cashdeposit < 1) { SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much !"); return 1; } //ConsumingMoney[playerid] = 1; GivePlayerMoney(playerid,cashdeposit); PlayerInfo[playerid][pAccf]=PlayerInfo[playerid][pAccf]-cashdeposit; format(string, sizeof(string), " You Have Withdrawn $%d from your hq Total: $%d ", cashdeposit,PlayerInfo[playerid][pAccf]); SendClientMessage(playerid, COLOR_YELLOW, string); return 1; } } return 1; }[/pawn]
  16. Va rog sa ma ajutati cu ceva la aceasta comanda as vrea ca cei din T.T.C sa poata dece mai multe masini pe PayDay nu doar o masina Aceasta este comanda va rog ajutati-ma ! [pawn]if(strcmp(cmd, "/tow", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /tow [LS or SF]"); return 1; } new newcar = GetPlayerVehicleID(playerid); new x_nr[256]; x_nr = strtok(cmdtext, idx); if(strcmp(x_nr,"ls",true) == 0) { if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { if(!IsATowcar(newcar)) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { if(PlayerInfo[playerid][pTow] >= 3) { PlayerInfo[playerid][pTow] -= 3; CP[playerid] = 111; SetPlayerCheckpoint(playerid, 2412.4646,-1426.3083,23.9848, 5.0); SendClientMessage(playerid, COLOR_YELLOW, "Drive to Warehouse to destroy the towed car."); } else { SendClientMessage(playerid, COLOR_GRAD1, " You cannot tow any car till PayDay."); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You dont towed a car !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not in a Tow Truck !"); } } } } new x_nr[256]; new newcar = GetPlayerVehicleID(playerid); x_nr = strtok(cmdtext, idx); if(strcmp(x_nr,"sf",true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) { if(!IsATowcar(newcar)) { if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) { if(PlayerInfo[playerid][pTow] >= 3) { PlayerInfo[playerid][pTow] -= 3; CP[playerid] = 111; SetPlayerCheckpoint(playerid, 1617.2562,-2314.1616,13.5537, 5.0); SendClientMessage(playerid, COLOR_YELLOW, "Drive to Warehouse to destroy the towed car."); } else { SendClientMessage(playerid, COLOR_GRAD1, " You cannot tow any car till PayDay."); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You dont towed a car !"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not in a Tow Truck !"); } } } return 1; } }[/pawn] Multumesc anticipat.
  17. -----Salut as avea si eu o problema cu un GM care da cateva erori si nu imi dau seama de la ce pot fi daca se poate sa-mi spuneti de la ce sunt si cum se pot rezolva : [pawn]C:\Users\bisy\Desktop\eGamer.pwn(465) : error 070: rational number support was not enabled C:\Users\bisy\Desktop\eGamer.pwn(918) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(918) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(919) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(919) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(920) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(920) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(930) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(931) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(932) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(933) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(934) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(937) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(937) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(938) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(939) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(939) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(940) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(941) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(941) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(942) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(942) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(943) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(943) : error 009: invalid array size (negative, zero or out of bounds) C:\Users\bisy\Desktop\eGamer.pwn(944) : error 017: undefined symbol "MAX_PLAYERS" C:\Users\bisy\Desktop\eGamer.pwn(944) : error 009: invalid array size (negative, zero or out of bounds) Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors. [/pawn]
  18. Salut as avea si eu nevoie de ajutor la anti-spam , este facut ca innainte sa dea kick playerului care spameaza , sa-i dea un mesaj. As vrea sa nu mai dea kick atunci cand spameaza intruna ci sa-i apara numai lui mesaj cv de genu ca in ss : http://img713.imageshack.us/img713/8329/samp003sj.png >>>> Aici este FS : /* # ========================= # # SA-MP Simple Anti-Spam # # ------------------------- # # @Authour(s): ChristopherM # # ========================= # */ #include <a_samp> forward ResetCount(playerid); forward ResetCommandCount(playerid); #define SpamLimit (3000) public OnFilterScriptInit() { printf("[*] ChristopherM's Anti-Spam Loaded. Limit: %d", SpamLimit); return 1; } public OnFilterScriptExit() { print("[*] ChristopherM's Anti-Spam Unloaded."); return 1; } public OnPlayerText(playerid, text[]) { new TCount, KMessage[128]; TCount = GetPVarInt(playerid, "TextSpamCount"); TCount++; SetPVarInt(playerid, "TextSpamCount", TCount); if(TCount == 2) { SendClientMessage(playerid, 0xFFFFFF, "[Anti-Spam]: Warning you are one message away from being kicked!"); } else if(TCount == 3) { GetPlayerName(playerid, KMessage, sizeof(KMessage)); format(KMessage, sizeof(KMessage), "[Anti-Spam]: %s has been kicked for chat spamming.", KMessage); SendClientMessageToAll(0xFFFFFF, KMessage); print(KMessage); Kick(playerid); } SetTimerEx("ResetCount", SpamLimit, false, "i", playerid); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { new TCount, KMessage[128]; TCount = GetPVarInt(playerid, "CommandSpamCount"); TCount++; SetPVarInt(playerid, "CommandSpamCount", TCount); if(TCount == 2) { SendClientMessage(playerid, 0xFFFFFF, "[Anti-Spam]: Warning you are one command away from being kicked!"); } else if(TCount == 3) { GetPlayerName(playerid, KMessage, sizeof(KMessage)); format(KMessage, sizeof(KMessage), "[Anti-Spam]: %s has been kicked for command spamming.", KMessage); SendClientMessageToAll(0xFFFFFF, KMessage); print(KMessage); Kick(playerid); } SetTimerEx("ResetCommandCount", SpamLimit, false, "i", playerid); } public ResetCount(playerid) { SetPVarInt(playerid, "TextSpamCount", 0); } public ResetCommandCount(playerid) { SetPVarInt(playerid, "CommandSpamCount", 0); } >>>>> Va rog ajutati-ma !
  19. Mersi de raspuns este pus =1 dar tot aceeasi treaba
  20. Salut am si eu o problema cu register/login , scriu pass , intra pe server dar cand vreau sa scriu orice comanda imi scrie : You havent logged in yet ! Daca vreti lasati un id cv. -----> SS : Va rog ajutati-ma ! Multumesc anticipat.
×
×
  • 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.