-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
Timer is not element. use killTimer instead of destroyElement. if isTimer(timer) then destroyElement(timer) end should be if isTimer(timer) then killTimer(timer) end and please next time use lua button not Code.
-
I'll repeat. https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
-
ياخي أيش المنوبه ذي لا تحط ردين ورا بعض + هنا موب شات جرب الكود بعدين رد
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=47897
-
A marker is a 3D model in the world that can highlight a particular point or area, often used to instruct players where to go to perform actions such as entering buildings. https://wiki.multitheftauto.com/wiki/CreateMarker
-
i don't think so, i guess he mean when they loggedoff = they out from the server/logged out from the account.
-
1- lua صيغته 2- الحدث 3- كل حدث أما أن يكون كلينت أو سيرفر أما الوظائف بعضهم يكون سيرفر + كلينت و البعض الآخر يكون سيرفر فقط أو كلينت فقط أحداث الكلينت تلقاها هنا https://wiki.multitheftauto.com/wiki/Client_Scripting_Events احداث السيرفر تلقاها هنا https://wiki.multitheftauto.com/wiki/Server_Scripting_Events
-
الكود function getPlayerContInMarker(theMarker) i = 0 for _, player in ipairs(getElementsByType("player")) do if isElementWithinMarker(player, theMarker) then i = i + 1 end end return i end مثال على طريقة الأستخدام marker = createMarker = (...) addCommandHandler("cont", function(player) local cont = getPlayerContInMarker(marker) outputChatBox("There are "..cont.." players in the marker", player,255,255,255,true) end) .ملاحظة: الكود ما جربته إذا في أي مشكلة عطني خبر
-
onPlayerLogout onPlayerLogin onPlayerQuit
-
Try function ranks() local account = getPlayerAccount(source) local zombiekills = getAccountData(account,"play.kill") or 0 if (zombiekills <= 500) then setAccountData(account, "Rango", "Civil") setElementData(source , " Rank", "Civil.png") elseif (zombiekills >= 300000) then setAccountData(account, "Rango", "Dios") setElementData(source, "Rank", "Dios.png") end end
-
غير ذا setElementPosition(person, 1, 1, 1) إلى setElementInterior(person, 0, 1, 1, 1) Code بدلاً من lua وياليت تستخدم زر
-
createTeam -- عمل تيم setPlayerTeam -- أضافة اللاعب إلى التيم spawnPlayer -- سباون للاعب مع تحديد الأحداثيات المطلوبة setTeamFriendlyFire -- منع قتل الي معك بالتيم isObjectInACLGroup -- التحقق مما إذا كان اللاعب في قروب معين مثلاً قروب أدمن إذا ما عجبك الوضع قول تم مسح الموضوع بسبب تابل معصب أوك؟
-
Change the port from 22003 to any other port and see if this fix the problem or not.
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=3940
-
function setCameraOnPlayerJoin() fadeCamera( source, true ) setCameraMatrix( source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316 ) end addEventHandler("onPlayerJoin", getRootElement(), setCameraOnPlayerJoin) --function stopCameraOnPlayerLogin() -- fadeCamera( source, false ) --end --addEventHandler("onPlayerLogin", getRootElement(), stopCameraOnPlayerLogin) addEvent("submitLogin", true) addEvent("submitRegister", true) function loginHandler(username, password) local account = getAccount(username, password) if (account ~= false) then if (logIn(source, account, password) == true) then triggerClientEvent (source, "hideLoginWindow", source) end end end addEventHandler("submitLogin", root, loginHandler) function registerHandler(username, password) local account = getAccount(username, password) if (account ~= false) then outputChatBox( "", root, 255, 255, 255 ) else account = addAccount(username, password) if (logIn(source, account, password) == true) then triggerClientEvent(source, "hideRegisterWindow", getRootElement()) spawnPlayer(source, 1682.9846191406, -2245.932189063, 13.547117233276) setCameraTarget(source) end end end addEventHandler("submitRegister", root, registerHandler)
-
يفترض أنه يشتغل جرب الكود و قل لنا النتيجة
-
addEventHandler("onPlayerLogin", root, function() spawnPlayer(source, x, y, z) setCameraTarget(source) end)
-
https://wiki.multitheftauto.com/wiki/OnPlayerLogin https://wiki.multitheftauto.com/wiki/SpawnPlayer https://wiki.multitheftauto.com/wiki/SetCameraTarget
-
خل كلامك لنفسك و لا تجلس تتفلسف جرب الكود بعدين تعال فكر ترد
-
function spam(message) local msg = getElementData(source, "Spam") if message == msg then outputChatBox("Bitte wiederhole dich nicht!", source, 255, 0, 0) cancelEvent() end if isTimer(spamTimer) then killTimer(spamTimer) end spamTimer = setTimer( function(source) setElementData(source, "Spam", "0") end , 10000, 1, source) setElementData(source, "Spam", message) end addEventHandler("onPlayerChat", getRootElement(), spam)
