Jump to content

Mr.Mostafa

Members
  • Posts

    1,377
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Mr.Mostafa

  1. addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[91] ) then local aPlayer = getPlayerFromName ( guiGridListGetItemText ( AccOnline,guiGridListGetSelectedItem ( AccOnline ),1 ) ); triggerServerEvent ( 'aOnTf3elTagToplayer',localPlayer,aPlayer,aAccc,playerName,Sel,bind,getPlayerName(localPlayer),guiGetText(GUIEditor.edit[1])) end end ) addEvent ( "aOnTf3elTagToplayer", true ) addEventHandler ( "aOnTf3elTagToplayer", root, function ( aPlayer ) local playeraccount = getPlayerAccount ( aPlayer ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then setAccountData ( playeraccount , "diistag" , "Yes" ) outputChatBox('تم تفعيل تاج لهذا الاعب',source,255,0,0) end end ) انا مسويها كدا وظابطه وكل شي - لكن نفس المشكلة تظبط علي الي يضغط الزر بس او مدري وش فيه ممكن تصلحه لي؟ @N3xT
  2. لسا كنت بقول كدا او يمكن هو حاذف رتبة ادمن من سرفره -- # Client addEventHandler ( "onClientGUIClick" , root , function ( ) if source == button1 then showCursor(false) guiSetVisible(window,false) triggerServerEvent ( "adminGiveRank",localPlayer) end end ) addEvent("adminGiveRank",true) addEventHandler("adminGiveRank",root, function() local account = getAccountName(getPlayerAccount(source)); if ( account and not isGuestAccount ( account ) ) then aclGroupAddObject (aclGetGroup("Console"), "user."..account) outputChatBox("تم ترقيتك ادمن !",source,255,255,255,true) else outputChatBox("يجب تسجيل الدخول لاخد رتبة !",source,255,255,255,true) end end ) جرب كدا !
  3. هادا مب خطا - رستر المود وصور الي يطلع بالاحمر
  4. جربت الكود الي فوق؟
  5. debugscript 3 -- # Server addEvent("admin",true) addEventHandler("admin",root, function() local account = getAccountName(getPlayerAccount(source)); if ( account and not isGuestAccount ( account ) ) then aclGroupAddObject (aclGetGroup("Admin"), "user."..account) else outputChatBox("يجب تسجيل الدخول لاخد رتبة !",source,255,255,255,true) end end )
  6. -- # Client addEventHandler ( "onClientGUIClick" , root , function ( ) if source == button1 then showCursor(false) guiSetVisible(window,false) triggerServerEvent ( "admin",localPlayer) end end ) -- # Server addEvent("admin",true) addEventHandler("admin",root, function() local accPlr = getPlayerAccount ( source ) if ( accPlr and not isGuestAccount ( accPlr ) ) then aclGroupAddObject (aclGetGroup("Admin"), "user."..getAccountName(accPlr)) end end )
  7. اطرح اكوادك كاملة حقت الضغط علي الزر بكلنت
  8. ابيهم بسطر واحد بدون else
  9. لازم تجيب حساب الي ضغط جرب addEvent("admin",true) addEventHandler("admin",root, function() local accPlr = getPlayerAccount ( source ) if ( accPlr and not isGuestAccount ( accPlr ) ) then aclGroupAddObject (aclGetGroup("Admin"), "user."..accPlr) end end )
  10. حاول في الكود وبساعدك
  11. تفضل -- # Client 1 bindKey ( "F6" , "down" , function() triggerServerEvent("ifThisAdmin", localPlayer) end ) -- # Server addEvent ( "ifThisAdmin", true) addEventHandler( "ifThisAdmin",root, function ( ) local acc = getPlayerAccount ( source ) if acc and not isGuestAccount ( acc ) then if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( "VIP" ) ) then triggerClientEvent ( source, "thisAdminOpenPanel", resourceRoot ) else outputChatBox("يجب ان تكون فيب لتفتح اللوحة",source,125,125,125,true) end end end ) -- # Client 2 addEvent ( "thisAdminOpenPanel", true ) addEventHandler ( "thisAdminOpenPanel", root, function () guiSetVisible( main, not guiGetVisible( main ) ) showCursor( guiGetVisible( main ) ) playSound("open.wav") end )
  12. addEventHandler('onClientGUIClick',root, function() if (source == btn.soon) then playSound("open.wav") guiSetEnabled (btn.soon ,false) setTimer(guiSetEnabled, 150000, 1 ,btn.soon ,true) if velocity == false then velocity = true outputChatBox("تم فتح خاصية السرعة ") else velocity = false outputChatBox("تم فتح خاصية السرعة ") end end end ) bindKey("w","down", function () if velocity == true then local vx, vy, vz = getElementVelocity(localPlayer, vx+1, vy+1, vz) end end )
  13. onClientGUIClick -- بتستخدمه عشان تتحقق ان الاعب ضغط الزر triggerServerEvent -- بتستخدمه عشان ترسل ترايقر للسيرفر - لان كود اعطاء الرتبة سيرفر aclGroupAddObject -- بتستخدمه عشان تعطي للشخص الرتبة math.random SetElementFrozen setTimer
  14. سلام عليكم كيف اتحقق ان الاعب ضغط مرتين علي القريد ليست
  15. سلام عليكم عندي مشكلة ! الحين عندي لوحة فيها قريد ليست وفيه اسماء لاعبين ابي لما احدد لاعب واضغط زر رقم 1 يحط داتا للاعب المحدد بان الداتا مثلا ترو ولو ضغطت علي زر رقم 2 ييتحقق لو معه الاكونت داتا = ترو يسويله الي ابيه وابي لو الشخص ما معه الاكونت داتا يرفض اعطائه الشي لما اضغط الزر التاني واحدد عليه والمشكلة محاولتي هادي - تظبط علي الشخص الي يضغط الزر او مدري وش فيها لما احدد نفسي من القريد ليست واضغط الزر رقم 2 يطلب التفعيل لكن لو حددت شخص عادي ما يطلب تفعيل ويعطيه الشي مدري وش السالفة محاولتي : كود الزر الي يفعل addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[91] ) then local aPlayer = getPlayerFromName ( guiGridListGetItemText ( AccOnline,guiGridListGetSelectedItem ( AccOnline ),1 ) ); triggerServerEvent ( 'aOnTf3elTagToplayer',localPlayer,aPlayer ) end ) ----- هادا لما انا اضغط زر يعطي شخص معين داتا الي تقبل التفعيل مثلا addEvent ( "aOnTf3elTagToplayer", true ) addEventHandler ( "aOnTf3elTagToplayer", root, function ( aPlayer ) local playeraccount = getPlayerAccount ( aPlayer ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then setAccountData ( playeraccount , "diistag" , "Yes" ) outputChatBox('تم وضع تفعيل لهذا الاعب',source,255,0,0) end end ) ----- وهنا يعطيله الداتا الي تقبل التفعيل - تعطي الشخص المعين الي مححدده من القريد ليست كود الزر الي يعطي الشي addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) local aTag = guiGetText ( GUIEditor.edit[1] ) local aColor = guiGetText ( GUIEditor.edit[3] ) if ( source == GUIEditor.button[1] ) then local aPlayer = getPlayerFromName ( guiGridListGetItemText ( playersSerialsGri,guiGridListGetSelectedItem ( playersSerialsGri ),1 ) ); if guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) then triggerServerEvent ( 'aOnSetPlayerTag',localPlayer,aPlayer,'WithName',aTag,aColor ) end end end ) --- هنا لو ضغط زر يرسل ترايقر ويتحقق لو الشخص المعين معه الداتا يعطيه الي ابيه addEvent ( "aOnSetPlayerTag", true ) addEventHandler ( "aOnSetPlayerTag", root, function ( aPlayer,aTag,aColor ) if ( aPlayer and getElementType ( aPlayer ) == 'player' ) then local plrAccount = getPlayerAccount ( aPlayer ) if ( not isGuestAccount ( plrAccount ) ) then if ( getAccountData ( plrAccount , "diistag" ) and getAccountData ( plrAccount , "diistag" ) == "No" ) then return outputChatBox ( 'هذا الاعب ليس لديه تفعيل لتطبيق العملية !', source,255,0,0 ) end if aType == 'WithName' then setElementData ( aPlayer,'aTagPlayer',aTag ) end end end end )
  16. سلام عليكم ابي اسوي قريد ليست يكون فيه لاعبين ولو حددت لاعب وضغطت زر يعطيه نقطة -- ولو عطيته نقطة قبل ما اقدر اعطيه تاني مرة ابدا مثلا لو بعطيه نقطة بسوي من setAccountData +1 لكن كيف اسوي ان لو عطيته مرة ما اقدر اعطيه تاني ابدا؟
  17. سلام عليكم ابي اسوي لو شخص مب مسجل ما يقدر يخش الديربي spawns = {} timerGo = {} setElementData(resourceRoot,"map","no") setElementData(resourceRoot,"winMoney","0") addEventHandler("onPlayerChat",getRootElement(),function(message) if tostring(message) == "ديربي" and checkDuel(source) == "prestart" and ( not checkExistPlrOnDuel(source) ) then
  18. روعة #واصل ياريت تحط الرابط علي ميديا فاير او توب 4 توب = لان دا مب ظابط معي
  19. سلام عليكم ابي كود فك باند سيريال
  20. ممكن الاكواد طيب لاني ما فهمت
×
×
  • Create New...