Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. -- # Server Side : --[[ اختصار للمتغيرات Shortcut Variables --]] local Team = "Team Name Here" local marker = createMarker( x,y,z,"cylinder",5, 0, 0, 0, 0 ) --[[ t التحقق اذا كان هناك فريق بـ اسم الفريق او لا ! اذا لا يتم ايقاف تشغيل السكربت ! Check If There's a Team Called 'Team' Or No If No Then Stop The Resource --]] addEventHandler("onResourceStart",resourceRoot, function ( ) if not getTeamFromName ( Team ) then outputChatBox(" "..getResourceName ( getThisResource ( ) ).." Has Been Stopped Can't Find The Team !",root,255,0,0) cancelEvent ( ) end end ) --[[ Check Team When Hit a Marker And Send The Msg التحقق من التيم و ارسال الرسالة الى الجميع ! --]] addEventHandler("onMarkerHit",marker, function ( player ) if ( getElementType ( player ) == "player" ) then if ( getPlayerTeam ( player ) ~= getTeamFromName ( Team ) ) then for _,v in next,getPlayersInTeam ( getTeamFromName ( Team ) ) do outputChatBox("* The Player ( "..getPlayerName ( player ) .." ) Enter The Team Area!",v,255,0,0) end end end end ) لم يتم التجربة ..
  2. مأتوقع ، لانه اصدار جديد 1.4 وفيه كثير من التحديثات والاصلاحات اظن ذلك ذذ يعني يمكن بعد اقل فترهـ 8 شهور
  3. بعد ماتخلص كل اللغات على حسب علمي ..
  4. If you want a easy way to get a random spawns make a table .
  5. createMarker "onMarkerHit" getElementType getTeamName getPlayerTeam loop ipairs getPlayersInTeam getTeamFromName
  6. iPrestege

    end

    حياكـ الله ..
  7. You aren't make a much sense create a table and get the values and make a random spawn .
  8. I didn't understand what are you trying to do can you explain more clear?
  9. iPrestege

    end

    تأكد انك مطفي الفري روم او التاج او اي شيء فية حدث الشات !؟
  10. انت كيف مسوي المنطقة مسويها ولا تبي تسويها اصلا ؟ يعني مسوي ماركر شيء ذذ ؟
  11. iPrestege

    end

    -- # Server Side : local TimeChecker = { } local TheLastMessage = { } addEventHandler("onPlayerChat",getRootElement(), function ( msg,type ) if ( type == 0 or type == 2 ) then if TimeChecker[source] and TimeChecker[source] + 15000 > getTickCount() then cancelEvent ( ) outputChatBox("Wait 15 Second !!",source,255,0,0) return else TimeChecker[source] = getTickCount() end if TheLastMessage[source] and TheLastMessage[source] == msg then cancelEvent ( ) outputChatBox("Stop Send The Same Message !?",source, 255, 0, 0) return else TheLastMessage[source] = msg end end end ) لم يتم التجربة ..
  12. No you're not make a sense the freeroam is not defined any where as i said above you have to edit the file fr_client.lua .
  13. iPrestege

    end

    getTickCount table "onPlayerChat"
  14. iPrestege

    end

    يعني انتي فلود ؟
  15. ممآدري هو اشتغل تمام معك .. ؟
  16. iPrestege

    end

    كودكـ احس انة ماله معنى ودكـ تقولنا وش تحاول تسوي انتي فلود ؟
  17. عدلت التيبل سطر 23 و كل فنكشنات الدي اكس text ..
  18. للآسف كودكـ ماله اي معنى .. لم يتم التجربة حتى الان .. -- # Client Side addEventHandler("onClientGUIClick",Button, function ( ) triggerServerEvent("SetRandomTeams",localPlayer) end ,false ) -- # Server Side ! local Teams = { "Police", "Grove", "Prestege" } addEvent("SetRandomTeams",true) addEventHandler("SetRandomTeams",getRootElement(), function ( ) local team = ( Teams[math.random(#Teams)] ) if ( getTeamFromName ( team ) ) then setPlayerTeam ( source,getTeamFromName( team ) ) outputChatBox("* You Have Been Assigned To "..getTeamName ( getPlayerTeam ( source ) ) .." Team! ",source,0,255,0) else outputChatBox("* Team Not Found!",source,255,0,0) end end )
  19. عدلت التيبل و الارقمنتات فقط .. قلت لك شوفة وعدلة بس منت راضي بسيطة هي ذذ
  20. https://forum.multitheftauto.com/viewtopic.php?f=119&t=48684 يهب وش ذا كيف جبته قديم فية بحث اكتب كلمة من الكود تطلع لك النتائج ..
×
×
  • Create New...