-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Read the Note at wiki: https://wiki.multitheftauto.com/wiki/SpawnPlayer
-
طبعاً عشان المود يقدر يعطي صلاحية لمود ثاني لازم المود يكون عنده صلاحية أعطاء صلاحيات
-
-- Client Side -- GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Window[1] = guiCreateWindow(247,10,482,584,"",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,202,464,383,false,GUIEditor_Window[1]) tab4 = guiCreateTab("info",GUIEditor_TabPanel[1]) labelAccName = guiCreateLabel(12,90,169,26,"Account Name : ",false,tab4) playerList = guiCreateGridList(200, 6, 140, 360, false, tab4) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) setTimer( function() guiGridListClear(playerList) if (cl and guiGetVisible(GUIEditor_Window[1] ) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl,getPlayerName(name), false, false) end end end ,4000,0) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) if name == "" then guiSetText(labelAccName, "Account Name : ") return end local thePlayer = getPlayerFromName(name) triggerServerEvent("T", localPlayer, thePlayer) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) addEvent("setText", true) addEventHandler("setText", root, function(x) guiSetText(labelAccName, "Account Name : "..tostring(x)) end) -- Server Side -- addEvent("T", true) addEventHandler("T", root, function(thePlayer) local x = getAccountName(getPlayerAccount(thePlayer)) or "N/A" triggerClientEvent(source, "setText", source,x) end)
-
ودي أعرف المسافة الي بالكود من وين جات انا ناسخه منك أنا كودي مافيه مسافة ذا كودي addEventHandler("onPlayerWasted", root, function(_,killer) local name = getPlayerName(source) local money = math.random(200,1000) givePlayerMoney(killer, money) takePlayerMoney(source, 100) outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) end) وذا كودك addEventHandler("onPlayerWasted", root, function(_,killer) local name = getPlayerName(source) local namek = getPlayerName(killer) local money = math.random(200,1000) givePlayerMoney(killer, money) takePlayerMoney(source, 100) outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) outputChatBox(namek.." killed You and You lost 100$", source, 255,0,0) end)
-
ودي أعرف المسافة الي بالكود من وين جات
-
You a resource that trying to call a function from resource called "stats" and this resource is not started/running just start it in F8 /start stats
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
-
addEventHandler("onPlayerWasted", root, function(_,killer) local name = getPlayerName(source) local money = math.random(200,1000) givePlayerMoney(killer, money) takePlayerMoney(source, 100) outputChatBox("You killed "..name.." and get "..money, killer, 0,255,0) end)
-
I have test the code, your object look small and it really doesn't trigger the event onElementClicked, the solution is create other object can trigger the event onElementClicked in same place of your small object and set its alpha to 0 and set its collision to false.
-
غير ذا function(killer) إلى function(_,killer)
-
i guess that because the vehicle locked client side and isVehicleLocked server side won't tell you that the vehicle is locked.
-
Make sure you have it server side in meta.xml
-
نترك لك المجال تصلحه بنفسك بعد ما حددنا لك الأخطاء
-
getRootElement() ناقص فاصله في أول سطر بعد ناقص قوس في سطر 7 بعد الأند هو عدد الطلقات onPlayerWasted أول بارتمر في أفنت https://wiki.multitheftauto.com/wiki/OnPlayerWasted
-
الطلب ذا أنطرح أكثر من مره كل الي عليك تستخدم خاصية البحث و بتلقى الي تبيه https://forum.multitheftauto.com/viewtopic.php?f=119&t=47286 https://forum.multitheftauto.com/viewtopic.php?f=119&t=48697
-
أنت تستهبل و تقول ساعدوني GUIEditor_Window[1] ماخذ مثال الويكي وحاط فيه حق النافذه المشكلة الكود كله سيرفر أيش دخل أم النافذه و أساساً المثال ذا ما لأمه دخل بالي أنت تبيه ذا المثال يحط أسماء الأدمنية في الشات لا غير
-
Replace this: setCameraTarget(source,source) With this: setTimer(setCameraTarget,50,1,source)
-
WTF is this if (admins == "GUIEditor_Window[1]") then
-
You missed "end" in function createSpeaker.
-
guiRoot؟؟؟؟؟؟؟ https://wiki.multitheftauto.com/wiki/Predefined_variables_list
-
https://wiki.multitheftauto.com/wiki/OnClientPlayerHeliKilled
