Jump to content

☠ RaZeR ☠

Members
  • Posts

    569
  • Joined

  • Last visited

Everything posted by ☠ RaZeR ☠

  1. كفو dxDrawText (getPlayerName(localPlayer),"has Taken " , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) يعطيني الاسم مع كود الالوان مايكتب الكلمة has taken يقولي خطأ
  2. شوف بالله dxDrawText (getPlayerName(hitPlayer) , 196, 0, 875, 163, tocolor( 255, 255, 255 ), 1.5, "pricedown" ) ليه ماتشتغل
  3. طلب هل في حل ابي احذف ال dx text بعد شرط كيف ؟؟
  4. outputChatBox( getPlayerName.." inside myMarker", hitElement, 255, 255, 0 ) بس مااشتغل
  5. شكرا بس عندي طلب انا استخدمت getPlayerName بس مب راضي يشتغل ** ابي اللي لمس الماركر يطلع اسمه في الشات outputChatBox("الماركر: "..getPlayerName(source), MarkerHit)
  6. هلا شباب مدري وش فيها ذي onClientRender وربي طفش function createText ( cmd ) if cmd == "G" then dxDrawText ( " !!", 196, 0, 875, 163, tocolor ( 92, 45, 23, 255 ), 1.5, "pricedown" ) end end addEventHandler ( "onClientRender", root, createText ) addCommandHandler ( "G", createText ) لما اكتب حرف G في اف 8 تطلع الكتابه بسرعه وتروح جربت اسوي تايمر مب نافع
  7. انا قصدي الثانيه # الزر حده ينضغط 3 مرات من اكثر من لاعب *** سؤال كيف احط اكثر من احداثي Heli = createVehicle ( 487, 539.6629, 967.9279, 85.0737 ) Heli2 = createVehicle ( 487, 538.86493, 1017.73218, 84.94059 ) Heli3 = createVehicle ( 487, 537.25574, 1060.81519, 84.93714 ) warpPedIntoVehicle ( source, Heli or Heli2 or Heli3 )
  8. كذا صح ولا لا Heli = createVehicle ( 487, 539.6629, 967.9279, 85.0737 ) Heli2 = createVehicle ( 487, 538.86493, 1017.73218, 84.94059 ) Heli3 = createVehicle ( 487, 537.25574, 1060.81519, 84.93714 ) warpPedIntoVehicle ( source, Heli or Heli2 or Heli3 )
  9. مشكوور اخوي طلب # كيف احط اكثر من احداثي هنا # يعني مثلا يسوي سياره في المطار الاول او امطار الثاني # ي createVehicle ( 487, 539.6629, 967.9279, 85.0737 )<< هناا
  10. طيب # كيف يعني انا ابي لما اللاعب يضغط على الزر يطلع dxDrawText وينتظر شوي بعدين يفجرر @ اللي اعرفه ماينفع اثنين ايفنت مع بعضهم onClientGUIClick onClientRender يععني كذاا ؟؟ addEventHandler("onClientRender",root, addEventHandler("onClientGUIClick", root, setTimer ( function Spawn() if(source == but) then guiSetVisible(wnd, false) showCursor(false) Mowater = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(Mowater) do blowVehicle ( vehicleValue ) local x,y = guiGetScreenSize() dxDrawText("blow",0,0,x,y,tocolor(0,255,255,120),3,"default-bold","center","center",false,false,false) end, 5000, 1 ) end end end))
  11. كذا يعني addEventHandler("onClientGUIClick", root, function Spawn() if (source == but) then = 3 Account == false triggerServerEvent('Warp', localPlayer) guiSetVisible (wnd, false) showCursor (false) removeEventHandler("onClientGUIClick", root, Spawn) end end)
  12. ليه ذا مااشتغل setTimer ( function Spawn() if(source == but) then guiSetVisible(wnd, false) showCursor(false) Mowater = getElementsByType ( "vehicle" ) for vehicleKey, vehicleValue in ipairs(Mowater) do blowVehicle ( vehicleValue ) local x,y = guiGetScreenSize() dxDrawText("blow",0,0,x,y,tocolor(0,255,255,120),3,"default-bold","center","center",false,false,false) end, 5000, 1 ) end end end addEventHandler("onClientGUIClick", root, Spawn)
  13. هلا شباب # ابي كود او فنكشات @ اول ثلاثة يضغطوو على الزر وبس # يعني لو 3 ضغطوا على الزر خلاص ماينفع احد يضغط بعدهم ** وابي العالم الوهمي ؟؟ كيف
  14. setTimer ( function() local team = getPlayerTeam(source) if team and getTeamName(team) == teamName then if not isKeyBound(source, key, "down", nothing) then bindKey(source, key, "down", "chatbox", "Chat") bindKey(source, key, "down", nothing) end, 5000, 1 ) else if isKeyBound(source, key, "down", nothing) then unbindKey(source, key, "down", "chatbox", "Chat") unbindKey(source, key, "down", nothing) end end end) function nothing() end
  15. استخدمها : لاكن المشكلة لازم اكتب في الشات عششان تظهرلي وتشتغل # انا ابيها على طول تشتغل بدون onPlayer
  16. انا جربت @ onResourceStart لكن ماا اشتغلت ً#
  17. لقيت كل هذا : اعرفهم كلهم # لاكن ابي واحد منهم يجيب الامر على طوول يعني مب لازم اموت او اسجل دخولي عشان يشتغل onPlayerBan onPlayerChat onPlayerPrivateMessage onPlayerConnect onPlayerChangeNick onPlayerLogin onPlayerLogout onPlayerDamage onPlayerJoin onPlayerQuit onPlayerSpawn onPlayerWasted onPlayerTarget onPlayerVehicleEnter onPlayerVehicleExit onPlayerWeaponSwitch onPlayerMarkerHit onPlayerMarkerLeave onPlayerPickupHit onPlayerPickupUse onPlayerClick onPlayerContact onPlayerStealthKill onPlayerMute onPlayerUnmute onPlayerCommand onPlayerModInfo onPlayerVoiceStart onPlayerVoiceStop onPlayerScreenShot
  18. Gameode : play عادي # تيم عادي @ @ مافهمت الثانيه
  19. OK : BUT Iwant to change Teamsay Bind "y" bindKey(source, "y", "down", "chatbox", "FOY.Chat")
  20. لما اكتب مايظهر شي رغم اني في التيم
  21. Server Side : !!! local teamName = "Gan" local key = "m" addCommandHandler("TeamChat", function (player, _, ...) local msg = table.concat({...}, " ") local pName = getPlayerName(player) local team = getPlayerTeam(player) if team and getTeamName(team) == teamName then local r, g, b = getTeamColor(team) for _, p in ipairs (getPlayersInTeam(team)) do outputChatBox("("..teamName..") "..pName..": #FFFFFF"..msg, p, r, g, b, true) end else if isKeyBound(player, key, "down", nothing) then unbindKey(player, key, "down", "chatbox", "TeamChat") unbindKey(player, key, "down", nothing) end end end) addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs (getElementsByType("player")) do local team = getPlayerTeam(player) if team and getTeamName(team) == teamName then bindKey(player, key, "down", "chatbox", "TeamChat") bindKey(player, key, "down", nothing) end end end) addEventHandler("onPlayerSpawn", root, function() local team = getPlayerTeam(source) if team and getTeamName(team) == teamName then if not isKeyBound(source, key, "down", nothing) then bindKey(source, key, "down", "chatbox", "TeamChat") bindKey(source, key, "down", nothing) end else if isKeyBound(source, key, "down", nothing) then unbindKey(source, key, "down", "chatbox", "TeamChat") unbindKey(source, key, "down", nothing) end end end) function nothing() end
  22. Server Side : !!! local teamName = "Gan" local key = "m" addCommandHandler("TeamChat", function (player, _, ...) local msg = table.concat({...}, " ") local pName = getPlayerName(player) local team = getPlayerTeam(player) if team and getTeamName(team) == teamName then local r, g, b = getTeamColor(team) for _, p in ipairs (getPlayersInTeam(team)) do outputChatBox("("..teamName..") "..pName..": #FFFFFF"..msg, p, r, g, b, true) end else if isKeyBound(player, key, "down", nothing) then unbindKey(player, key, "down", "chatbox", "TeamChat") unbindKey(player, key, "down", nothing) end end end) addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs (getElementsByType("player")) do local team = getPlayerTeam(player) if team and getTeamName(team) == teamName then bindKey(player, key, "down", "chatbox", "TeamChat") bindKey(player, key, "down", nothing) end end end) addEventHandler("onPlayerSpawn", root, function() local team = getPlayerTeam(source) if team and getTeamName(team) == teamName then if not isKeyBound(source, key, "down", nothing) then bindKey(source, key, "down", "chatbox", "TeamChat") bindKey(source, key, "down", nothing) end else if isKeyBound(source, key, "down", nothing) then unbindKey(source, key, "down", "chatbox", "TeamChat") unbindKey(source, key, "down", nothing) end end end) function nothing() end
  23. انا حاط البايند عشان يشيل كلمة teamsay يمكن تحل لي المشكلة لو سمحتى ,,,
  24. hi guys ihave code that replace (Team) to Gang and i have code that replace teamsay to Chat but it dosent work { when i writte on the "y" the word dosent display } bindKey(source, "y", "down", "chatbox", "FOY.Chat") addEventHandler('onPlayerChat', getRootElement(), function(msg, type) if type == 2 then cancelEvent() local r, g, b = getPlayerNametagColor(source) for placeNumber, playerData in ipairs(getPlayersInTeam(getPlayerTeam(source))) do outputChatBox("#00FF00|FOY Chat| :"..getPlayerName(source)..":#FFFFFF "..string.gsub(msg, "#%x%x%x%x%x%x", ""), playerData, r, g, b, true) end end end)
×
×
  • Create New...