-
Posts
2,013 -
Joined
-
Last visited
Everything posted by iMr.SFA7
-
قلت لك غير ذي blowVehicle ( Vehicle , true ) ل blowVehicle ( v , true )
-
عندك اخطاء بالسيرفر انت سويت لوب وسميت السيارات v ايش جاب المتغير Vehicle ?? حط بدله v وغير plr ل source
-
addEventHandler ("onVehicleEnter", car, function (thePlayer) if getElementData (thePlayer, "Entered") == true then outputChatBox ("You already entered this vehicle before.", thePlayer, 255, 0, 0) removePedFromVehicle (thePlayer) else setElementData (thePlayer, "Entered", true) end end )
-
سوي لوب لكل السيارات واستخدم blowVehicle
-
ما اشوف لردك اي معنى + عندك خطأ بالسطر 10 عدلته انا كنت اكتب الكود وما شفت ردك الا بعد ما ارسلت ردي
-
-- server side addEventHandler ( "onVehicleEnter", car, function ( element ) if getElementType ( element ) == 'player' then if getElementData ( car, "Vehicle" ) ~= true then outputChatBox (" مرحبا بك " , element,255,255,120 ) else cancelEvent ( ) outputChatBox (" عذرا لقد دخل مسبقا " , element,255,255,120 ) setElementData ( car, "Vehicle", true ) end end end )
-
يعين هو و Player نفس شيئ بس انتو تحطوه plr ? تقدر تحطها اي شيء بجانب سيرفر بس ولازم تعرفها بالفنكشن
-
plr = Player الكومماند في السيرفر اللاعب تقدر تعرفه باي شيء مثلا plr مثلا gfdhnvgj
-
try local posFile = xmlLoadFile ("req.xml") function ( ) if not posFile then posFile = xmlCreateFile ("req.xml", "root") end end function add() for id, playeritem in ipairs(getElementsByType("player")) do if source == REQ.button[1] then text = guiGetText(REQ.edit[1]) row = guiGridListAddRow ( REQ.gridlist[1] ) if string.len(text) > 0 then if posFile then newNode = xmlCreateChild(posFile, text) if xmlNodeSetValue (newNode, text) then xmlSaveFile(posFile) guiGridListSetItemText ( REQ.gridlist[1], row, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row, 2, text, false, false ) end end end end end end addEventHandler("onClientGUIClick",root,add) function save() for id, playeritem in ipairs(getElementsByType("player")) do guiGridListSetItemText ( REQ.gridlist[1], row, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row, 2, text, false, false ) end end addEventHandler("onClientResourceStart",resourceRoot,save)
-
viewtopic.php?f=164&t=62041 شف بشرح لك ايش تسوي حط الحدث وسوي تحقق ان الداتا موب ترو وسوي عكس التحقق وسوي كانسل ايفينت وسوي مخرج شات وحط الداتا ع اللاعب
-
local posFile = xmlLoadFile ("req.xml") function ( ) if not posFile then posFile = xmlCreateFile ("req.xml", "root") end end local text local newNode function add() for id, playeritem in ipairs(getElementsByType("player")) do if source == REQ.button[1] then text = guiGetText(REQ.edit[1]) local row = guiGridListAddRow ( REQ.gridlist[1] ) if string.len(text) > 0 then if posFile then newNode = xmlCreateChild(posFile, text) if xmlNodeSetValue (newNode, text) then xmlSaveFile(posFile) guiGridListSetItemText ( REQ.gridlist[1], row, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], row, 2, text, false, false ) end end end end end end addEventHandler("onClientGUIClick",root,add) function save() for id, playeritem in ipairs(getElementsByType("player")) do local rowx = guiGridListAddRow ( REQ.gridlist[1] ) guiGridListSetItemText ( REQ.gridlist[1], rowx, 1, getPlayerName ( playeritem ), false, false ) guiGridListSetItemText ( REQ.gridlist[1], rowx, 2, text, false, false ) end end addEventHandler("onClientResourceStart",root,save)
-
"onVehicleEnter" getElementData setElementData outputChatBox cancelEvent
-
تمام بس لو بليناكس عرف الخطة راح ننفضح أحذف ردك ايها المجهول لكي لا ننكشف
-
عندنا قاتل بالمنتدى اسمه The killer
-
بالتوفيق .. لا تنسى تسوي ترايقر من الكلنت للسيرفر لان الداتا سيرفر فقط
-
صمت local Groups = { "Console", "Admin" } --قروبات مسموح تعطيل وفتح شات local GroupsSpek = { "Console", "Admin" } --قروبات التي تستطيع كتابة في شات بعد تعطيل شات function chatDis(player,command) cancelEvent() outputChatBox("*** THE CHAT IS DISABLED ***",source,255,0,0) for k,p in ipairs ( GroupsSpek ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(p)) ) then addEventHandler("onPlayerChat",getRootElement(),chatDis) end end addCommandHandler("cd",chatDis) -- تعطيل شات function chatEN(player,command) for k,v in ipairs ( Groups ) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then outputChatBox("*** THE CHAT IS NOW ENABLED ***",getRootElement(),255,0,0) removeEventHandler("onPlayerChat",getRootElement(),chatDis) end end addCommandHandler("ce",chatEN) -- تفعيل شات
-
أهنيييييك مسوي هريسة سيرفر مع كلنت
-
"onClientGUIClick" guiGetText guiSetVisible showCursor setAccountData getAccountData
-
اها فهمتك مثلا زر الاسل يفتح بكوممانتذا كتبت الامر وطؤعت ودخلت تصير مفتوحة بدون لاكتب الامر guiSetVisible showCursor addCommandHandler setAccountData getAccountData
-
الي فهمته أنك تبي كوماند لاكتبته يفتح اللوحة واذا طلعت ماله داعي اكتب الكوماند صحيح ؟ يعني ينحفظ الامر طيب كيف تبيه يفتح اللوحة
-
-- *** This Script By Al3grab 2011 *** -- *** IF You Are Editing The Script or installing it Dont Remove This Lines *** -- *** Al3grab 2011 - Chat Disable Script *** -- *** To Disable Chat Use Command : /cd *** -- *** To Enable Chat Use Command : /ce *** -- *** تم صنع المود بواسطة Al3grab 2011 *** -- *** عند تركيب المود أو تعديله الرجاء عدم إزالة هذه النصوص *** -- *** Al3grab 2011 - مود تعطيل الشات | منع اللاعبين من الكتابة في الشات *** -- *** لتعطيل الشات إكتب الأمر التالي : /cd *** -- *** لتشغيل الشات إكتب الأمر التالي : /ce *** -- --------------------------------- -- -- *** Script Code | Server-Side *** -- -- --------------------------------- -- -- *** Disabling Code | Start *** function chatDis(player,command) if isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup('Console')) then cancelEvent() outputChatBox("*** THE CHAT IS DISABLED ***",source,255,0,0) end end addEventHandler("onPlayerChat",getRootElement(),chatDis) -- *** Disabling Code | End *** -- *** Enabling Code | Start *** function chatEN(player,command) if isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup('Console')) then outputChatBox("*** THE CHAT IS NOW ENABLED ***",root,255,0,0) removeEventHandler("onPlayerChat",getRootElement(),chatDis) end end -- *** Enabling Code | End *** -- *** Adding Commands | Start *** addCommandHandler("cd",chatDis) addCommandHandler("ce",chatEN) -- *** Adding Commands | End ***
