Jump to content

hi guys iwant some one to help me with my cods :@


Randomnob

Recommended Posts

imaked 3 codes but the codes for puplics :@

iwant to make them for groups cuz ineed the codes for gangwars server so if any one can edit the codes to group

itried this

getElementData ( player , "Group" ) == groupName then 

but isnt no working the markers still for puplic

my codes

change interior code

----ماركر الدخول للبيت 
local mr1 = createMarker ( x, y, z, "arrow", 1, 255, 0, 0, 255 ) -- الماركر 
function msh1(player) -- الوظيفة 
        if getElementType(player)=="player" then -- التحقق من دخول الماركر 
        setElementInterior(player, theinterior ,x, y, z ) -- نقل اللاعب للبيت 
        end -- اغلاق 
end -- اغلاق 
addEventHandler("onMarkerHit", mr1, msh1) -- الحدث 
  
  
----ماركر الخروج من البيت 
  
local mr11 = createMarker(  x, y, z,"arrow",1.5, 150, 0, 0 ) -- الماركر 
setElementInterior( mr11, theinterior )  -- تحديد العالم الوهمي 
addEventHandler ("onMarkerHit",mr11, -- الحدث 
function ( player ) --الوظيفة 
        if ( getElementType ( player ) ==  ( "player" ) ) then -- التحقق من اللاعب 
        setElementPosition ( player , x ,y , z )    -- نقل اللاعب 
        setElementInterior( player, 0)   -- نقل اللاعب للعالم الوهمي 
        end -- اغلاق 
end -- اغلاق 
) 

armor and health code

----ماركر الدخول للبيت 
local mr1 = createMarker ( x, y, z, "cylinder", 1, 255, 0, 0, 255 ) -- الماركر 
function msh1(player) -- الوظيفة 
        if getElementType(player)=="player" then -- التحقق من دخول الماركر 
        setElementHealth ( player, 100 ) -- اعطاء دم 
        setPlayerArmor ( player, 100 ) -- اعطاء درع  
        end -- اغلاق 
end -- اغلاق 
addEventHandler("onMarkerHit", mr1, msh1) -- الحدث 

acode who make u have an apility to kill you group members

local mr11 = createMarker(  x, y, z,"arrow",1.5, 150, 0, 0 ) -- الماركر 
  
addEventHandler ("onMarkerHit",mr11, -- الحدث 
function ( player ) --الوظيفة 
        if ( getElementType ( player ) ==  ( "player" ) ) then -- التحقق من اللاعب 
        setElementPosition ( player , x ,y , z )    -- نقل اللاعب 
        end -- اغلاق 
end -- اغلاق 
) 

iknow this is hard but iam a beginner :@

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