Jump to content

ABO-SR777777A

Members
  • Posts

    602
  • Joined

  • Last visited

Everything posted by ABO-SR777777A

  1. كلينت ولا سيرفر؟ الكود حطيته كلينت مشتغل وسيرفر ماشتغل حق وش هو اصلا addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه function () if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه showCursor ( true ) end end )
  2. والله انا مسويه هههههههههههاي
  3. 1ض1ض1ض1ض1ض1ض1ض11ض1ض 1ض1ض1ض1ض1ض1ض1ضض1ضض1 تنكسشوآ اجربه؟
  4. اوكــ شف هنا شف بس هنا يقلي addEvent ( "onSpecialEvent", true ) -- الخطوه الاولى addEventHandler("onSpecialEvent",root,-- الخطوه الثانيه function () if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then -- الخطوه الثالثه guiSetVisible ( GUIEditor_Window[1] ,false ) -- الخطوه الرابعه showCursor ( true ) end end ) هيا قلي خطأ
  5. مانخست ولا شي ا انا بدلت نسختها وقاعد اعدل عليها
  6. function() if ( source == GUIEditor_Button[2] ) then triggerServerEvent("login",getLocalPlayer(), guiGetText(user), guiGetText(pass)) end end ) addEvent( "onGreeting", true ) addEventHandler( "onGreeting", getRootElement(), greetingHandler )
  7. guiGetVisible(Window) guiElement اقصد انه بالويكي , bool guiSetEnabled ( element guiElement, bool enabled ) توقعت انه لازم احط الحاله - true or false ._. + حطيت مثال على نافذه ذذ وش يعني ترايقر وشش يفيد هذا حق وش
  8. طيب اذا كتبت الاسم والرقم صح ماتختفي النافذه ليش؟ وكود REGISTER addEvent("register",true) addEventHandler("register",root, function(player,userName,Password) if ( password ~= "" and password ~= nil ) then local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) else outputChatBox ( "Error creating account, contact the server admin", source ) end else outputChatBox ( "Error creating account, correct syntax: /register ", source ) end end addCommandHandler ( "register", registerPlayer ) الى سويته وش الاخطاء الى فيه + ابي وضيفه اذا دخل السيرفر الشاشه سوده يسجل دخول ويدخل
  9. [15:14:00] ERROR: Client (ROx) triggered serverside event login, but event is not added serverside
  10. حطيته كله كلينت ماشتغل addEvent("Login",true) addEventHandler("Login",root, function( userName,Password ) local v = getAccount ( username, Password ) if ( v ~= false ) then logIn ( client, v, Password ) else outputChatBox ( "Wrong username or password!", client, 255, 255, 0 ) end end ) addEventHandler ("onClientGUIClick", root, function() if ( source == GUIEditor_Button[2] ) then triggerServerEvent("login",getLocalPlayer(), guiGetText(user), guiGetText(pass)) end end )
  11. ابيه بس لي login addEventHandler ("onClientGUIClick", root, function() if ( source == login ) then triggerServerEvent("login",getLocalPlayer(), guiGetText(user), guiGetText(pass)) end )
  12. addEvent("register",true) addEventHandler("register",root, function(player,userName,Password) if ( password ~= "" and password ~= nil ) then local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) else outputChatBox ( "Error creating account, contact the server admin", source ) end else outputChatBox ( "Error creating account, correct syntax: /register ", source ) end end addCommandHandler ( "register", registerPlayer )
  13. bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) ناقله
  14. الكود الثاني addEvent("register",true) addEventHandler("register",root, function(player,userName,Password) if ( password ~= "" and password ~= nil ) then local v = getAccount ( username, password ) if ( v ~= false ) then Tell the user all is done outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) else outputChatBox ( "Error creating account, contact the server admin", source ) end else outputChatBox ( "Error creating account, correct syntax: /register ", source ) end end addCommandHandler ( "register", registerPlayer )
  15. عرفتها بس ابي كود لفتح النافذده ضاع ض1
  16. الكود حقي صح مافي الا خطأ واحد؟
  17. what? addEvent("Login",true) addEventHandler("Login",root, function(player,userName,Password) local v = getAccount ( username, password ) if ( v ~= false ) then login ( Player, account, password ) else outputChatBox ( "Wrong username or password!", thePlayer, 255, 255, 0 ) end end addCommandHandler ( "login", loginPlayer ) اسم الزر هنا addEventHandler ("onClientGUIClick", root, function() if ( source == login ) then triggerServerEvent("login",getLocalPlayer(), guiGetText(user), guiGetText(pass)) elseif ( source == register ) then triggerServerEvent("register",getLocalPlayer(), guiGetText(user), guiGetText(pass)) end end )
  18. تم الاخطأْ addEvent("Login",true) addEventHandler("Login",root, function(player,userName,Password) getAccount ( username, password ) if ( GUIEditor_Label[13] ~= false ) then login ( Player, account, password ) else outputChatBox ( "Wrong username or password!", thePlayer, 255, 255, 0 ) end end addCommandHandler ( "login", loginPlayer )
  19. اها فهمت اوك بسويها وارد لكم خبر
  20. "onPlayerSpawn" setElementModel مثال بسيط الكود معقد شوي
  21. --الدخول-- triggerServerEvent onClientGUIClick getAccount logIn --التسجيل-- getAccount addAccount طيب كيف اسوي button انا لو سويت الاكواد فين احط اسم الزر عشان يدق عليه ويدخله
×
×
  • Create New...