-
Posts
1,474 -
Joined
-
Last visited
-
Days Won
23
Everything posted by !#NssoR_)
-
function HEALTH ( ) for _,v in pairs(getElementsByType("vehicle")) do if getElementModel(v) == 491 then if ( getElementHealth(v) < 1000 ) then setElementHealth ( v, getElementHealth(v) + 50 ) if ( getElementHealth(v) > 1000 ) then setElementHealth ( v, 1000 ) end end end end end setTimer(HEALTH, 5000, 0)
-
Yeah its like what u want !
-
function HEALTH ( ) for _,v in pairs(getElementsByType("vehicle")) do if getElementModel(v) == 491 then if ( getElementHealth(v) < 1000 ) then -- if the health of this vehicle less than 1000 will give it + 50 setElementHealth ( v, getElementHealth(v) + 50 ) end end end end setTimer(HEALTH, 5000, 0)
-
addEvent("m1",true) addEventHandler("m1",root, function (player1, player2, T1) local T1 = 1*24*60000 local acc = getAccountName(player1) local account = getPlayerAccount(acc) if isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( player2 ) ) then return end aclGroupAddObject (aclGetGroup(player2), "user."..acc) setTimer ( function (acc) if not isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( player2 ) ) then return end aclGroupRemoveObject ( aclGetGroup( player2 ),'user.'..acc ) end,T1,1,acc) end )
-
ما مر يوم حتي علي الاصدار الاول عشان ينزل الثاني ع العموم اهنيك يالذيب وواصل , ولوانك منزل الثاني ع طول كان افضل وبالتوفيـــق
-
1 سوي لوب ع اللاعبين وتحقق اذا بالعالم الوهمي 30 زود قيمة المتغير
-
قلنا اننا مبرمجين ولكن مب سحره عشان نعرف المشكلة بدون مانشوف الكود اطرحه ع الاقل
-
صحيح , كانت فيه فاصله زايده مانتبهتلها
-
function deathCheck ( ) if getElementDimension(source) == 30 then exports.killmessages:outputMessage(" Player : [ "..getPlayerName ( source ).." ] خرج من الديربي ",root,250,0,0,true) end end addEventHandler ( "onPlayerWasted", ,root,deathCheck )
-
AnyTime..#
-
addEventHandler("onClientGUIChanged", root, function () if ( source == search ) then if ( guiGetText ( source ) == "" ) then guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end else guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do if string.find(getPlayerName(v),guiGetText(search)) then local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end end end end )
-
guiGridListSetItemText = معروفه تكتب بالقريد ليست getPlayerName(v) = تجيب اسم اللاعب :gsub("#%x%x%x%x%x%x", "") = اذا فيه اكواد الوان بالاسم تحذفها
-
لازم تدمجه مع التاجات عشان مايكرر
-
شباب الناس تطورت اذا عجبكم رد شخص , عطوه لايك ماحاجه تسوي إقتباس وتحط +1
-
^ استخدم الوظيفة الي بهالموضوع بتفيدك
-
getPlayerTime طبعا هالوظيفة تجيبلك وقت اللاعب مثلا بعض اللاعبين يقولك بعطي شخص رتبه وبتحقق اذا ساعاته 50 وفوق فـ هالوظيفة بتفيدك Syntax : Hour Minute getPlayerTime ( player ) Returns : Hour : الساعات الخاصه باللاعب Minute : الدقائق الخاصه باللاعب Example | مثال المثال الذي سيتم عرضه في الاسفل لن يسمح للاعب بالتحدث بالشات الا إذا كان لديه 5 ساعات و اكثر , ويتم عرض ساعاته و الدقائق بجانب اسمه function getPlayerTime ( Player ) local TimeData = getElementData(Player,'PlayTime') or '0:0'; if ( TimeData ) then return tonumber(split(TimeData,':')[1]) , tonumber(split(TimeData,':')[2]); end end addEventHandler('onPlayerChat',root, function (Message,MessageType) if ( MessageType == 0 ) then local hour , mintue = getPlayerTime ( source ) -- نجيب ساعاته if ( hour >= 5 ) then -- نتحقق ان الساعات 5 او اكثر outputChatBox('['..tostring(hour)..':'..tostring(mintue)..'] '..getPlayerName(source)..': '..Message,root) else -- في حال الساعات اقل من 5 لن يسمح له بالتكلم outputChatBox("Sorry, you can't speak because your time less than 5 hours",source) cancelEvent() end end end) والصراحه مادري اذا فيه احد مسويه من قبلي او لا, لأن الموضوع كبير ويبيلي وقت لو بشيك ع الصفحات . واتمني اني افدت بعض الاخوان , وبالتوفيق يارب
-
Nothing happens with me ! , I think the problem from your picture . ( Try to change it )
-
that free time he had is useful
-
Try to change this server that you playing in it , If the same problem then this indicates the problem from your computer.
-
Good job , it was working as it should.
-
الطريقة الي قاعد تجيب فيها الساعات غلط , والحل تستخدم واحد من هذول gettok -- split