-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
ped نفس الفنكشن يضبط على اللاعب و على setPedAnimation
-
Whenever you attack other player, use the function getElementHealth to get the current health and then use function setElementHealth to set the health to lower, also you might need killPed when the health is low, so you will always have a killer.
-
Change what? You download it from where?
-
Event: "onClientPlayerDamage" or "onPlayerDamage" getElementHealth setElementHealth
-
؟Column وين الـ guiGridListAddColumn
-
https://forum.multitheftauto.com/viewtopic.php?f=160&t=55560
-
شكلك تفهم بنقالي معليه بنسخ لك الكود هنا function clientsideResourceStart () local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) -- Create the grid list local column = guiGridListAddColumn( playerList, "Player", 0.85 ) -- Create a 'players' column in the list if ( column ) then -- If the column was successfully created for id, playeritem in ipairs(getElementsByType("player")) do --Loop through all the players, adding them to the table local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end end end addEventHandler ( "onClientResourceStart", getResourceRootElement(), clientsideResourceStart )
-
^^؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
-
ما يحتاج تفتح 50 موضوع https://forum.multitheftauto.com/viewtopic.php?f=160&t=55340
-
You can by setting it to false or nil, i tried before and it was removed but i don't remember which one.
-
This maybe can help viewtopic.php?f=91&t=50958
-
Try function evento(source) if (isElement(theMarker)) then destroyElement(theMarker) local nombre2 = getPlayerName(source) outputChatBox("#FF0000[AVISO]#00FF00Eventos removidos por #0000FF"..nombre2.."#00FF00.", getRootElement(), 255, 255, 255, true) removeCommandHandler("eventwarp") else local x,y,z = getElementPosition(source) theMarker = createMarker ( x, y, z, "checkpoint", 2, 255, 255, 255, 100 ) local nombre = getPlayerName(source) outputChatBox("#FF0000[AVISO]#00FF00Se ha creado un evento por #0000FF"..nombre..". #00FF00Usa #FF0000/eventwarp #00FF00para participar!", getRootElement(), 255, 255, 255, true) addCommandHandler("eventwarp", eventowarp) end end addCommandHandler("event", evento) function eventowarp(thePlayer) if isElement(theMarker) then local x, y, z = getElementPosition(theMarker) setElementPosition(thePlayer, x, y, z) end end
-
You set the data to "true", while in the code that i post it was "Bronze". Also the text not used anywhere. Do you have three command for these thing?
-
This too if not(modelid or x1 or y1 or z1 or msg) then outputChatBox("[invalid Syntax]: /createped [modelid] [x] [y] [z] [text]", player, 255, 0, 0 ) return end Should be if (not modelid or not x1 or not y1 or not z1 or not ...) then outputChatBox("[invalid Syntax]: /createped [modelid] [x] [y] [z] [text]", player, 255, 0, 0 ) return end
-
Your script doesn't look good with three account data, but this is your choice. call(getResourceFromName("scoreboard"), "addScoreboardColumn", "VIP", getRootElement(), 8, 0.07) local none = "None" local bronze = "Bronze" local silver = "Silver" local gold = "Gold" addEventHandler("onResourceStart", resourceRoot, function() for _, thePlayer in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(thePlayer) if acc and not isGuestAccount(acc) then local goldvip = getAccountData(acc, "goldvip") local nonevip = getAccountData(acc, "nonevip") local silvervip = getAccountData(acc, "silvervip") local bronzevip = getAccountData(acc, "bronzevip") if nonevip == "None" then setElementData(thePlayer, "VIP", none) elseif bronzevip == "Bronze" then setElementData(thePlayer, "VIP", bronze) elseif silvervip == "Silver" then setElementData(thePlayer, "VIP", silver) elseif goldvip == "Gold" then setElementData(thePlayer, "VIP", gold) end end end end) addEventHandler("onPlayerLogin", root, function(_, acc) local goldvip = getAccountData(acc, "goldvip") local nonevip = getAccountData(acc, "nonevip") local silvervip = getAccountData(acc, "silvervip") local bronzevip = getAccountData(acc, "bronzevip") if nonevip == "None" then setElementData(source, "VIP", none) elseif bronzevip == "Bronze" then setElementData(source, "VIP", bronze) elseif silvervip == "Silver" then setElementData(source, "VIP", silver) elseif goldvip == "Gold" then setElementData(source, "VIP", gold) end end)
-
Read my previous post. viewtopic.php?f=91&t=55535#p536457
-
Also you need this for the text: table.concat
-
I don't think there an event called "OnClientPlayerSpawn" and can be attached to "resourceRoot"?
-
https://wiki.multitheftauto.com/wiki/OnClientPedDamage
