Jump to content

Doffy

Members
  • Posts

    1,546
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Doffy

  1. سكربت رائع ، لاكن ما كان لازم تحط الاهدائات كنت تقدر تسويها مثل ماقلك الاخ ابوسولو شكرا علي الاهداء بالتوفيق لك
  2. تستخدمه لمن تيجي تسوي لوب
  3. function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("", source, 0, 255, 0) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) function loadClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("* تم إستعادة ملابسك المحفوظة *", source, 0, 255, 0) textures = {} models = {} else outputChatBox("* يرجى تسجيل الدخول أولا *", source, 255, 0, 0) end end addEvent( "backcj", true ) addEventHandler( "backcj", root, loadClothes ) function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then if ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} else outputChatBox("* يرجى وضع شخصية رقم 0 لحفظ الملابس *", source, 255, 0, 0) end else outputChatBox("* يرجى تسجيل الدخول أولا *", source, 255, 0, 0) end end addEvent( "savecj", true ) addEventHandler( "savecj", root, saveClothes ) - سيرفر جرب وعطني خبر
  4. اقول لا تغلط مشان الكل يسكتلك ، تفهم ؟
  5. طيب علي الاقل اتكلم بأسلوب زين لاني محترمك للحين
  6. سوي داتا علي الاكس بي وسوي جلب للداتا بمتغير وحط عليه اكاونت داتا ، بس هيك كل القصة الا لو بدك ياه جاهز
  7. داري هوا بيسوي متغير ويجلب فيه الداتا ويحط عليه الاكونت داتا
  8. والله اني حول ض1
  9. - . - انت الحين شسويت ؟ انت الحين خليت اللاعب يجي اسم حسابه بالشات + التصحيح كذا addEventHandler("onPlayerLogin",getRootElement(), function () acc = getPlayerAccount(source) fahd = getPlayerName(acc) setElementData(fahd,"Name","..fahd..") end)
  10. getDistanceBetweenPoints3D
  11. اولا انت جربت حقي ؟
  12. اولا انا مجربه قبل ما اعطيه ياه ثانيا انت جربته ؟
  13. addEventHandler("onPlayerChat",root, function () for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players )) then if isGuestAccount( getPlayerAccount( players )) then cancelEvent() outputChatBox( "[Login-System]#ffffffYou should login to talk in chat . ",source,255,255,0,true) end end end end)
  14. --Server "onPlayerChat" isGuestAccount cancelEvent outputChatBox
  15. --Client "onClientGUIClick" guiGetText triggerServerEvent guiGridListClear guiGridListAddRow guiGridListGetItemText guiGridListSetItemText guiGridListSetItemData guiGridListGetItemData ----Server addCommandHandler triggerClientEvent addEvent executeSQLQuery executeCommandHandler --or --dbFunctions حاول
×
×
  • Create New...