Jump to content

SoMoRay

Members
  • Posts

    169
  • Joined

  • Last visited

Everything posted by SoMoRay

  1. SoMoRay

    Fix Code

    local Team = createTeam ( "Alone", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) addEventHandler("onResourceStart",resourceRoot, function () setTimer(BlipT,1000,0) setTimer(BlipP,1000,0) end ) function BlipT() if source~=resource then return end setTeamFriendlyFire ( Team, false ) local players = getPlayersInTeam ( getTeamFromName ( "Alone" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 0 , 2 , 255 , 0 , 0 , 255 ) end end -------------------- police function BlipP() if source~=resource then return end local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 0 , 2 , 0 , 0 , 255 , 255 ) end end addEvent ( "spawnPed", true ) addEventHandler ( "spawnPed", root, function ( thePed ) if ( thePed == 2 ) then spawnPlayer ( source, 1485.0311279297, -2234.9086914063, 13.546875, 0, 2, 0, 0, Team ) setCameraTarget ( source, source ) elseif ( thePed == 280 ) then spawnPlayer ( source, 1568.5963134766, -1691.4530029297, 5.890625, 0, 280, 0, 0, policeTeam ) setCameraTarget ( source, source ) end end ) ------------------------------- kill ------------------------------------ function commitSuicide ( sourcePlayer ) killPed ( sourcePlayer, sourcePlayer ) end addCommandHandler ( "kill", commitSuicide ) ------------------------------------
  2. SoMoRay

    Fix Code

    no error debug and not work
  3. SoMoRay

    Fix Code

    Are You Main I Do Like that ? : local Team = createTeam ( "Alone", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) addEventHandler("onResourceStart",resourceRoot, function () setTimer(BlipT,1000,1) setTimer(BlipP,1000,1) end ) function BlipT() if source~=resource then return end setTeamFriendlyFire ( Team, false ) local players = getPlayersInTeam ( getTeamFromName ( "Alone" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 255 , 0 , 0 , 255 ) end end -------------------- police function BlipP() if source~=resource then return end local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 0 , 0 , 255 , 255 ) end end
  4. SoMoRay

    Fix Code

    local Team = createTeam ( "Alone", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) local policeTeam = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( policeTeam, false ) addEventHandler("onResourceStart",resourceRoot,function() if source~=resource then return end setTeamFriendlyFire ( Team, false ) local players = getPlayersInTeam ( getTeamFromName ( "Alone" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 255 , 0 , 0 , 255 ) end end) -------------------- police addEventHandler("onResourceStart",resourceRoot,function() if source~=resource then return end local players = getPlayersInTeam ( getTeamFromName ( "Police" ) ) if #players == 0 then return end --ends the script if there's no players on the police team for _, player in ipairs ( players ) do createBlipAttachedTo ( player , 58 , 2 , 0 , 0 , 255 , 255 ) end end)
  5. SoMoRay

    Fix Code

    same proplem not make blip
  6. SoMoRay

    Fix Code

    see guys this is the full code for createTeam with the blip addEventHandler("onResourceStart",resourceRoot, function() Team2 = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Team2, false ) for _, playersP in ipairs ( getPlayersInTeam ( getTeamFromName ( "Police" ) ) ) do createBlipAttachedTo ( playersP , 0 , 2 , 0 , 0 , 255 , 255 ) end end) Edit : there is no any bug in debugscript i be crazy with him I saw non eror but I don't know why he didn't work fine ! .
  7. SoMoRay

    Fix Code

    still not do blips for it's ! (
  8. SoMoRay

    Fix Code

    hi guys what wrong he did't create blips to team police for _, playersP in ipairs ( getPlayersInTeam ( getTeamFromName ( "Police" ) ) ) do createBlipAttachedTo ( playerP , 0 , 2 , 0 , 0 , 255 , 255 ) end
  9. بعد مايطلع شيء كلنت؟ شغال مود الداتا؟ ديبوق وش يقول ؟ ERROR: exports Call to non-running client resource (drawData) [string "?"] + انا سويت ملف lua جديد وضعته داخل ملف المود وضفته للميتا كلنت
  10. بعد مايطلع شيء
  11. ادري ماهو دقيق بس انا جربت سويت مثل هذه بس ماطلع لي شيء addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) exports["drawData"]:outputDraw ( '* " .. oldNick .. " is now known as " .. newNick .. ".',255,255,255,true ) end )
  12. السلام عليكم شلون استخدم DrawData
  13. خلاص حليتها تسلم ماتقصر !
  14. موجود نسيت اطرح + جربت الكولمون مالك مانحطو بعد
  15. الشخصيات مايحطها في القريد لست GridList = guiCreateGridList(9, 32, 264, 337, false, wnd)
  16. بخليه سيرفر الي قبل شوي لان انا راح اسويه سباون سيرفر يصير عند الكل كلنت لاكن انا سويت سيرفر Team = createTeam ( "No Team's", 255, 0, 0 ) setTeamFriendlyFire ( Team, false ) addEvent('Event',true) addEventHandler('Event',root, function ( id ) if tonumber ( id ) then setElementModel ( client,id ) setCameraTarget(source,source) end end )
  17. بخليه سيرفر الي قبل شوي لان انا راح اسويه سباون
  18. يب انا قصدي ويش استخدم
  19. طيب لو ابغيه اختار شخصية BH يسوي شخصية البيد BH نفس مود 50p مثال : https://community.multitheftauto.com/index.php?p=gallery&s=show&pic=2757
  20. ويش فايدة client ضغط عليها او وداني ويكي او مو كاتب شيء
×
×
  • Create New...