-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Try this. Levels = { {"Level 0", 0}, {"Level 1", 100}, {"Level 2", 200}, {"Level 3", 300}, {"Level 4", 400}, {"Level 5", 500}, {"Level 6", 600}, {"Level 7", 700}, {"Level 8", 800}, {"Level 9", 900}, {"Level 10", 1000} } addEventHandler("onClientRender", root, function() local skill = getPedStat(localPlayer, 69) for i, o in ipairs(Levels) do if skill >= o[2] then Level = o[1] end end guiSetText(GUIEditor.label[3], Level) end) Also it would be better to use timer instead of onClientRender.
-
Anything in the chat when you did /chatbubbles?
-
guiCreateWindow guiCreateButton guiSetVisible showCursor onClientGUIClick onClientMarkerHit
-
ما اشوف ان في سبب لأغلاق الموضوع
-
local aTable3 = { ['Jarvis, how many players are online?'] = {numPlayers.."/"..maxPlayers}, } But you need to update the table.
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=7668 https://forum.multitheftauto.com/viewtopic.php?f=108&t=62995&p=599302 مسجل كم حساب علشان تطلب ذا الطلب؟
-
At line 4 you need the account name not the account so you have to use getAccountName. Also at line 9, getAccountData require account not player element. Also at line 12, you need string for Quit (if it wasn't a defined variable). Also at line 26, newnick is not defined anywhere.
-
You need these function: aclGroupList isObjectInACLGroup aclGroupGetName
-
لما تسوي سباون للاعب لازم تستخدم هذا الكود معه setCameraTarget
-
At server side from line 39 till 67 move it to client side with some modification like changing the event to client side and adding some IF statement for the element data and/or the team and such thing.
-
هذا كله خطأ aclSetRight(Admin, command.execute, false) aclSetRight(Admin, command.setpassword, false) aclSetRight(Admin, command.sethealth, false) aclSetRight(Admin, command.setarmour, false) aclSetRight(Admin, command.spectate, false) aclSetRight(Admin, command.delete, false) aclSetRight(Admin, command.shutdown, false) aclSetRight(Admin, command.setgroup, false) aclSetRight(SuperModerator, command.execute, false) aclSetRight(SuperModerator, command.setpassword, false) aclSetRight(SuperModerator, command.sethealth, false) aclSetRight(SuperModerator, command.setarmour, false) aclSetRight(SuperModerator, command.spectate, false) aclSetRight(SuperModerator, command.delete, false) aclSetRight(SuperModerator, command.shutdown, false) aclSetRight(Moderator, command.execute, false) aclSetRight(Moderator, command.setpassword, false) aclSetRight(Moderator, command.sethealth, false) aclSetRight(Moderator, command.setarmour, false) aclSetRight(Moderator, command.spectate, false) aclSetRight(Moderator, command.delete, false) aclSetRight(Moderator, command.shutdown, false) restartResource(admin) stopResource(runcode) deleteResource(runcode) stopResource(webadmin) deleteResource(webadmin) لازم تستخدم هذا عشان تجيب الأسل aclGet + string لازم تستخدم وهذا عشان تجيب المود من اسمه getResourceFromName
-
^هه الكود طويل عريض و فيه بعض الفنكشات بعد ما كتبتهم مثل فنكشن التحقق من نوع الألمنت و المنت داتا او تيبل و ممكن تريقر خلي البرمجة لأهلها حتى بمقابل يمكن ما اسويه لك -.- ما احب اسوي اكواد طويله هالأيام
-
حدد لي الفنكشن الي تبي له شرح
-
getPlayerWantedLevel getPlayerTeam getTeamName onPlayerTarget onPlayerDamage getElementPosition getDistanceBetweenPoints2D setControlState setPedRotation showCursor setPedWeaponSlot toggleControl warpPedIntoVehicle removePedFromVehicle findRotation onClientRender onVehicleEnter onVehicleExit onPlayerWasted createMarker givePlayerMoney setElementPosition destroyElement onMarkerHit
-
ايش هذا حتى كوبي بست ما تعرف تسوي
-
That's because you overwrite it at line 20 and it's seems that the vehElementsret is nil.
-
Yes it's possible, but don't forget to pass the quit reason too maybe some script need it.
-
@DuH, your code should work, however this is better way to do it: Reasons = { ["Unknown"] = "Unknown", ["Quit"] = "Vontade Pr?pria", ["Kicked"] = "Kickado", ["Banned"] = "Banido", ["Timed Out"] = "Sem Conex?o", ["Bad Connection"] = "Bad Connection" } addEventHandler("onClientPlayerQuit", root, function(reason) outputChatBox("#ff0000*[iNFO] #ffffff"..getPlayerName(source).." #ffffffSaiu do Servidor #ff0000["..Reasons[reason].."]", 0, 159, 255, true) end)
