-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
guiLabelSetColor math.random setTimer
-
تم الأفادة مشكور تابل + عاشق الشرق > زر فتح لوحة خاص للأدمن
TAPL replied to кιηg-αвα∂у's topic in البرمجة
في ملف السيرفر سطر 5 وقوس then ناقص كلمة if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin")) التعديل if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Admin"))) then -
https://wiki.multitheftauto.com/wiki/Server_Commands#aexec Moderator note for knownledgebase: "aexec [exact player name] say Hello!" in F8 or in "T" chatbox: "/aexec [exact playername] say Hello!" Will output a chat message under that player's name saying "Hello!" like if it were them talking. This (example) is a reason why you should never trust what a player appears to say in chat, as admins can use aexec to speak out of anyone's name. Unless you have access to the server.log (which only admins do), you cannot determine whether or not aexec was used to force a player to 'talk'. aexec can be explained to mean 'admin-execute (a-exec)', in which admin will be able to execute commands for a player. Likewise, other commands that can be triggered using aexec can also make the player perform or seem to do actions they are infact not doing themselves. For that reason it's used commonly as a tool to troll players. Maybe you have noticed not all commands can be triggered using aexec, it would appear only commands implemented through client-sided scripts allow for it to work. Hardcoded MTA 'commands' (such as "say" for mainchat, "me" for /me in chat) can generally be used, but commands such as "disconnect" or "quit" can, although hardcoded, not be triggered. Also you should pay attention to the fact any command in the aexec syntax cannot have a / (slash), just like how typing commands in F8 for yourself needs to be without slash. So it should be "aexec [exact playername] command" and not "aexec [exact playername] /command", and for "T" chat execution it should be "/aexec [exact playername] command" but still not /aexec [exact playername /command"
-
هذا مو مبرر عشان تشغل برنامج غش محد أجبرك تلعب في سيرفر هاكات كل الي عليك أنك تبلغ أدمنية السيرفر و في حال ما تجاوبو بكل بساطة أخرج من السيرفر الفاشل ذا و أبحث عن سيرفر ثاني زي الناس بالنسبة لمشكلتك C:\Program Files (x86)\Rockstar Games\GTA San Andreas واضح من التقرير أنك مثبت اللعبه و أم تي أي في نفس المجلد جرب تحذفهم و ثبت من جديد و حط كل واحد في مجلد لحاله
-
What gamemode do you use?
-
setMinuteDuration - Sets the real-world duration of an ingame minute مم اضنه يبي تعيين المدة اللحظة ذا تعيين مده الدقيقة لو حطيت مده الدقيقة الواحده| 60 ثانية بيكون زي الوقت الطبيعي لو حطيته مده الدقيقة الواحده 55325442365542346542356442635443256 ثانية بتلقى الوقت ثابت
-
لا ينفع أول ما نزل MTA 1.1 كنت مشغل فيه وشغال
-
local gate = createObject(971, 1535, -1451, 14, 0, 0, 0.27014160156) local marker = createMarker(1535, -1450, 14, "cylinder", 6, 255, 255, 255, 0) function moveGate(hitPlayer, matchingDimension) if (getElementType(hitPlayer) == "player") and matchingDimension then if (getElementData(hitPlayer, "Group") == "Grove") then moveObject(gate, 2000, 1535, -1451, 7) setTimer(moveBack, 2000, 1) end end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack() moveObject(gate, 2000, 1535, -1451, 14) end
-
createPed Event "onPedWasted" givePlayerMoney
-
https://wiki.multitheftauto.com/wiki/OnVehicleExplode https://wiki.multitheftauto.com/wiki/DestroyElement
-
ذا الكود setTeamFriendlyFire حطه بعد ما تستخدم createTeam مثال local Team = createTeam("Team Name", 255, 255, 255) setTeamFriendlyFire(Team, false)
-
getPlayerNametagColor
-
Event: "onPlayerChat" string.find cancelEvent outputChatBox
-
https://wiki.multitheftauto.com/wiki/ReloadBans
-
mohamad = createColRectangle(-2171.0678710938, 678.17950439453, 15, 15) team1 = createTeam("team1", 255, 255, 255) team2 = createTeam("team2", 255, 255, 255) setTeamFriendlyFire(team1, false) setTeamFriendlyFire(team2, false) addEventHandler("onPlayerWasted", root, function(_, killer) if isElementWithinColShape(source, mohamad) then if killer and getElementType(killer) == "player" and killer ~= source then if (getPlayerTeam(killer) == team1) or (getPlayerTeam(killer) == team2) then givePlayerMoney(killer, 4000) outputChatBox("#7FFF00 you’re win 4000$ ", killer, 255, 255, 255, true) end end end end)
-
For register, you must give the resource admin rights.
-
Your code was moving the marker (source) instead of the player but you edited it it later.
-
theMarker = createMarker ( x,y,z, "cylinder", 2, 255, 255, 0, 170 ) addEventHandler("onMarkerHit", theMarker, function (player) if (getElementType(player) == "player") then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Police")) then setElementPosition(player, x, y, z) end end end)
-
https://forum.multitheftauto.com/viewtopic.php?f=119&t=50994#p497259
-
الأول: لما تضغط على الزر بيعطيك سيارة و إذا ضغطت مره ثانية بيحسب السيارة و بيعطيك سيارة ثانية بس المشكلة لما أنت تكون معك السيارة و يجي واحد ثاني يضغط على الزر سيارتك بتنسحب و بتروح له
-
vehicle = {} addEvent("car", true) addEventHandler("car", root, function() if (getPlayerMoney (source) >= 10) then takePlayerMoney(source, 10) if isElement(vehicle[source]) then destroyElement(vehicle[source]) end local x, y, z = getElementPosition(source) vehicle[source] = createVehicle(411, x, y, z) warpPedIntoVehicle(source, vehicle[source]) end end )
-
addEventHandler("onClientResourceStart", resourceRoot, function() Almacen = guiCreateWindow(322, 177, 375, 368, "Almacen de Nitros By Kronos", false) N2 = guiCreateButton(10, 65, 110, 64, "Nitro x2", false, Almacen) N5 = guiCreateButton(130, 65, 110, 64, "Nitro x5", false, Almacen) N10 = guiCreateButton(250, 65, 110, 64, "Nitro x10", false, Almacen) Inf = guiCreateButton(73, 156, 101, 67, "Infernus", false, Almacen) Tur = guiCreateButton(203, 156, 101, 67, "Turismo", false, Almacen) Salir = guiCreateButton(16, 307, 346, 52, "Salir", false, Almacen) Bans = guiCreateButton(117, 238, 132, 56, "Banshee", false, Almacen) outputChatBox("Probando", 255, 100, 100) addEventHandler("onClientGUIClick", Salir, Exit, false) end)
