Jump to content

Avir14

Members
  • Posts

    37
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Avir14's Achievements

Rat

Rat (9/54)

2

Reputation

  1. Code isn't work and there's no error in debugscript 3 what is the wrong --Server Side function ggPlayer (player) if getPlayerSerial (player) == "34A2E2ECE41E349CCA34FF84EE1" then setPlayerMuted(player, true) end end addEventHandler ( "onPlayerJoin", root, ggPlayer ) Help Please and the script is added to admin group And the serial is true %100
  2. سلام عليكم ابي اسوي لوحة فيها زر لما تضغط عليه تظهر صوره علي شاشة كل الي بلسيرفر مو بس الي ضغط وتختفي بعد 3 ثواني كيف اسويها وابي مثال عليها لو تقدرون شكرا
  3. Hi, I want to create a panel with a button if you click on the button an image appear on all players screen in the server and disappear after 2 sec How to do it, can anyone give me an example please. Thanks
  4. not working this happens in the chat why >>> Invalid player source.
  5. i want to get the number of player in the team of player function showTeamFunction ( command,source ) local playerTeam = getPlayerTeam ( source ) if ( playerTeam ) then local players = getPlayersInTeam ( playerTeam ) for playerKey, playerValue in ipairs ( players ) do outputChatBox ( getPlayerName(playerValue) ) end end end addCommandHandler ( "showTeam", showTeamFunction ) ERROR IN LINE 3 >>> https://img.onl/SG7tLX
  6. سؤال اعدرني كيف اجيب اعلا شخص معه ايدي فلسيرفر لما اسوي اللوب
  7. ممكن احد يشرحلي ماهو اللوب ابي اعرف كيف ادور في كل الي بالسيرفر عن اعلا شخص في شئ معين او داتا معينه مادري كيف الاقيها بالويكي
  8. يب ادري انا اجربها علي البيد بس ماتشتغل onClientPlayerDamage
  9. مما اشتغل الصوت صار ميشتغل عند اي احد
  10. function cDamage ( attacker ) if ( attacker and isElement ( attacker ) and getElementType ( attacker ) == "player" and source ~= attacker ) then local sound = playSound("damage.wav") setSoundVolume(sound, 0.5) end end addEventHandler ( "onClientPlayerDamage", getRootElement(), cDamage ) ابي اللاعب لما يدمج احد يشتغل ذا الصوت ده الكود حقي بس ما اشتغل جربته والصوت يشتغل عند كل اللاعبين لما يدمج اللاعب
  11. ابي اخلي البيد اذا لمس الماركر يتحرك الي الامام حاولت كثير وماعرفت ابيه يتحرك لمسافه معينه وبعدين يرجع ويجلس يتكرر يعني من المنطقه A للمنطقه B ومن المنطقة B للمنطقه A ويعيد من الاول نفس الحركه --Server local Marker1 = createMarker(104, 959.3, 16.6, "cylinder", 2.0, 255, 0, 0, 150) function pMarker(playerSource,hitElement,thePlayer) local elementType = getElementType(hitElement) if source == Marker1 then triggerClientEvent ( playerSource, "onn", playerSource) end end addEventHandler("onMarkerHit", getRootElement(), pMarker) --Client local skin = createPed ( 1, 304.10001, 1959.3, 17.7 ) function gree () setPedAnalogControlState( skin, "forwards", 10 ) end addEvent( "onn", true ) addEventHandler( "onnn", localPlayer, gree )
  12. طيب وكيف اربطهم ببعض لما يضغط الزر يسوي التريقر
  13. ابي اللاعب لما يضغغط الزر الصوره تظهر للجميع debugscript : WARNING: Image\c.lua:20: Bad argument @ 'addEventHandler' [Expected function at argument 3, got boolean] --Client addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() stickerwnd = guiCreateWindow((screenW - 462) / 2, (screenH - 319) / 2, 462, 319, "photo sender", false) guiWindowSetSizable(stickerwnd, false) guiSetProperty(stickerwnd, "CaptionColour", "FF1BEB00") photo1 = guiCreateStaticImage(23, 33, 109, 91, ":Image/photo.png", false, stickerwnd) end ) function aaw() dxDrawImage(619, 295, 408, 467, "photo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end addEvent( "sso", true ) addEventHandler( "sso", getRootElement(), addEventHandler ('onClientGUIClick' , root , function () if source == photo1 then addEventHandler("onClientRender", getRootElement(), aaw) function Chat ( text ) removeEventHandler("onClientRender", getRootElement(), aaw) end setTimer ( delayedChat, 4000, 1, "send" ) end end ) ) --Server function texte (thePlayer) setElementData ( source , "tex", true ) if getElementData ( source ,"tex") == true then triggerClientEvent("sso", getRootElement()) outputChatBox ("done") end end مساعده لو سمحتم
×
×
  • Create New...