-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
it's will work in both way but it's about performance (less CPU usage), also you should make it local anyway.
-
You should put randomMoney below this, so it won't make a random number every time you exit from vehicle, you only need it for 420 and 428. if (sea == 1 or sea == 2 or sea == 3) then
-
if ( getElementModel( veh ) == 420 or 428 ) then if ( sea == 1 or 2 or 3 ) then should be: if (getElementModel(veh) == 420 or getElementModel(veh) == 428) then if (sea == 1 or sea == 2 or sea == 3) then
-
شغال يا عزيزي و مثل ما قال لك بسول حالياً الكلام بيجي لك باللون الأسود و تحديداً تحت الخريطة ( الرادار) و يختفي بعد 5 ثواني
-
تشفير الكلمات العربية ممكن Notepad++ أولاً تحتاج برنامج http://notepad-plus-plus.org ثانياً Encode in UTF-8 without BOM أختار و أحفظ الملف و شفره و أنتهى
-
use cancelEvent() for prevents any damage: https://wiki.multitheftauto.com/wiki/OnC ... ayerDamage if you want take one weapon: https://wiki.multitheftauto.com/wiki/TakeWeapon if you want take all weapons: https://wiki.multitheftauto.com/wiki/TakeAllWeapons
-
for teams this for Police, already done in your script if getTeamName(getPlayerTeam(attacker)) == "Police" then for ACL group (Admin) local accName = getAccountName(getPlayerAccount(attacker)) if isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then to turn off /kill you need to delete it from the script that enabled it or use this script: addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "kill" then cancelEvent() end end)
-
lol change it to if not isElement(source) then return end
-
addEventHandler("onClientPlayerDamage", localPlayer, function (attacker, weapon) if (attacker and source ~= attacker) then if (getElementType ( attacker ) == "player") then if ( weapon == 3 and getTeamName(getPlayerTeam(attacker)) == "Police" ) then local SourceWantedLevel = getPlayerWantedLevel() if ( SourceWantedLevel > 0 ) then if ( getElementHealth ( source ) < 90 and getElementHealth ( source ) > 0 )then triggerServerEvent("POLICESYS:JailThePlayer", localPlayer, attacker) end end end end end end) -- level = getPlayerWantedLevel ( source ) -- source not defined here reward = 3000 addEvent("POLICESYS:JailThePlayer",true) addEventHandler("POLICESYS:JailThePlayer",root, function ( attacker ) local x = -4162.3032226563 local y = 1697.4566650391 local z = 1.0687500238419 givePlayerMoney ( attacker, reward ) --Give money to cop setElementPosition ( source, x, y, z, true ) setTimer ( releaseSuspect, 30000, 1,source) end) function releaseSuspect(source) if not isElement(source) return end local x = 2285.9599609375 local y = 2423.1164550781 local z = 10.8203125 setElementPosition ( source, x, y, z, true ) end
-
و أنت بنص خير
-
https://wiki.multitheftauto.com viewtopic.php?f=148&t=40809
-
There are a lot of maps for race in community. Dozens of maps if not hundreds. https://community.multitheftauto.com
-
Listen TAPL the ' i ' letter is a loop and i know it so ' i ' is not defined anywhere as i see , but that code is fine though , can you please tell me why is ' i ' for ? "i" is not for loop, it's just a variable contain a number that increasing every time you hit the marker until it reached the table limit/size and then back again to number 1. as you can see "i" is used as index to the table to get the value from it and "i" is being defined/Increases here if not i then i = 1 else i = i + 1 end and Booo was right it's should start from number 2 not 1 because we already create the number 1 in line 2 if not i then i = 2 else i = i + 1 end
-
teleports = { [1] = {-2601.62, 617.06, 64.75, 80.93, 0, "San Fierro Hospital", -2570.33, 654.57}, [2] = {-2095.80, 1366.78, 34.92, 69.73, 0, "San Fierro Pier", -2080.80, 1404.56}, [3] = {-1876.42, 790.04, 28.05, 28.05, 0, "San Fierro Rooftop", -1863.34, 804.22} } window = guiCreateWindow(0.0271,0.2222,0.4854,0.4889,"Teleport menu",true) grid1 = guiCreateGridList(0.0286,0.0523,0.2847,0.575,true,window) column1 = guiGridListAddColumn(grid1,"Teleport",0.99) for k,v in ipairs(teleports) do row = guiGridListAddRow(grid1) guiGridListSetItemText(grid1, row, column1, v[6], false, false) end -- guiGridListAddRow() -- guiGridListSetItemText()
-
أمسك الجسر الي باليسار وخلك ماسكه Ctrl أضغط على زر ثم أضغط على الأسهم فوق أو تحت
-
viewtopic.php?f=91&t=46588
-
also moveObject has wrong argument. fixed via PM anyway.
-
-- Client Side -- local newUser = "" local screenWidth, screenHeight = guiGetScreenSize() addEventHandler('onClientPlayerJoin', root, function() newUser = getPlayerName(source).." joined!" if isTimer(tt) then killTimer(tt) end tt = setTimer(function() newUser = "" end,10000,1) end ) function drawText() dxDrawText(newUser, 44, screenHeight - 41, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 1.1, "pricedown") end addEventHandler('onClientRender', root, drawText)
-
Where did User and Joined defined? You should use event onClientResourceStart.
-
يا عزيزي إذا التحميل ما أكتمل ما راح تطلع النافذه مستحيل تطلع النافذة قبل ما يكتمل التحميل يعني ببساطة الي تبيه غير ممكن
-
Markers = { {-1499.6569824219, -10.275520324707, 13.1484375},{-1482.0515136719, 10.204844474792, 13.1484375} } local x, y, z = unpack(Markers[1]) local MaaRkkeer = createMarker(x, y, z, "cylinder", 2) function datanana() removeEventHandler("onMarkerHit", MaaRkkeer, datanana) destroyElement(MaaRkkeer) if not i then i = 1 else i = i + 1 end if i > #Markers then i = 1 end local x, y, z = unpack(Markers[i]) MaaRkkeer = createMarker(x, y, z, "cylinder", 2) addEventHandler("onMarkerHit", MaaRkkeer, datanana) end addEventHandler("onMarkerHit", MaaRkkeer, datanana)
-
a2 شف أحداثيات البوابة a2 = createObject(2959, 892, 1764.1999511719, 31.799999237061, 30.10000038147, 0, 0) ولاحظ أنك تحركها رقم واحد فقط moveObject (a2, 550, 891, 1764.1999511719, 31.799999237061) ضبط أحداثياتك
