Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. http://i.imgur.com/pgZHo4E.png يعني لما تكتبت في ايدت او ميمو و ضغطت حرف ف او غ ما يفتح لك الشات و يخرب عليك الكتابة
  2. killTimer destroyElement
  3. You're welcome.
  4. انت ما استخدمت الفنكشن ذا عشان تخلي لاعب يشوف الكلام textDisplayAddObserver أضافة إلى ان طريقة برمجتك خاطئة خارج الكومند display + textItem يفترض انك تسوي و تستخدم ذا داخل الكومند و تحط الكلام textItemSetText
  5. يحتاج صلاحيات getPlayerIP الفنكشن يعني ضيف المود في قروب ادمن
  6. TAPL

    [Help] Pizza Job

    You're welcome.
  7. سيرفر getPlayerIP و الليبل كلينت و عشان تجيب الآي بي بالكلينت لازم تستخدم المنت داتا او تريقر setElementData getElementData triggerClientEvent
  8. TAPL

    [Help] Pizza Job

    addEvent("adjTheJob", true) addEventHandler("adjTheJob", root, function(var) if var == "Enter" then local team = getPlayerTeam(client) if team and getTeamName(team) == "Pizza" then outputChatBox("You are already employed.", client, 255, 255, 0) else setPlayerTeam(client, getTeamFromName("Pizza")) outputChatBox("You are now employed as a Pizzaboy!", client, 255, 255, 0) end elseif var == "Leave" then setPlayerTeam(client, nil) outputChatBox("You are now employed as a nothing!", client, 255, 255, 0) end end) addCommandHandler("pizzahelp", function() outputChatBox("Pizza : In the pizza you as a pizzaboy have to deliver pizzas to locations and you get money by delivering the package.") end) GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(308, 173, 399, 425, "Pizza ", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) --I seted as invisible * GUIEditor.label[1] = guiCreateLabel(14, 31, 365, 63, " Well Stacked Pizza Co.", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 255, 255, 2) GUIEditor.label[2] = guiCreateLabel(44, 111, 320, 124, " Welcome to the Well Stacked Pizza Co.\n You can employ now as a pizzaboy!\n As a pizzaboy you have to deliver pizza's\n throughout the town.\n You will get money for that.\n\n For help type /pizzahelp", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "clear-normal") GUIEditor.button[1] = guiCreateButton(96, 247, 215, 42, "Accept ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "C8FFFF00") GUIEditor.button[2] = guiCreateButton(118, 307, 164, 36, "Leave ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "C8FD0802") GUIEditor.button[3] = guiCreateButton(122, 368, 150, 32, "Close", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") end ) pizzaguy = createPed(155, -1720.0400390625, 1356.6455078125, 7.1875, 121.70565795898) pizzaMarker = createMarker(-1721.0263671875, 1355.9541015625, 6.1805019378662, "cylinder", 1.25, 0, 255, 0, 180) createBlip(-1723.74, 1359.68, 6.18, 29, 2, 0, 0, 0, 255, 0, 200) setElementFrozen(pizzaguy, true) addEventHandler("onClientPedDamage", pizzaguy, cancelEvent) addEventHandler("onClientMarkerHit", pizzaMarker, function(player) if player == localPlayer and not isPedInVehicle(player) then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then closeWind() triggerServerEvent("adjTheJob", localPlayer, "Enter") elseif source == GUIEditor.button[2] then closeWind() triggerServerEvent("adjTheJob", localPlayer, "Leave") elseif source == GUIEditor.button[3] then closeWind() end end) function closeWind() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end
  9. TAPL

    gui

    outputChatBox client side does not have visibleTo argument.
  10. can you give me a script example? Example: ped = createPed(0, getElementPosition(localPlayer)) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local tx, ty, tz = getElementPosition(ped) local dis = getDistanceBetweenPoints2D(x, y, tx, ty) if dis > 2 then setPedControlState(ped, "forwards", true) else setPedControlState(ped, "forwards", false) end setPedRotation(ped, findRotation(tx, ty, x, y)) end) function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end return t end
  11. local hTable = getVehicleHandling(vehicle) local hString = toJSON(hTable) setAccountData(account, "Handling", hString) ------------------------------ local hString = getAccountData(account, "Handling") local hTable = fromJSON(hString) for property, value in pairs(hTable) do setVehicleHandling(vehicle, property, value) end
  12. المود ذا يستخدم بطريقة معينة تحتاج تستخدم فنكشات الأكسبورت عشان تضيف اكس بي للاعب او تغير اللفل حقه او حتى تحط اللفل في السكور بورد يعني تحتاج تبرمج
  13. TAPL

    bank system

    Table have nothing to do with saving money. This so simple, store the money at account data and use math operation (- and +) to take money from you and add it to the sender. For deposit, take the money you current have on hand and store it at account data. For withdraw, take the money from the account data that you stored before in deposit and give it to yourself. ( <= and >= to make sure the amount is available and to avoid negative numbers).
  14. TAPL

    MTA freezes.

  15. ^ ذا مو كود، ذا الفنكشات الي تحتاجها عشان تسوي الكود و الكود يحتاج سيرفر و كلينت
  16. http://i.imgur.com/fLkKKex.png
  17. وين الكود او حط رابط المود من الكومنتري على الأقل
  18. Create a db table with two columns one for the account name and another for the table string. toJSON -- convert table to string. fromJSON -- convert string to table again. toJSON -- > from table to string fromJSON -- > from string to table
  19. TAPL

    Table in SQL

    You're welcome.
  20. TAPL

    Table in SQL

    You didn't understand. toJSON -- convert table to string. fromJSON -- convert string to table again. toJSON -- > string fromJSON -- > table
  21. TAPL

    Table in SQL

    You didn't use fromJSON to convert the string back to table.
  22. ما فهمنا شي + اطرح كودك
×
×
  • Create New...