Jump to content

كود Group system


Recommended Posts

-- Client Side --

addEventHandler("onClientPlayerDamage",getLocalPlayer(), 
    function ( )     
        if ( getElementData( getLocalPlayer(),"GroupLeader" ) == true ) then 
        cancelEvent( true ) 
    end 
end 
) 

سويت لة الكود بمآ آنة الداتا صعبة والخ بـ ينلحس شوي خصوصا المود مآهو لة

<>

Link to comment
^ الدآتآ معقده ><

لا بالعكس اسهل و تسهل كثير كثير بالاستخدامات !! مثلا نفرض انك بتسوي كوماند كذآ :

addCommandHandler("data", 
    function ( ) 
        if not ( getElementData(localPlayer,"DataValue") == true ) then 
        setElementData(localPlayer,"DataValue",true) 
    else 
        outputChatBox("تم العثور على الداتا") 
    end 
end 
) 
Link to comment

اذا الكود ذا صح فإني فهمت,

Marker = createMarker(...) 
addEventHandler("onClientMarkerHit",Marker, 
function(player) 
if not (getElementData(player,"Can't") == true ) then 
setElementData(player,"Can't",true) 
else 
createVehicle(...) 
   end 
end) 

؟

Link to comment
اذا الكود ذا صح فإني فهمت,

Marker = createMarker(...) 
addEventHandler("onClientMarkerHit",Marker, 
function(player) 
if not (getElementData(player,"Can't") == true ) then 
setElementData(player,"Can't",true) 
else 
createVehicle(...) 
   end 
end) 

؟

صح عليكـ .. الداتا ~

Link to comment
-- Client Side --

addEventHandler("onClientPlayerDamage",getLocalPlayer(), 
    function ( )     
        if ( getElementData( getLocalPlayer(),"GroupLeader" ) == true ) then 
        cancelEvent( true ) 
    end 
end 
) 

سويت لة الكود بمآ آنة الداتا صعبة والخ بـ ينلحس شوي خصوصا المود مآهو لة

<>

مشكؤؤر يابرستجي

Link to comment
اذا الكود ذا صح فإني فهمت,

Marker = createMarker(...) 
addEventHandler("onClientMarkerHit",Marker, 
function(player) 
if not (getElementData(player,"Can't") == true ) then 
setElementData(player,"Can't",true) 
else 
createVehicle(...) 
   end 
end) 

؟

^

if not (getElementData(player,"Can't") == true ) then 

ما تفرق عن :fadein:

if (getElementData(player,"Can't") == false ) then 

أو

if (getElementData(player,"Can't") ~= true ) then 

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...