-
Posts
1,389 -
Joined
-
Last visited
-
Days Won
14
Everything posted by +Source|>
-
sb = { 'كلب', 'حيوان', 'حمار', } addEventHandler("onPlayerChat", root, function(msg, msgType) local themsg = msg for k,v in ipairs ( sb ) do if string.find( msg, v ) then cancelEvent() outputChatBox( "لا تسب", source, 255, 0, 0, true ) end end end ) ما يكنسل الكلمة اللي تطلع بالشات
-
انت قصدك كذا -- مثال على رو باسم Test addEventHandler("onClientGUIClick", root, function() local a7medeno = guiGridListGetItemText( GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if source == GUIEditor.button[1] then -- زر if a7medeno == "Test" then -- Row outputChatBox("tesst") end end end )
-
addEvent("nobr", true) addEventHandler("nobr", root, function(thePlayer) if getPedOccupiedVehicle ( thePlayer ) then local playerVehicle = getPlayerOccupiedVehicle ( thePlayer ) setTimer( function() fixVehicle( playerVehicle ) end,400,1) end end ) مشكله في if getPedOccupiedVehicle
-
لما ادخل الماركر السيارة تتتصلح بس المشكله انه لما اطلع من الماركر واصدم السيارة بعد تتصلح؟؟ addEventHandler("onClientMarkerHit", fixmrkr, function(thePlayer) if thePlayer == localPlayer then if getPedOccupiedVehicle ( thePlayer ) then local playerVehicle = getPlayerOccupiedVehicle ( thePlayer ) local currentFreezeStatus = isElementFrozen ( playerVehicle ) local newFreezeStatus = not currentFreezeStatus local newFreezeStatus2 = currentFreezeStatus setElementFrozen ( playerVehicle, newFreezeStatus ) setTimer( function() fixVehicle( playerVehicle ) setTimer( function() setElementFrozen ( playerVehicle, newFreezeStatus2 ) end, 1000, 0) end, 500, 0 ) end end end )
-
انا ما لي دخل في تغييره لاني اتكلم عن المود نفسه لاني مقفل الفريروم ومافي نفاثه انا المود نفسه فيه حرف j حتى لو غيره ما يقدر يغيره بالمود
-
addEvent("jetmoney", true) addEventHandler("jetmoney", root, function() if tonumber( getPlayerMoney(source) ) >= tonumber(1500) then if ( doesPedHaveJetPack(source) ) then return end takePlayerMoney( source, tonumber(1500) ) givePedJetPack ( source ) outputChatBox( " #00ff00 $1500 تم فتح النفاثه بمبلغ ", source, 0, 0, 0, true ) else outputChatBox( "لا تمتلك مال لفتح النفاثة", source, 255, 0, 0, true ) end end ) function closejet(player) bindKey( player, "j", "down", function() if ( doesPedHaveJetPack(source) ) then removePedJetPack(source) end end ) end addEventHandler("onResourceStart", root, closejet) وش المشكلة لاهنتم
-
ابي هذي كانها خاصيه يشتريها لما يشتريها ما يموت ابدا يكنسل damage
-
addEventHandler("onClientGUIClick", noded, function() if (source == GUIEditor.button[2]) then cancelEvent(dmg) end end ) addEventHandler("onClientPlayerDamage", noded, function() local rr = getPlayerName(source) if rr then cancelEvent(dmg) end end ) كيفف؟!
-
مساعده اخرى لاهنت عندي مشكله في التيم وانه لو احد في التيم كتب الرساله توصل كانها للسيرفر كله عام تجي
-
كذا addEventHandler("onPlayerWasted", root, function() if getTeamName( getPlayerTeam(source) == "Taxi" then setPlayerTeam nil end end )
-
لا ابيه لما يموت يطلع من التيم ابي كود يطلعه من التيم
-
عندي تيم اسمه Taxi يدخلك المهمة ابيه لما يموت يطلع من التيم عشان يطلع من المهمة وش الكود
-
اريد الكود حق يمسح اللاعب من التيم عندي وظيفه ولازم ملا تبدا يدخله تيم ابيه لما يموت يطلع من التيم وش الكود حق اخراجه من التيم
-
addEvent("enterpolice", true) addEventHandler("enterpolice", root, function(player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup("user."..accName, aclGetGroup("Console") ) then setElementInterior( source, 3, 238.77066,142.54713,1003.02344 ) end end ) ما ظبطة وش اسوي فيها
-
سلام عليكم هذا الكود اعتقد صحيح يقول مشكله في local accName = getAccountName( getPlayerAccount (player) ) الكود addEvent("enterpolice", true) addEventHandler("enterpolice", root, function(player) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup("user."..accName, aclGetGroup("Console") ) then setElementInterior( source, 3, 238.77066,142.54713,1003.02344 ) end end ) + كيف اخلي ذا ماركر مخفي createMarker( 2497.71240,-1666.79272,13.34375, "cylinder", 1, 0, 0, 0 )
-
شوف هذا addEventHandler("onPlayerChat", root, function(msg, msgType, sb) local theMsg = msg local sb = getPlayerFromName ( sb ) if sb then if string.find(msg, 'كلب') or string.find(msg, 'حيوان') then outputChatBox(" ") outputChatBox(" ") outputChatBox("#ff0000{Chat System} #000000-- % { تم مسح الشات / قام لاعب بقول كلام ممنــوع } % --", root,255,0,0,true) if ( not isPlayerMuted(sb) ) then setPlayerMuted( sb, true ) outputChatBox("You Has Been Muted", source, 255, 0, 0, true) end end end end ) يقول فيه مشكلة في getPlayerFromName
-
مقدر اسويها للجدول كامل klam = { ["Money"] = true, ["فلوس"] = true, } addEventHandler ( 'onPlayerChat' , root , function ( aMsg_ ) if ( string.find ( aMsg_ , klam ) ) then givePlayerMoney ( source , 1 ) end end )
