Jump to content

فكرة رائعة


Recommended Posts

  • Replies 102
  • Created
  • Last Reply

Top Posters In This Topic

^ مثل وش
if Table[Element] then 

هذي فكرتها تتحقق ان اللاعب له جدول .

وقبل فترة كان يجي بالديبق خطأ لو ما أكدت ان له جدول

جربتها الآن بدون التحقق وكويس مافيه اخطاء .

Link to comment
^ مثل وش
if Table[Element] then 

هذي فكرتها تتحقق ان اللاعب له جدول .

وقبل فترة كان يجي بالديبق خطأ لو ما أكدت ان له جدول

جربتها الآن بدون التحقق وكويس مافيه اخطاء .

انا عارف وش تعني بس اقلك زيادة ><

Link to comment
createColRectangle 
createRadarArea 
getPlayerTeam 
getTeamName 
"onColShapeHit" 
"onColShapeLeave" 
setTimer 
getElementsWithinColShape 
setRadarAreaFlashing 
setRadarAreaColor 
givePlayerMoney 

إحتلال أراضي تقف بالكول شيب لمدة معينة ويصير لون المربع ( الكول شيب ) علي لون تيمك وتحصل علي فلوس

:D

Link to comment
local Area = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
local Cuboid = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 ) 
  
addEventHandler("onColShapeHit", root, 
function( h ) 
if (getPlayerTeam( H )) then 
if( source == Cuboid ) then 
أكمل 
end 
end 
end) 
  
addEventHandler("onColShapeLeave", root,   
        function( ) 
            if( source == Cuboid ) then 
أكمل 
                end 
            end 
    ) 

أكمل مكان النقط ....

:D

تم التعديل

Edited by Guest
Link to comment
local Area = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
local Cuboid = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 ) 
  
addEventHandler("onColShapeHit", root, 
function( h ) 
if (getPlayerTeam( H )) then 
if( source == Cuboid ) then 
أكمل 
end 
end 
end) 
  
addEventHandler("onColShapeLeave", root,   
        function( ) 
            if( source == Cuboid ) then 
أكمل 
                end 
            end 
        end 
    ) 

أكمل مكان النقط ....

:D

فيه اند زايد سطر 17

وليه حاط ؟ h H

يحط سورس بدون مايعرف شيء لان السورس معرف داخل الافنت

Link to comment
local Area = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
local Cuboid = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 ) 
  
addEventHandler("onColShapeHit", root, 
function( h ) 
if (getPlayerTeam( H )) then 
if( source == Cuboid ) then 
أكمل 
end 
end 
end) 
  
addEventHandler("onColShapeLeave", root,   
        function( ) 
            if( source == Cuboid ) then 
أكمل 
                end 
            end 
        end 
    ) 

أكمل مكان النقط ....

:D

فيه اند زايد سطر 17

وليه حاط ؟ h H

يحط سورس بدون مايعرف شيء لان السورس معرف داخل الافنت

الاند الزايد في السطر 19 =_=

Link to comment
^ يختار آي اند ض1 من الثلاثة اللي جنب بعض

يب بسب بلنسبة للترتييب اخر واحد هو الزايد

لان الاول و التاني

يينهون الفنكشن و الif :D

Link to comment
local Area = createRadarArea( 2778, 834, 110, 190, 255, 255, 255, 125 ) 
local Cuboid = createColCuboid( 2777.4248046875, 833.88018798828, 9.6484375,  113.5, 188, 30 ) 
  
addEventHandler("onColShapeHit", root, 
function( h ) 
if (getPlayerTeam( h )) then 
if( source == Cuboid ) then 
setRadarAreaFlashing( pArea2, true ) 
أكمل مكان النقط 
. 
. 
. 
. 
. 
. 
end 
end 
end) 
  
addEventHandler("onColShapeLeave", root,   
        function( ) 
            if( source == Cuboid ) then 
setRadarAreaFlashing( pArea2, false ) 
                end 
            end 
    ) 

أي أنتم ياقوم !!

:arrow:

Link to comment
  • Moderators

سو باب ييفتح للكونسل عن طريق

الdata

سهلة :wink:

تفضل :

x,y,z = 2485.06665, -1667.15356, 13.34375 
  
marker = createMarker( x,y,z, 'cylinder', 4, 0, 0, 0, 0  ) 
Gate = createObject ( 2963, x,y,z, 0, 0, 270.25 ) 
  
addEventHandler("onPlayerLogin",root, 
function (_,acc) 
    local accName = getAccountName(acc) 
    if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 
        setElementData(source,'openit',true) 
    end 
end) 
  
addEventHandler("onPlayerLogout",root, 
function (_,acc) 
    local accName = getAccountName(acc) 
    if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 
        setElementData(source,'openit',false) 
    end 
end) 
     
