-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
فنكشن ما له اسم return قل لي وش رايح يفيدك فيه ال فهم نفسك قبل لا تحاول تفهم غيرك و تخربطهم
-
أهنيكـ =) :bazooka: :bazooka: ++++++++++++++++++++
-
ذي المشكلة من ام تي اي صارت لي اكثر من مره ان انا اشوف نفسي ماسك سلاح بينما اللاعبين الباقين يشوفوني ابقس لما اعطي نفسي سلاب تنحل المشكلة
-
Use this event: https://wiki.multitheftauto.com/wiki/OnVehicleExplode You want to remove it? https://wiki.multitheftauto.com/wiki/DestroyElement Or maybe you just want to set its alpha? https://wiki.multitheftauto.com/wiki/SetElementAlpha
-
What do you mean by tab? do you mean scoreboard? You want create team?? createTeam Or explain yourself in better way, i can't get a shit.
-
Custom function لها اهمية في الفنكشات المخصصة او بما يسمى return مثال addCommandHandler("xxx", function (player) local myReturn = getRandom() -- هنا تتلقى الرد من الفنكشن -- الرد سويناه في سطر 14 و سطر 16 -- "Noob" أو "Pro" راح يكون كلمة myReturn المتغير -- false الرد بيكون دائماً getRandom في الفنكشن return طبعاً بدون كلمة outputChatBox(getPlayerName(player).." is "..myReturn, root, 255, 255, 0) end) function getRandom() -- custom function هذا الفنكشن المخصص او local abc = math.random(1, 2) if abc == 1 then return "Pro" -- هذا راح يكون رد بكلمة elseif abc == 2 then return "Noob" -- و هذا كمان رد بكلمة ثانية end end Custom function هنا امثلة أخرى على الـ https://wiki.multitheftauto.com/wiki/GetPlayerFromNamePart https://wiki.multitheftauto.com/wiki/GetPlayerFromSerial https://wiki.multitheftauto.com/wiki/IsPlayerInTeam https://wiki.multitheftauto.com/wiki/GetElementSpeed
-
function MGPED() -- NPC -- local Christina = createPed (90, 359.14141, 173.59044, 1008.32, -90) setElementInterior(Christina, 3) setTimer(setPedAnimation, 90, 1, Christina, "FOOD", "FF_Sit_Eat1", -1, true, false) -- Markery -- local px, py, pz, typ, size = 362.1, 173.6, 1008.7, "arrow", 1.0 MGMARKER = createMarker(px, py, pz, typ, size) setElementInterior(MGMARKER, 3) end addEventHandler("onResourceStart", resourceRoot, MGPED) function MGMA(marker) if (marker == MGMARKER) then local msg = "#ff9900Christina:#ffffff If you want to open a Multi-Gamemode, press F." outputChatBox(msg, source, 255,255,255, true) end end addEventHandler("onPlayerMarkerHit", root, MGMA)
-
This is what he want, can't you read guys? @[sRN]xXMADEXx, if you give us the video title this would be better.
-
What do you mean? Custom weapons is the weapon that was created with the function createWeapon.
-
MTA San Andreas 1.3\server\mods\deathmatch
-
triggerClientEvent ( "ShowVipPanel", source ) Should be: triggerClientEvent(source, "ShowVipPanel", source )
-
-- Client Side -- function musa(object) if object then local x,y,z = getElementPosition(object) radio = playSound3D("https://dl.dropboxusercontent.com/s/9z9n7oez2d55xif/amispoppia_-_waves-hZ35j1c6BJw_fmt34.mp3", x, y, z, true) setSoundMaxDistance(radio, 200) outputChatBox("music is on!", 255, 0, 0, true) attachElements(radio, menopeli34) else outputChatBox("cant find the menopeli and radio", 255, 0, 0, true) end end addEvent("playSoundOnStart", true) addEventHandler("playSoundOnStart", root, musa) -- Server Side -- menopeli34 = createObject(5837, 0, 0, 100, 0, 0, 0) function menomusa(player) triggerClientEvent(root, "playSoundOnStart", player, menopeli34) end addCommandHandler("turnupthemusic", menomusa) function menopeli(player, cmd, posX, posY, posZ) local posX = tonumber(posX) local posY = tonumber(posY) local posZ = tonumber(posZ) if posX and posY and posZ then moveObject(menopeli34, 15000, posX, posY, posZ) end end addCommandHandler("meno", menopeli) function kutsumenopeli(player) local x, y, z = getElementPosition(player) moveObject(menopeli34, 15000, x, y, z + 1 ) end addCommandHandler("callmeno", kutsumenopeli) function menowarp(player, cmd, who) local kohde = getPlayerName(who) if (kohde) then local x, y, z = getElementPosition(kohde) moveObject(menopeli34, 15000, x, y, z + 25) end end addCommandHandler("targetmeno", menowarp) function pikameno(player, cmd, who) local kohde = getPlayerFromName(who) if (kohde) then local x, y, z = getElementPosition(kohde) moveObject(menopeli34, 1000, x, y, z + 25) end end addCommandHandler("fasttarget", pikameno) function nousumeno(player) local x, y, z = getElementPosition(player) moveObject(menopeli34, 20000, x, y, z + 1000) end addCommandHandler("goup", nousumeno)
-
https://forum.multitheftauto.com/viewtopic.php?f=91&t=41069
-
http بعد كلمة s جربو اضافة الرابط بحرف [url=https://*.mtasa.com*]https://*.mtasa.com*[/url] [url=https://*.multitheftauto.com*]https://*.multitheftauto.com*[/url]
-
I don't see a need for trigger from the server to the client. This will do the job on client side only. function playerJoinHandler() outputChatBox("Client joined") fadeCamera(true, 3) showPlayerHudComponent("radar", false); showPlayerHudComponent("area_name", false); setCameraMatrix(-911.46545410156, 1931.513671875, 130.02493286133, -392.18316650391, 1589.7071533203, 101.35176849365) end addEventHandler("onClientResourceStart", resourceRoot, playerJoinHandler) Btw. your trigger is actually wrong, this way it going trigger for all clients not only who join. triggerClientEvent ("playerJoinEventClient", source) Should be: triggerClientEvent (source, "playerJoinEventClient", source)
-
your code will not working this is the reason local posX = tonumber(posX) local posX = tonumber(posY) local posZ = tonumber(posZ) Ops, how did i repeat posX two time :@
-
ccw الي للحين عنده المشكلة يطبق كلام في الموضوع ذا https://forum.multitheftauto.com/viewtopic.php?f=13&t=62618
-
تأكد انك تستخدم الرابط https://mtasa.com بدلاً من http://mtasa.com و إذا استمرت المشكلة جرب تستخدم الرابط الثاني و تأكد انك تستخدم الرابط https://multitheftauto.com بدلاً من http://multitheftauto.com
-
ما بيطلع الكلام اصلاً بيطلع ارقام بس إذا تبي يطلع كلام تسويه كذا outputChatBox(Words[T])
