-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
https://wiki.multitheftauto.com/wiki/GuiLabelSetColor
-
try to get last version http://linux.multitheftauto.com if not, try to give the server chmod 777 it may need it
-
Did you try the code that i give you? viewtopic.php?f=91&t=44956
-
بعدها كود اللون FF بالأول حط FF0000 مثلاً FFFF0000 يصير كذا guiSetProperty(Police,"HoverTextColour","FFFF0000") http://cegui.org.uk/static/WindowsLookProperties.html
-
you can use this triggerServerEvent("sendToServer", localPlayer, text) and this triggerClientEvent(root, "sendToClient", root, text) and this addEvent addEventHandler and this guiSetText(memo, text)
-
i already changed the functions names. sigh but i still looking for the solve which makes the texts are public for all .. We already given you the solution. Read the previous post, if you want ignore the solution then it your problem, I'm not going make the code for you.
-
https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
looks good server I joined the server, someone with laser from his eyes burning me lol
-
https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/GuiCreateCheckBox https://wiki.multitheftauto.com/wiki/Gui ... etSelected https://wiki.multitheftauto.com/wiki/SetElementVisibleTo
-
بما أنك تبيه لـ مود بلاي broph.lua أفتح مود بلاي الملف و أبحث عن هذا function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end وضيف هذا الكود giveWeapon(player,31,1000) النتيجة function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) giveWeapon(player,31,1000) end
-
دم https://wiki.multitheftauto.com/wiki/SetElementHealth درع https://wiki.multitheftauto.com/wiki/SetPedArmor الأسم https://wiki.multitheftauto.com/wiki/GetPlayerName الآي بي https://wiki.multitheftauto.com/wiki/GetPlayerIP الفلوس https://wiki.multitheftauto.com/wiki/GetPlayerMoney https://wiki.multitheftauto.com/wiki/GivePlayerMoney https://wiki.multitheftauto.com/wiki/TakePlayerMoney
-
try for i=1000, 10000 do removeWorldModel(i,10,1866.4000244141,-1789.9000244141,20.89999961853) end
-
.الأول: الأدد في البيس مود فقط للي بقروب أدمن يعني لازم تحط نفسك بقروب أدمن .الثاني: أسدح كودك و بعدها لكل حادث حديث
-
you put 0,0,0 for the coordinate on the map, there is no building in this coordinate also you put the radius 4023 Oo this will remove big area from the map i think 4023 is the build model id? try removeWorldModel(4023,10,x,y,z) -- change x,y,z to the coordinate of the build that you want remove
-
well i had enough that's the one -- make send messages with ENTER tab1 function letsmakeitwithenter ( element ) local mytext = guiGetText ( theedit ) local mytext2 = guiGetText(mymemo) local Player = getLocalPlayer( ) if ( ( mytext ) and ( mytext ~= "" ) ) then mytext2 = mytext2 .. getPlayerName(getLocalPlayer( )) ..": "..mytext.."\n" guiSetText(mymemo, mytext2) guiMemoSetCaretIndex(mymemo, string.len(mytext2)) triggerServerEvent("Soundsgood", getLocalPlayer( ), Player, mytext) guiSetText(theedit, "") end end addEventHandler ( "onClientGUIAccepted", theedit, letsmakeitwithenter) -- make send messages with ENTER tab2 function letsmakeitwithenter ( element ) local mytext = guiGetText ( theedit2 ) local mytext2 = guiGetText( mymemo2 ) local Player = getLocalPlayer( ) if ( ( mytext ) and ( mytext ~= "" ) ) then mytext2 = mytext2 .. getPlayerName(getLocalPlayer( )) ..": "..mytext .."\n" guiSetText(mymemo2, mytext2) guiMemoSetCaretIndex(mymemo2, string.len(mytext2)) triggerServerEvent("Soundsgood2", getLocalPlayer( ), Player, mytext ) guiSetText(theedit2, "") end end addEventHandler ( "onClientGUIAccepted", theedit2, letsmakeitwithenter) -- make send messages with ENTER tab3 function letsmakeitwithenter ( element ) local mytext = guiGetText ( theedit3 ) local mytext2 = guiGetText( mymemo3 ) local Player = getLocalPlayer( ) if ( ( mytext ) and ( mytext ~= "" ) ) then mytext2 = mytext2 .. getPlayerName(getLocalPlayer( )) ..": "..mytext .."\n" guiSetText(mymemo3, mytext2) guiMemoSetCaretIndex(mymemo3, string.len(mytext2)) triggerServerEvent("Soundsgood3", getLocalPlayer( ), Player, mytext ) guiSetText(theedit3, "") end end addEventHandler ( "onClientGUIAccepted", theedit3, letsmakeitwithenter) server side i will not show it but my problem is here Read my post again, i've told you that function with same name will make problems and you didn't change the function name. and about your problem i've already told you what you need in my previous post, also karthik_184 told you too.
-
addCommandHandler("enterdm", function(player) if isPedInVehicle(player) then outputChatBox("#FFFFFFYou must be on foot to join DM!",player,255,0,0,true) return end if not getElementData(player, "playerInDMData") then local r,g,b = getPlayerNametagColor(player) local playerName = getPlayerName(player) local x, y, z = unpack(pSpawns[math.random(#pSpawns)]) outputChatBox(playerName.." #FFFFFFhas joined DM. Type /enterdm to join him.", root, r, g, b, true) setElementPosition(player, x, y, z) setElementFrozen(player, true) setElementInterior(player, 0) setElementDimension(player, 0) setTimer(setElementFrozen, 3000, 1, player, false) takeAllWeapons(player) giveWeapon(player, 8, 1000) giveWeapon(player, 24, 1000) giveWeapon(player, 26, 1000) giveWeapon(player, 30, 1000) giveWeapon(player, 34, 1000) setElementData(player, "playerInDMData",true) else outputChatBox("#FFFFFFYou are already in DM!",player,255,0,0,true) outputChatBox("#FFFFFFIf you want to leave type /exitevent!",player,255,0,0,true) end end)
-
You don't need setWeaponProperty addEventHandler("onPlayerDamage",root, function(attacker, weapon) if weapon == 8 then killPed(source,attacker,weapon) end end)
-
@teteomar@ you have mess with the parameters. I advise you to read wiki, also you have functions with same name it's may make a problems. https://wiki.multitheftauto.com/wiki/OnClientGUIClick https://wiki.multitheftauto.com/wiki/OnClientGUIAccepted
-
Disconnect : connect was lost مشكلة عقدتني في اللعبه
TAPL replied to Quited's topic in Arabic / العربية
المشكلة أما في السيرفر أو في أتصالك و من المحتمل أنك تستخدم وايرلس و الأشارة ضعيفة كم بنقك؟ -
-
function grow1(player) tree1 = createObject(616, -267, -1358, -30) moveObject(tree1, 30000, -267, -1358,7.5) healthtime1 = setTimer (health1, 30000, 1,player) end addCommandHandler("tree", grow1) function health1(player) ped1 = createPed ( 0, -267, -1358,8) setElementAlpha ( ped1, 0 ) attachElements(ped1, tree1) falltime1 = setTimer (treefall1, 100, 0,player) end function treefall1(player) if (isPedDead ( ped1 ) ) then killTimer ( falltime1 ) moveObject(tree1, 1000, -267, -1358,7.5, 90, 0, 0) setTimer(sink1, 3000, 1,player) outputChatBox("You've cut down a tree! Here is your pay!", player, 0, 255, 0, true ) givePlayerMoney ( player, 1000 ) end end function sink1(player) moveObject(tree1, 10000, -267, -1358,4, 90, 0, 0) setTimer(grow1, 10200, 1,player) setTimer(reset1, 10000, 1) end function reset1() destroyElement(tree1) end
-
function GetCurrentDateAndTime() local aRealTime = getRealTime() return string.format("%04d/%02d/%02d", aRealTime.year + 1900, aRealTime.month + 1, aRealTime.monthday), string.format("%02d:%02d:%02d", aRealTime.hour, aRealTime.minute, aRealTime.second) end setTimer(function() local sDate, sTime = GetCurrentDateAndTime() guiSetText(TimeLabel, sTime) -- change TimeLabel to Your variable guiSetText(DateLabel, sDate) -- change DateLabel to Your variable end,1000,0)
-
-- Server Side -- addEventHandler("onPlayerSpawn", root, function() giveWeapon(source,31,1000) end)
