Jump to content

Doffy

Members
  • Posts

    1,546
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Doffy

  1. سكربت رائع ، لاكن ما كان لازم تحط الاهدائات كنت تقدر تسويها مثل ماقلك الاخ ابوسولو شكرا علي الاهداء بالتوفيق لك
  2. عن طريق ال dbFunctions
  3. تستخدمه لمن تيجي تسوي لوب
  4. createBlipAttachedTo
  5. 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 ) - سيرفر جرب وعطني خبر
  6. اقول لا تغلط مشان الكل يسكتلك ، تفهم ؟
  7. @!#NssoR_)
  8. طيب علي الاقل اتكلم بأسلوب زين لاني محترمك للحين
  9. سوي داتا علي الاكس بي وسوي جلب للداتا بمتغير وحط عليه اكاونت داتا ، بس هيك كل القصة الا لو بدك ياه جاهز
  10. داري هوا بيسوي متغير ويجلب فيه الداتا ويحط عليه الاكونت داتا
  11. + getElementData setElementData
  12. والله اني حول ض1
  13. - . - انت الحين شسويت ؟ انت الحين خليت اللاعب يجي اسم حسابه بالشات + التصحيح كذا addEventHandler("onPlayerLogin",getRootElement(), function () acc = getPlayerAccount(source) fahd = getPlayerName(acc) setElementData(fahd,"Name","..fahd..") end)
  14. getDistanceBetweenPoints3D
  15. تمام
  16. اولا انت جربت حقي ؟
  17. اولا انا مجربه قبل ما اعطيه ياه ثانيا انت جربته ؟
  18. 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)
  19. --Server "onPlayerChat" isGuestAccount cancelEvent outputChatBox
  20. --Client "onClientGUIClick" guiGetText triggerServerEvent guiGridListClear guiGridListAddRow guiGridListGetItemText guiGridListSetItemText guiGridListSetItemData guiGridListGetItemData ----Server addCommandHandler triggerClientEvent addEvent executeSQLQuery executeCommandHandler --or --dbFunctions حاول
  21. ابحث عنه !
×
×
  • Create New...