Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. createFire is client side only, so you will have to use addCommandHandler client side while it also doesn't have player parameter and you should use localPlayer Instead.
  2. I can't understand why always people say the code doesn't work, while i myself TESTED THE CODE AND IT WORK WITHOUT ANY PROBLEM.
  3. addEvent("change:character:name",true) addEventHandler("change:character:name",root,function(cname) setPlayerName ( client, cname ) end )
  4. local var = 10 -- var = var - 1
  5. _setPedWalkingStyle = setPedWalkingStyle function setPedWalkingStyle(player, style) local bool = _setPedWalkingStyle(player, style) if bool then setElementData(player, "WalkingStyle", style) return bool end end function getPedWalkingStyle(player) if player and getElementType(player) == "player" then local style = getElementData(player, "WalkingStyle") if style and type(style) == "number" then return style else return false end else return false end end -- Example -- setPedWalkingStyle(player, 120) getPedWalkingStyle(player) --> 120
  6. يا للهول نقول لك اطرح الميتا تقول ما تعرف وش الميتا لما شرحو لك وش الميتا قلت تعرف الميتا طيب وين الميتا يا طعـ***؟
  7. انت قصدك يعطيه الأنميشن؟ ؟txd + dff او تقصد يركب له إذا تقصد يركب له فأنت مو مسوي كود تحقق حق الفلوس txd + dff لازم قبل ما تركب له تسوي تريقر إلى السيرفر و تتحقق ان معه فلوس و تسحب منه الفلوس بعدين تسوي تريقر من السيرفر إلى الكلينت و تركب له ال
  8. Get fresh ACL. http://linux.multitheftauto.com/dl/134/baseconfig-1.3.4.tar.gz
  9. اطرح الكود كامل
  10. تسوي كوبي ولا تدري وش سالفه الكود ترا give كود التحقق من الفلوس و سحب فلوس موجود في افنت goodbuy انسخ الكود و حطه في افنت
  11. See if there any error at /debugscript 3
  12. كود السيرفر مافيه اي خطأ اطرح الكلينت
  13. Check the ACL - Admin group, the admin panel should be added there. And make sure you're not using admin2 but admin. If you have old admin panel, make sure you get the newer one from here: https://code.google.com/p/mtasa-resources/downloads/list
  14. function load(player) local textures = {} local models = {} local account = getPlayerAccount(player) local textureLoad = getAccountData(account, "setexture") local modelLoad = getAccountData(account, "setmodel") local textures = split(textureLoad, 44) local models = split(modelLoad, 44) setElementModel(player,0) for i=0, 17 do if ( textures[i+1] ~= " " ) then addPedClothes(player, textures[i+1], models[i+1], i) end end textures = {} models = {} end addCommandHandler("load", load) --save function save(player) local account = getPlayerAccount(player) local texture = {} local model = {} for i=0, 17 do local clothesTexture, clothesModel = getPedClothes(player, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local setTextures = table.concat(texture, ",") local setModels = table.concat(model, ",") setAccountData(account, "setexture", setTextures) setAccountData(account, "setmodel", setModels) texture = {} model = {} end addCommandHandler("save", save)
  15. You''re welcome.
  16. الكود شغال بس الظاهر انت مو حاطه بالترتيب الصحيح GUIEditor_Label = {} GUIEditor_Image = {} shop_1 = guiCreateWindow(282,146,676,438,"المطعم",false) guiSetAlpha(shop_1,0.95999997854233) GUIEditor_Image[1] = guiCreateStaticImage(352,27,309,261,"sss.png",false,shop_1) guiSetAlpha(GUIEditor_Image[1],1) GUIEditor_Label[1] = guiCreateLabel(92,108,178,30,"aa ",false,shop_1) guiLabelSetColor(GUIEditor_Label[1],252,252,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(188,163,341,66,"#bb",false,shop_1) guiLabelSetColor(GUIEditor_Label[2],252,255,252) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(178,195,245,44,"#aa",false,shop_1) guiLabelSetColor(GUIEditor_Label[3],0,255,252) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(32,270,336,24,"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -",false,shop_1) GUIEditor_Label[5] = guiCreateLabel(34,139,336,24,"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -",false,shop_1) GUIEditor_Label[6] = guiCreateLabel(35,81,336,24,"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -",false,shop_1) GUIEditor_Label[7] = guiCreateLabel(26,254,204,35,"by abu-waleed",false,shop_1) guiLabelSetColor(GUIEditor_Label[7],0,0,255) guiSetFont(GUIEditor_Label[7],"clear-normal") h = guiCreateButton(92,332,225,76,"aa",false,shop_1) guiSetFont(h,"default-bold-small") a = guiCreateButton(382,332,225,76,"bb",false,shop_1) guiSetFont(a,"default-bold-small") X = guiCreateButton(9,25,26,29,"X",false,shop_1) guiSetFont(X,"default-bold-small") guiSetVisible(shop_1, false) local marker1 = createMarker(1454.4311523438,-2218.5419921875,13.546875,'cylinder',2, 0,255, 0, 255) addEventHandler("onClientMarkerHit", marker1, function(hitPlayer) if hitPlayer == localPlayer then guiSetVisible(shop_1, true) showCursor(true) end end)
  17. TAPL

    Tooltip

    You're welcome.
  18. هذا صورة في اللوحة بس كود اللوحة نفسه وين؟ حط الكود كامل
  19. وين كود اللوحة؟
  20. GUIEditor_Button[1] = guiCreateButton(607, 279, 89, 35, "XXXX", false, GUIEditor_Window[1]) setElementData(GUIEditor_Button[1], "tooltip-text", "انتحآر", false)
  21. TAPL

    Correction Code

    What is the problem?
  22. setElementData(getControl(wndMain, "Kill"), "tooltip-text", "انتحآر", false)
  23. TAPL

    Tooltip

    You won't need getControl then. myButton = guiCreateButton(...) setElementData(myButton, "tooltip-text", "انتحآر", false)
  24. For free? No thank.
  25. TAPL

    Tooltip

    You shouldn't get this error if the code were inside freeroam client side (fr_client.lua).
×
×
  • Create New...