Jump to content

1337.Ibrahim

Members
  • Posts

    469
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 1337.Ibrahim

  1. setAccountPassword ? for what
  2. @#,+( _xiRoc[K]; > الله يعطيك الف عافية الحين عندي سؤالين كيف اخلي اذا دخل لاعب واحد مايدخله المهمة السؤال الثاني هل الكل يشوف الرسالة ؟ واذا ايه كيف اخلي اللي في المهمة فقط يشوفون الرسالة
  3. انا حاليا برا البيت لا رجعت بجرب
  4. local mission = {} function addPlayers(player,Table) if not getPlayerTable (player,mission) then table.insert(player,Table) setElementData(player,'Mission',true) end end local marker = createMarker(2027.60059, 1007.15759, 10.82031,'cylinder',2,0,255,0,150) Mission = "false" addEventHandler ( "onMarkerHit" , resourceRoot , function (player) if source == marker then if ( Mission == 'false' ) then exports["dxmessages"]:outputDx(player,"Hi "..getPlayerName(player).." #FFFFFFthe mission not started yet","error") return end end end) function openMission (player) thetimer = setTimer(function() exports["dxmessages"]:outputDx(player,"the mission started","success") local Mission = "true" end , 5000 , 1 ) end addEventHandler('onMarkerHit',resourceRoot, function (aPlayer) if getElementType (aPlayer) == 'player' and not isPedInVehicle (aPlayer) then if Mission == false then return end if ( Mission == 'true' ) then setElementDimension ( aPlayer, 100 ) setElementPosition(aPlayer,-2690.51367, 1289.90479, 55.42969) exports["dxmessages"]:outputDx(player,"this join was mission , Good Luck","success") setElementFrozen(aPlayer,true) setElementData(player,'missionR',true) setTimer ( function () Mission = false for _ , plr in ipairs ( getElementsByType ( "player" ) ) do if getElementData ( plr , "MissionR" == true) then setElementFrozen ( plr , false ) exports["dxmessages"]:outputDx(aplayer,"the mission was stated","info") end end end , 5000, 1 ) end end end ) بخصوص getPlayerTable جبته من هالموضوع مدري صح ولا غلط خخ
  5. @#,+( _xiRoc[K]; > ابي اسوي مهمة واتدرب عليها بس , بسوي مهمة جري الحين المشكلة بعد 2 ثانية ماتشتغل المهمة ادري الكود ناقص لاكن انا بكمل الباقي اذا حليت هالمشكلة ^
  6. السلام عليكم وين المشكلة هنا local mission = {} function addPlayers(player,Table) if not getPlayerTable (player,mission) then table.insert(player,Table) setElementData(player,'Mission',true) end end local marker = createMarker(2027.60059, 1007.15759, 10.82031,'cylinder',2,0,255,0,150) local Mission = "false" addEventHandler ( "onMarkerHit" , root , function (player) if source == marker then exports["dxmessages"]:outputDx(player,"Hi "..getPlayerName(player).." #FFFFFFthe mission not started yet","error") if ( Mission == 'false' ) then return end end end) function openMission (player) thetimer = setTimer(function() exports["dxmessages"]:outputDx(player,"the mission started","success") Mission = "true" end , 5000 , 1 ) end) addEventHandler('onMarkerHIT',root,function (aPlayer) if getElementType (aPlayer) == 'player' and not isPedInVehicle (aPlayer) then if Mission == false then return end exports["dxmessages"]:outputDx(aPlayer,"the mission was closed","info") if ( Mission == 'true' ) then setElementDimension ( aPlayer, 100 ) setElementPosition(aPlayer,-2690.51367, 1289.90479, 55.42969) exports["dxmessages"]:outputDx(player,"this join this mission , Good Luck","success") setElementFrozen(aPlayer,true) setElementData(player,'missionR',true) setTimer ( function () Mission = false for _ , plr in ipairs ( getElementsByType ( "player" ) ) do if getElementData ( plr , "MissionR" == true) then setElementFrozen ( plr , false ) exports["dxmessages"]:outputDx(player,"the mission was stated","info") end end end , 5000, 1 ) end end end )
  7. function clientSubmitRegister(button, state) if button == "left" and state == "up" then local arg1 = guiGetText(editUsername) local arg2 = guiGetText(editPassword) if arg1 and arg2 then triggerServerEvent("submitRegister", getRootElement(), localPlayer, arg1, arg2) else guiSetText(labelInfo, "Enter username and password.") end end end addEventHandler("onClientGUIClick", buttonRegister, clientSubmitRegister, false) function weakPW() guiSetText(labelInfo, "Password should be at least 4 characters long") end function unknownError() guiSetText(labelInfo, "An unknown error occured.") end function RegisterSuccess() guiSetText(labelInfo, "you've successfully registered,Press Login") end function registerTaken() guiSetText(labelInfo, "This username is already taken.") end addEvent("unknownError", true) addEvent("registerTaken", true) addEvent("RegisterSuccess", true) addEvent("weakPW", true) addEventHandler("unknownError", getRootElement(), unknownError) addEventHandler("registerTaken", getRootElement(), registerTaken) addEventHandler("RegisterSuccess", getRootElement(), RegisterSuccess) addEventHandler("weakPW", getRootElement(), weakPW) --server function register( player, arg1, arg2 ) local username = getPlayerName ( player ) local password = arg1 if ( arg2 ) then username = arg1 password = arg2 end if ( password ~= nil ) then if ( string.len ( password ) < 4 ) then outputChatBox ( "register: - Password should be at least 4 characters long", player, 255, 100, 70 ) elseif ( addAccount ( username, password ) ) then outputChatBox ( "You have successfully registered! Username: '"..username.."', Password: '"..password.."'(Remember it)", player, 255, 100, 70 ) outputServerLog ( "ADMIN: "..getPlayerName ( player ).." registered account '"..username.."' (IP: "..getPlayerIP(player).." Serial: "..getPlayerSerial(player)..")" ) elseif ( getAccount ( username ) ) then outputChatBox ( "register: - Account with this name already exists.", player, 255, 100, 70 ) else triggerClientEvent (player, "unknownError", getRootElement()) end end end addEvent("submitRegister", true) addEventHandler("submitRegister", root, register)
  8. اللي مايفهم يروح قسم الشروحات ويتعلم
  9. @!#NssoR_) الله يعطيك الف عافية اخ نصور , اشكرك على الشرح
  10. if ( SQL ) and ( #SQL > 0 ) then [" # "] السلام عليكم , ممكن اعرف وش وظيفة
  11. @Abdul KariM اشكرك جزيل الشكر , الله يسعدك :]] ي شيخ @Master_MTA اشكرك على المساعدة :]
  12. يب كود الاخ عبدالكريم شغال لاكن المشكلة انه يسوي كولمن ثاني انا ابيه بنفس الكولمن
  13. @Master_MTA يب سويت , فيه مشكلة ماتجي الأماكن
  14. for i,v in ipairs(getElementsByType("team")) do guiGridListAddRow guiGridListSetItemText getTeamName guiGridListGetSelectedItem Event : onClientGUIClick setPlayerTeam -- server
  15. tele = { {"=[ القفزه الخونفشاريه ]=",1541.0673828125, -1357.576171875, 329.46615600586}, {"=[ مقر الجيش ]=",146.66674804688, 1720, 17.640625}, {"=[ موقف الباصات ]=",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"=[ الفنادق ]=",-1739.0821533203, 940.56231689453, 24.7421875}, {"=[ الشارع الطويل ]=",-3072.5554199219,-3000.345703125,5}, {"=[ بيت سي جي ]=",2491.12109375, -1667.4482421875, 13.34375} } function loob ( ) guiGridListClear ( GridList ) for i,mk in ipairs(tele) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,mk[1],false,false) guiGridListSetItemData(GridList,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GridList,row,1,0,255,0) end end
  16. مايحتاج اللوحة كاملة اطرح اللوب فقط
  17. هات كود اللوب ؟ -- getPedOccupiedVehicle -- تحقق اذا الاعب داخل السيارة setElementPosition
  18. @Abdul KariM الله يسعدك ويعطيك العافية , بس نفس المشكلة اللي قبل يسوي كولمن ثاني ويضيف المكان فيه
  19. يب ابي اذا ضفت اماكن يشوفونها الزوار
  20. انا مسوي تيبل وحاط فيه الإحداثيات والأماكن الحين فيه مشكلة اذا ضفت مكان يسوي كولمن ثاني ويحط المكان فيه شف http://imgur.com/a/1NszL http://imgur.com/a/GJ8ny
×
×
  • Create New...