Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Use getPlayerTeam.
  2. isObjectInACLGroup
  3. Try to learn from it. Client Side: GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(671, 298, 250, 176, "Choose your team! ", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) showCursor(true) GUIEditor.button[1] = guiCreateButton(15, 34, 105, 132, "TERRORIST", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "7FFF0909") GUIEditor.button[2] = guiCreateButton(130, 34, 105, 132, "POLICE", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "7F0C28FB") end) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then showCursor(false) triggerServerEvent("onTeamSelect", localPlayer, "TERRORIST") elseif source == GUIEditor.button[2] then showCursor(false) triggerServerEvent("onTeamSelect", localPlayer, "POLICE") end end) Server Side: TerroristTeam = createTeam("TERRORIST", 255, 0, 0) PoliceTeam = createTeam("POLICE", 0, 0, 255) addEvent("onTeamSelect", true) addEventHandler("onTeamSelect", root, function(team) if team == "TERRORIST" then spawnPlayer(client, 1959.55, -1714.46, 10, 0, 0, 0, 0, TerroristTeam) elseif team == "POLICE" then spawnPlayer(client, 1959.55, -1714.46, 10, 0, 0, 0, 0, PoliceTeam) end fadeCamera(client, true) setCameraTarget(client) outputChatBox("Welcome to MyServer.", client) end)
  4. ينقل الى قسم البرمجة
  5. البوابة الثانية اتوقع من ملف الماب الي مسويه بماب اديتور افتح ماب اديتور و احذف الباب لان الباب يجي من الكود
  6. Event: "onClientGUIClick" triggerServerEvent triggerClientEvent isObjectInACLGroup getPlayerAccount getAccountName guiCreateGridList guiGridListAddColumn getElementsByType getPlayerName guiGridListAddRow guiGridListSetItemText guiGridListGetSelectedItem guiGridListGetItemText getPlayerFromName getElementData setElementData
  7. Event: "onPlayerLogin" Event: "onResourceStart" isObjectInACLGroup getPlayerAccount getAccountName bindKey addCommandHandler getPlayerName getElementsByType table.concat outputChatBox
  8. نقطة وش؟؟؟ مخالفة وش؟؟ وش فايدتها ذي
  9. TAPL

    *

    لا مافي حاذف الكلام من الموضوع ومن ردودك و حاط ردود مزدوجة و تهرب من باند يغلق
  10. ترد رد غبي بعدين تقول تحسبني غبي؟ اما انك غبي او انك تستغبي (بما انك مو غبي (حسب قولك ليه ما قلت ان جاء خطأ من البداية؟ و ليه ما قلت وش الخطأ و صور للخطأ
  11. I have the same problem with closed ports. I can access 'Web Console' so checked the ports: Of course the ticket is opened since 3 days, they said "this will be fixed soon!". It's seems that i can't find stable host, i was with Vortex but they shut down my server and send to me email and said that i increase the slots without pay (even though i didn't). Then i went with BuSign, and wow this host dies every 3 days and so. Tried volt-host, after 10 days their hard disk dead and i find my self without server for two weeks. And now with sane-hosting, 3 days without server .
  12. TAPL

    طلب كود

    m4 = guiCreateButton(0, 0, 0, 0, "Buy", false) ArabicButton = guiCreateButton(0, 0, 0, 0, "عربي", false) EnglishButton = guiCreateButton(0, 0, 0, 0, "English", false) addEventHandler("onClientGUIClick", root, function() if (source == ArabicButton) then guiSetText(m4, "شراء") elseif (source == EnglishButton) then guiSetText(m4, "Buy") end end)
  13. برنامج وش تسوي فيه؟ اكيد تشغله يعني تتفرج فيه؟
  14. TAPL

    *

    createMarker Event: "onClientMarkerHit" guiSetVisible showCursor Event: "onClientGUIClick" triggerServerEvent addEvent addEventHandler setPlayerTeam Event: "onPlayerWasted" spawnPlayer setElementFrozen setTimer getPlayerName outputChatBox setElementPosition
  15. createMarker Event: "onMarkerHit" Event: "onMarkerLeave" setTimer killTimer getPlayerName outputChatBox givePlayerMoney ** table **
  16. http://files.mtasa.com/apps/tools/MTADiag.exe حط الرابط الي بيطلع لك
  17. لا ذا شي ثاني 11 April 2007 ذا الفنكشن موجود بالويكي من تاريخ
  18. WORK? THEN WHY YOU ASK FOR HELP?
  19. Did you realize that he ask for CJ clothes and not valid skins ids?
  20. Really? You call this a meta? "stopbord/left/lframe0.png" type="client"> "stopbord/left/lframe1.png" type="client"> "stopbord/left/lframe2.png" type="client"> "stopbord/left/lframe3.png" type="client"> "stopbord/right/rframe0.png" type="client"> "stopbord/right/rframe1.png" type="client"> "stopbord/right/rframe2.png" type="client"> "stopbord/right/rframe3.png" type="client"> "music.mp3"> "gta_tree_palm.txd"> "veg_palm03.dff"> "gta_tree_palm2.txd"> "veg_palm02.dff"> "race" type="map" name="[DM]D0GGy-Vol.4-D0GGy's Style" author="D0GGy" version="1.0.0"> "dm-d0ggy-d0ggyss.map" dimension="0"> "#skins" value='[ "cj" ]'> "#maxplayers" value="[ 128 ]"> "#useLODs" value="[ true ]"> "#gamespeed" value="[ 1 ]"> "#ghostmode" value='[ "false" ]'> "#time" value="4:3"> "#vehicleweapons" value='[ "false" ]'> "#minplayers" value="[ 0 ]"> "#respawntime" value="[ 5 ]"> "#gravity" value="[ 0.008000 ]"> "#waveheight" value="[ 0 ]"> "#weather" value="[ 11 ]"> "#locked_time" value="[ true ]"> "#duration" value="[ 1800 ]"> "#respawn" value='[ "timelimit" ]'> Take a look here and see how meta is done: https://wiki.multitheftauto.com/wiki/Meta.xml
  21. setTimer(function() restartResource(getThisResource()) end, 5000, 1)
  22. انت حاط الأوبجيكت يتحرك من مكانه و يوصل المكان المطلوب بعد 5 ثواني لاكن حاط بعد 5 ثواني تايمر عشان يرجع يتحرك مره ثانية كذا ما راح يوقف مكانه لازم تحط التايمر دبل الوقت وقت وصول الأوبجيكت يعني غير وقت التايمر من 5000 إلى 10000
  23. setTimer getThisResource restartResource
  24. With fileDelete, the script file will be downloaded in the hard disk and will load in the RAM and deleted from the hard disk after the resource start (you can still steal the script while you downloading). But with cache, the script will be downloaded directly in the RAM and not in the hard disk (almost impossible to steal the script unless you have much knowledge of ram address or whatever it called).
×
×
  • Create New...