addEventHandler("onMarkerHit", marker, 
    function (Element) 
        if getElementType(Element) == "player" then 
            if getElementData(Element,'openit') then 
                moveObject(Gate,1500, x,y,z+7 ) 
            else 
                outputChatBox('* You are not admin ',Element,0,255,255,true) 
            end 
        end 
    end 
, false ) 
  
addEventHandler ( "onMarkerLeave", marker, 
function (Element) 
        if getElementType(Element) == "player" then 
            if getElementData(Element,'openit') then 
                moveObject(Gate,1500, x,y,z ) 
            end 
        end 
    end 
, false )  

كل الي عليك انك تحط احداثيات الباب في السطر الاول و الباقي علي السكربت ذذ

أي خطأ قول :wink:

Link to comment

سو باب ييفتح للكونسل عن طريق

الdata

سهلة :wink:

تفضل :

x,y,z = 2485.06665, -1667.15356, 13.34375 
  
marker = createMarker( x,y,z, 'cylinder', 4, 0, 0, 0, 0  ) 
Gate = createObject ( 2963, x,y,z, 0, 0, 270.25 ) 
  
addEventHandler("onPlayerLogin",root, 
function (_,acc) 
    local accName = getAccountName(acc) 
    if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 
        setElementData(source,'openit',true) 
    end 
end) 
  
addEventHandler("onPlayerLogout",root, 
function (_,acc) 
    local accName = getAccountName(acc) 
    if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then 
        setElementData(source,'openit',false) 
    end 
end) 
     
addEventHandler("onMarkerHit", marker, 
    function (Element) 
        if getElementType(Element) == "player" then 
            if getElementData(Element,'openit') then 
                moveObject(Gate,1500, x,y,z+7 ) 
            else 
                outputChatBox('* You are not admin ',Element,0,255,255,true) 
            end 
        end 
    end 
, false ) 
  
addEventHandler ( "onMarkerLeave", marker, 
function (Element) 
        if getElementType(Element) == "player" then 
            if getElementData(Element,'openit') then 
                moveObject(Gate,1500, x,y,z ) 
            end 
        end 
    end 
, false )  

كل الي عليك انك تحط احداثيات الباب في السطر الاول و الباقي علي السكربت ذذ

أي خطأ قول :wink:

:shock:

Link to comment
  
Event : 'onClientGUIClick' 
triggerServerEvent 
addEvent 
addEventHandler 
math.random 
givePlayerMoney 

  
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = math.random(1000,10000) 
  
end) 

كملو باقي السيرفر و الكلنت ذذ

Link to comment
addEventHandler ("onClientGUIClick",Button, 
function (  ) 
triggerServerEvent ( "Mta", localPlayer ) 
end,false 
) 
  

  
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = math.random(1000,10000) 
givePlayerMoney ( source, Random ) 
end) 

EDIT :

Hassan Meke @@

توي آشوف ردك

addEventHandler('onClientGUIClick',root,-- ليه حاط root حط اسم الزر 
function () 
triggerServerEvent("MTA",getLocalPlayer()) 
end) 
=============================================== 
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = givePlayerMoney ( source, math.random(1000,10000) ) 
end) 

Edited by Guest
Link to comment
بس شو تبي بل ترايقر

لو ما فيه شيئ ل وفيه زر او شيئ نحط الترايقر فيه هدف بس ما فيه هدف لنحط الترايقر

الفلوس في الكلنت وهمية

شف ردي عدلته عندك خطأ

ردينا بنفس الوقت :lol:

Link to comment
addEventHandler ("onClientGUIClick",Button, 
function (  ) 
triggerServerEvent ( "Mta", localPlayer ) 
end,false 
) 
  

  
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = math.random(1000,10000) 
givePlayerMoney ( source, Random ) 
end) 

EDIT :

Hassan Meke @@

توي آشوف ردك

addEventHandler('onClientGUIClick',root,-- ليه حاط root حط اسم الزر 
function () 
triggerServerEvent("MTA",getLocalPlayer()) 
end) 
=============================================== 
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = givePlayerMoney ( source, math.random(1000,10000) ) 
end) 

ليه حاطط اسم الزر Button

Link to comment
addEventHandler ("onClientGUIClick",Button, 
function (  ) 
triggerServerEvent ( "Mta", localPlayer ) 
end,false 
) 
  

  
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = math.random(1000,10000) 
givePlayerMoney ( source, Random ) 
end) 

EDIT :

Hassan Meke @@

توي آشوف ردك

addEventHandler('onClientGUIClick',root,-- ليه حاط root حط اسم الزر 
function () 
triggerServerEvent("MTA",getLocalPlayer()) 
end) 
=============================================== 
addEvent("MTA",true) 
addEventHandler("MTA",root, function ( ) 
local Random = givePlayerMoney ( source, math.random(1000,10000) ) 
end) 

ليه حاطط اسم الزر Button

آجل وش آحطه ؟ :|

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...