-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
لان إذا حاولت تجيب اسم التيم و هو مو في تيم بيجي خطأ في الدي بق false فائدتها التحقق من اللاعب في تيم يعني المتغير مو
-
if model ~= 435 or 450 or 591 then Should be: if model ~= 435 and model ~= 450 and model ~= 591 then You can also do: if getVehicleType(model) ~= "Trailer" then
-
ردي فوق واضح الكود الي يحط اللاعبين في القريد لست موجود في رابط الويكي الي انا حطيته و الكود حق تحديث القائمة بعد واضح كلهم كلينت
-
function Me (player) local TE = getPlayerTeam ( player) if TE and getTeamName ( TE ) == "No Team" then setElementHealth( player, 100 ) end end addCommandHandler ( "Health", Me )
-
You can still see function names and strings in compiled Lua code. You can't with encrypt, or there is a way i don't know?
-
طيب الماركر و البليب و الأفنت حق الماركر الي انت حاطه وش هرجته بالضبط؟ عموماً الكود بيكون كذا Client Side: addEventHandler("onClientGUIClick", root, function() if (source == start) then triggerServerEvent("setNoTeam", localPlayer) end end) Server Side: NoTeam = createTeam("No Team", 255, 255, 255) addEvent("setNoTeam", true) addEventHandler("setNoTeam", root, function() setPlayerTeam(source, NoTeam) end)
-
اول شي لازم تحط كل اللاعبين في القريد لست موجود في مثال الويكي https://wiki.multitheftauto.com/wiki/GuiGridListSetItemText هذا لتحديث القائمة
-
setPlayerHealth doesn't exists so you should use setElementHealth. You added the event and attached it to marker2 on the resource start, while marker2 not created yet, that mean marker2 is nil that why you get the warning in the debug. You should add the event when you create the marker or you can also attach the event to root and use: if source == marker2 then Also you should make sure that who hit the marker is the localPlayer. I removed matchingDimension parameter because you're not using it.
-
local marker1 = createMarker(x, y, z, "cylinder", 2, 255, 2, 0) function name(hitPlayer) if hitPlayer == localPlayer then local marker2 = createMarker(x, y, z, "cylinder", 2, 255, 2, 0) addEventHandler("onClientMarkerHit", marker2, namer) end end addEventHandler("onClientMarkerHit", marker1, name) function namer(hitPlayer) if hitPlayer == localPlayer then setElementHealth(hitPlayer, 100) end end
-
You can also set element data at server side when the player join and check the element data client side. ======================================================================== .:CiBeR:. you forget the sendTo argument. triggerClientEvent("yes",source,"magicbeans") Should be: triggerClientEvent(source,"yes",source,"magicbeans")
-
I guess free website host does not allow external connection.
-
Server Side: addCommandHandler("skin", function(thePed, cmd, skinID) setElementModel(thePed, tonumber(skinID)) end)
-
addEventHandler("onPlayerJoin", root, function() setPedStat(source, 78, 50) end)
-
local renderH = 1 setTimer(function() local health = getElementHealth(localPlayer) if health < 100 then setElementHealth(localPlayer, health + renderH) end end, 1000, 0)
-
addEventHandler( "onPlayerWasted", getRootElement(), function( killer ) givePlayerMoney( killer, 100 ) end You missed the bracket (line 6).
-
shmal_v = createMarker(1984.3034, -2316.9780, 13.5468, "cylinder", 1.5, 255, 255, 0, 240) vehicle = {} function scriptCreatesmal(player) if getElementType(player) == "player" then if isElement(vehicle[player]) then destroyElement(vehicle[player]) vehicle[player] = nil end local x, y, z = getElementPosition(player) vehicle[player] = createVehicle(519, x, y, z) end end addEventHandler("onMarkerHit", shmal_v, scriptCreatesmal) addEventHandler("onPlayerQuit", root, function() if isElement(vehicle[source]) then destroyElement(vehicle[source]) vehicle[source] = nil end end)
-
You can't enter client side vehicle. Server Side: shmal_v = createMarker(1984.3034, -2316.9780, 13.5468, "cylinder", 1.5, 255, 255, 0, 240) function scriptCreatesmal(player) if getElementType(player) == "player" then local x, y, z = getElementPosition(player) createVehicle(519, x, y, z) end end addEventHandler("onMarkerHit", shmal_v, scriptCreatesmal)
-
I'm not sure if this even has anything to do with mta, but it happen to me like 4-5 times and all these times i was playing MTA. I used to start the maps in my server through F8, so i consistently type arena 20 or arena 39 ..etc. Also sometimes i aim my sniper with caps lock therefor i forget to turn the caps off and it become ARENA 20, during this i notice myself type upper case with caps lock off and lower case with it on. I can't reproduce when i want, it happen randomly. When i restart my pc, it back to the normal. Any idea?
-
What are you talking about? I told you there is no positions INSERTED INTO THE DATABASE, what part you can't understand?
-
tanks المود هذا يحتاج قيم مود اسمه https://community.multitheftauto.com/ind ... ls&id=5370
-
ليه تفتح موضوع جديد واصل بالموضوع السابق https://forum.multitheftauto.com/viewtopic.php?f=160&t=70395
