-
Posts
740 -
Joined
-
Last visited
Everything posted by al-Kobra
-
local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0, 255) function e7tlal ( player ) local playerteam = getPlayerTeam ( player ) local tT = getElementData ( marker, "gettT") if (tT == playerteam) then outputChatBox("هذه المنطقة تتبع فريق"..tT, player, 0, 255, 0, false) else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if (getTeamName( team ) == "No Team") then local playerteam = getPlayerTeam ( player ) if ( playerteam ) then if ( isTimer ( btt ) ) then return end local tT = getElementData ( marker, "gettT" ) if tT then outputChatBox("لقد جئت لمنطقة الاحتلال التابعة لـ"..tT..". انتظر دقيقتين لربح 4 الاف", player, 0, 255, 0, false) else outputChatBox("هذه المنطقة ليست ملك لأحد ,, يجب ان تنتظر دقيقتين والسيطرة على المنطقة لربح 4 الاف ", player, 0, 255, 0, false) end btt = setTimer ( function ( ) local beachTurfCplayers = getElementColShape ( marker ) local players = getElementsWithinColShape ( marker, "player" ) for _, player in ipairs ( players ) do outputChatBox("تهانينا ,, لقد ربحت 4 الاف", player, 0, 255, 0, false) givePlayerMoney ( player, 4000 ) setElementData ( marker, "gettT", playerteam ) end end ,60000, 1 ) end end end end addEventHandler ( "onMarkerHit", marker, e7tlal ) جربه
-
هذا الفنكشن يعطي لون للكول شيب ,, يعني يصير مثل الاحتلال في الخريطة createRadarArea
-
local cols = createColRectangle ( fX, fY, 10, 10 ) addEventHandler ("onColShapeHit", cols, function ( hitElement ) if getElementType ( hitElement ) == "player" then givePlayerMoney ( hitElement, 100000 ) end end ) لازم تعوض عن الـ "fx,fy"
-
local t1 = getTeamFromName ( "harb1" ) local t2 = getTeamFromName ( "harb2" ) local team1 = countPlayersInTeam (t1) local team2 = countPlayersInTeam (t2) label2 = guiCreateLabel(699, 541, 336, 39, "يوجد "..team1.." في الفريق:", false, wnd) guiLabelSetColor(label2, 120, 254, 0) label3 = guiCreateLabel(249, 537, 336, 39, "يوجد "..team2.." في الفريق", false, wnd) جرب
-
يب انا اقصد مستطييل بس هل يطلع في اف 11 على الخريطه يعني وكيف اعرف انه انصنع لانه مخفي مهب مرئي سو معاه createRadarArea
-
local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0, 255) خل هذا الكود بدال الماركر ,, وشوف وش يطلع بالديبوق ؟
-
مشكور * بس ابي اعرف لتيم وش هذا لكل التيمات ,, اذا تبغيه لتيم محدد ضيف هالكود تحت السطر 11 if (getTeamName( team ) == "اسم التيم") then
-
بالضبط !! 3
-
local marker = createMarker( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) local Money = المبلغ addEventHandler ( "onMarkerHit", marker, function ( player ) local playerTeam = getPlayerTeam ( player ) local turfTeam = getElementData ( marker, "getturfTeam", true ) if (turfTeam == playerTeam) then outputChatBox("هذه المنطقة تتبع فريق"..turfTeam, player, 0, 255, 0, false) else if not getPlayerTeam(player) then return end local team = getPlayerTeam ( player ) if ( team ) then if ( isTimer ( btt ) ) then return end local turfTeam = getElementData ( marker, "getturfteam", true ) if turfTeam then outputChatBox("لقد جئت لمنطقة الاحتلال التابعة لـ "..turfTeam.."انتظر دقيقتين لربح 4 الاف", player, 0, 255, 0, false) else outputChatBox("هذه المنطقة ليست ملك لأحد ,, يجب ان تنتظر دقيقتين والسيطرة على المنطقة لربح 4 الاف", player, 0, 255, 0, false) end btt = setTimer ( function ( ) local players = getElementsWithinMarker ( marker, "player" ) for _, player in ipairs ( players ) do outputChatBox(" تهانينا ,, لقد ربحت "..Money.." ", player, 0, 255, 0, false) setTimer( givePlayerMoney, 95000, 0, player, Money ) setElementData ( marker, "getturfteam", playerTeam ) end end ,6000, 1 ) end end end end) هذا كود مسوينه من قبل وعدلت عليه خليته للتيم جربه
-
local Marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) function animation ( ) if isElementWithinMarker( source, Marker ) then setTimer ( setPedAnimation, 3*1000, 1, source, "DANCING", "اسم الرقصة" ) end end bindKey ( source, "tab", "down", animation ) كذا ؟؟
-
local Marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) addEventHandler( "onMarkerHit", Marker, function animation ( hitElement ) if getElementType ( hitElement ) == "source" then setTimer ( setPedAnimation, 3*1000, 1, hitElement, "DANCING", "اسم الرقصة" ) end end ) bindKey ( hitElement, "tab", "down", animation ) جربه
-
table.insert table.sort executeSQLQuery -- create executeSQLQuery -- insert into executeSQLQuery -- update setElementData getElementData getPlayerMoney اظن بعد في
-
createMarker Event : 'onMarkerHit' bindKey setPedAnimation
-
function ( ) bindKey ( source,"1","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) addVehicleUpgrade ( o, 1010 ) outputChatBox( "[" .. getPlayerName(source) .. " ] #FF0000Has Bought A Nitro" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end function ( ) bindKey (source,"2","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle( source ) ) setVehicleRotation ( getPedOccupiedVehicle( source ), rx +180, ry, rz +180 ) outputChatBox( "[" .. getPlayerName( source ) .. " ] #FF0000Has Bought A Flip" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end function ( ) bindKey (source,"3","down", function( ) local m = getPlayerMoney ( source ) local o = getPedOccupiedVehicle ( source ) if o and m >= المبلغ then takePlayerMoney( source, المبلغ ) fixVehicle( o ) outputChatBox( "[" .. getPlayerName( source ) .. " ] #FF0000Has Bought A Repair" ) else outputChatBox( "* You Don't Have Enough Money", source, 255, 0, 0 ) end else outputChatBox( "* You Are Not in Vehicle", source, 255, 0, 0 ) end ) end جرب هذا
-
add this code in CRIME function if getElementData (source, "gang") == "GroupName" then
-
هذي : if getElementType ( element ) == "player" then عشان تتحقق من الا دخل الماركر هو بلير
-
.:[ الان، احصل على عضوية خاصة في سيرفر محترفين الالعاب ]:.
al-Kobra replied to Bssol's topic in Arabic / العربية
اهنيك على الفكرة يا شيييخ واصل يالذيب -
local Marker = createMarker ( X, Y, Z, "cylinder", 1, 255, 255, 0, 150 ) عوض هنا احداثيات الماركر addEventHandler("onClientMarkerHit", Marker, function ( hitPlayer ) if getElementType ( hitPlayer ) == "localPlayer" and getElementData( hitPlayer, "gang" ) == "[ARMY]" then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor( true ) end end ) addEventHandler("onClientMarkerLeave", Marker, function ( leftPlayer ) if getElementType ( leftPlayer ) == "localPlayer" and getElementData( leftPlayer, "gang" ) == "[ARMY]" then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor( false ) end end )
