Jump to content

iMr.Dawix~#

Members
  • Posts

    1,647
  • Joined

  • Last visited

Everything posted by iMr.Dawix~#

  1. Client: window1 = guiCreateWindow(471, 219, 200, 210, "Words in randomizer", false) guiWindowSetSizable(window1, false) gridlist1 = guiCreateGridList(16, 50, 167, 146, false, window1) local collumn1 = guiGridListAddColumn(gridlist1, "Name", 0.4) local collumn2 = guiGridListAddColumn(gridlist1, "Words", 0.9) function addWordToGridList(text) guiWindowSetSizable(window1, false) local row = guiGridListAddRow(gridlist1) guiGridListSetItemText(gridlist1, row,collumn1,getPlayerName(source),false, false) guiGridListSetItemText(gridlist1, row,collumn2,tostring(text),false, false) end addEvent("showit",true) addEventHandler("showit",root,addWordToGridList) Server: function showits(player,cmd,...) local ve = {...} if #ve > 0 then message = table.concat(ve," ") triggerClientEvent(player,"showit",player,message) end end addCommandHandler("showit",showits)
  2. if this ^ didn't work .. try this client side: local myMarker = createMarker( 1543.4465332031, -1724.4774169922, 12.546875 , "cylinder", 2.0, 250, 250, 250, 200, getRootElement() ) function MarkerHit ( hitPlayer, matchingDimension ) if (hitPlayer == localPlayer) then outputChatBox ( getPlayerName(hitPlayer) .. " Entered a Died Marker" ) end end function createSpawnWindow(hitPlayer) if (hitPlayer == localPlayer) then windowSpawncar = guiCreateWindow(0.36, 0.70, 0.26, 0.29, "", true) guiWindowSetSizable(windowSpawncar, false) btnSancheZ = guiCreateButton(0.05, 0.12, 0.87, 0.14, "1: Sanchez", true, windowSpawncar) local font0_PetitFormalScript = guiCreateFont(":spawnscar/fonts/PetitFormalScript.ttf", 10) guiSetFont(btnSancheZ, font0_PetitFormalScript) guiSetProperty(btnSancheZ, "NormalTextColour", "FFFFFFFF") btnVoodoo = guiCreateButton(0.05, 0.39, 0.87, 0.14, "2: Voodoo", true, windowSpawncar) guiSetFont(btnVoodoo, font0_PetitFormalScript) guiSetProperty(btnVoodoo, "NormalTextColour", "FFFFFFFF") btnCaddy = guiCreateButton(0.06, 0.67, 0.86, 0.14, "3: Caddy", true, windowSpawncar) guiSetFont(btnCaddy, font0_PetitFormalScript) guiSetProperty(btnCaddy, "NormalTextColour", "FFFFFFFF") guiSetVisible( windowSpawncar, true ) addEventHandler( "onClientGUIClick",resourceRoot, function () if ( source == btnSancheZ ) then triggerServerEvent("createSANCHEZ",localPlayer) end end) end end function markerLeave( localPlayer ) guiSetVisible( windowSpawncar, false) end addEventHandler ( "onClientMarkerHit",myMarker, MarkerHit ) addEventHandler( "onClientMarkerHit",myMarker, createSpawnWindow) addEventHandler ( "onClientMarkerLeave",myMarker,markerLeave) server side: local vechical = {} function spawncar() if isElement(vechical[source]) then destroyElement(vechical[source]) end local x,y,z = getElementPosition(source) vechical[source] = createVehicle(468,x, y,z) warpPedIntoVehicle (source,vechical[source]) end addEvent("createSANCHEZ",true) addEventHandler("createSANCHEZ",root,spawncar)
  3. gta3 جيب لنا اسامي الأوبجكتات يمكن اقدر اطلعهم لك من ملف
  4. تلقاه في المودات اسمه webBrowser
  5. getPedOccupiedVehicle -- يجيب السياره اللي راكبها اللاعب من اي مقعد
  6. it's very very nice ... Good Job & Thanks
  7. محدثكم من اللعبه :] Me هههههههههههههههههههههههه المتصفح نايس
  8. you just need this local x, y = guiGetScreenSize() local cX, cY = (x / 2) - (348 / 2), (y / 2) - (356 / 2) spawnscreen = guiCreateWindow(514, 104, 286, 391, "Spawn Panel", false) guiWindowSetSizable(spawnscreen, false) showCursor(true) toggleControl("chatbox", false) fadeCamera(false) guiSetProperty(spawnscreen, "CaptionColour", "FF00FF00") gridlist1 = guiCreateGridList(9, 22, 115, 110, false, spawnscreen) guiGridListAddColumn(gridlist1, "CLASSES", 0.9) gridlist2 = guiCreateGridList(9, 142, 115, 235, false, spawnscreen) guiGridListAddColumn(gridlist2, "TEAMS", 0.9) spawnmemo[1] = guiCreateMemo(132, 22, 144, 110, "", false, spawnscreen) spawnstaticimage[1] = guiCreateStaticImage(133, 143, 143, 169, "mtalogo.png", false, spawnscreen) spawnbutton[1] = guiCreateButton(134, 317, 142, 60, "SPAWN", false, spawnscreen) guiSetProperty(spawnbutton[1], "NormalTextColour", "FF00FF00") and delete the trigger from server side
  9. you must type in console ( f8 ) like this oid
  10. شف local theVehicle = getPedOccupiedVehicle(localPlayer) -- هنا يجيب الموتر اللي راكبه اللاعب setVehicleDamageProof( theVehicle,true)-- هنا يسوي الفنكشن حق حماية المركبه مو متأكد اذا كان الفنكشن شغال كلنت لكن اظنه ما يزبط الا سيرفر
  11. يب عارف انه صح لكن حطيت يتأكد انه السائق عشان ما يكون راكب جمبه ويركب له عدم انفجار وكذا لقافة والتعديلات الباقي بس كذا
  12. 1 = https://community.multitheftauto.com/ind ... ls&id=1562 2 = https://wiki.multitheftauto.com/wiki/Ge ... omNamePart addCommandHandler getPlayerFromNamePart او getPlayerFromName givePlayerMoney getPlayerMoney takePlayerMoney او تقدر تسوي الثاني بنسخ كود المود الأول وتعدله وتزبط كودك حق ارسال الفلوس
  13. but it's easier with sora's script
  14. addEventHandler ( "onClientGUIClick",resourceRoot,function () if source == Button ) then if isPedInVehicle(localPlayer) and getVehicleController(getPedOccupiedVehicle(localPlayer)) == localPlayer then setVehicleDamageProof(getPedOccupiedVehicle(localPlayer),true) -- setVehicleDamageProof(getPedOccupiedVehicle(localPlayer),not isVehicleDamageProof(getPedOccupiedVehicle(localPlayer)) -- هذا اذا تبيه مره يحط حماية من التفجير ومره ثانيه يضغط يشيلها end end end )
  15. local myMarker = createMarker( 1543.4465332031, -1724.4774169922, 12.546875 , "cylinder", 2.0, 250, 250, 250, 200, getRootElement() ) function MarkerHit ( hitPlayer, matchingDimension ) if (hitPlayer == localPlayer) then outputChatBox ( getPlayerName(hitPlayer) .. " Entered a Died Marker" ) end end function createSpawnWindow(hitPlayer) if (hitPlayer == localPlayer) then windowSpawncar = guiCreateWindow(0.36, 0.70, 0.26, 0.29, "", true) guiWindowSetSizable(windowSpawncar, false) btnSancheZ = guiCreateButton(0.05, 0.12, 0.87, 0.14, "1: Sanchez", true, windowSpawncar) local font0_PetitFormalScript = guiCreateFont(":spawnscar/fonts/PetitFormalScript.ttf", 10) guiSetFont(btnSancheZ, font0_PetitFormalScript) guiSetProperty(btnSancheZ, "NormalTextColour", "FFFFFFFF") btnVoodoo = guiCreateButton(0.05, 0.39, 0.87, 0.14, "2: Voodoo", true, windowSpawncar) guiSetFont(btnVoodoo, font0_PetitFormalScript) guiSetProperty(btnVoodoo, "NormalTextColour", "FFFFFFFF") btnCaddy = guiCreateButton(0.06, 0.67, 0.86, 0.14, "3: Caddy", true, windowSpawncar) guiSetFont(btnCaddy, font0_PetitFormalScript) guiSetProperty(btnCaddy, "NormalTextColour", "FFFFFFFF") guiSetVisible( windowSpawncar, true ) addEventHandler( "onClientGUIClick",resourceRoot, function () if ( source == btnSancheZ ) then triggerServerEvent("createSANCHEZ",root) end end) end end function markerLeave( localPlayer ) guiSetVisible( windowSpawncar, false) end addEventHandler ( "onClientMarkerHit", myMarker, MarkerHit ) addEventHandler( "onClientMarkerHit", myMarker, createSpawnWindow) addEventHandler ( "onClientMarkerLeave", getRootElement(), markerLeave )
  16. If you want to add this for each resource in your server, go ahead. You'll have 100 lines, where you could only do 3. he can use this resource viewtopic.php?f=108&t=51389&p=507974#p507974
  17. iMr.Dawix~#

    Timer

    you're welcome
  18. It wasn't an error, he was just wondering why there were errors in debug script (There's outputDebugString in the script). The topic was already solved long time ago, read posts. oh sorry
  19. objects = {} addCommandHandler("create",function (player,cmd,oid) if oid then local x,y,z = getElementPosition(player) local rx,ry,rz = getElementRotation(player) objects[player] = createObject(oid,x,y,z,rx,ry,rz) if isElement(objects[player]) then destroyElement(objects[player]) end end end )
  20. iMr.Dawix~#

    Timer

    setTimer(startPaidLS,10000,1,thePlayer)
  21. function showits(player,cmd,...) local ve = {...} message = table.concat(ve," ") triggerClientEvent(player,"showit",player,message) end addCommandHandler("showit",showits)
×
×
  • Create New...