Jump to content

hello ineed 2 codes help :@!


Randomnob

Recommended Posts

ineed 2 codes and my map will be finished and posted on the community

the first one marker to fix cars but iwant the marker for Group

if ( getElementData(player, "Group" ) ~= "Group name" ) then 

the twice one

amarker to change player skin to skin:ID:127

and if any one know acode movegate also for Group dont be shy :D

waiting :DD

Link to comment
local skinmarker = createMarker(x, y, z, "cylinder", r, g, b) 
local fixmarker = createMarker(x, y, z, "cylinder", r, g, b) 
  
addEventHandler("onMarkerHit", root, 
function(hitElement, matchingDimension) 
if (source == skinmarker) then 
if (getElementType(hitElement) == "player") and (getElementData(player, "Group" ) = "Group name") then 
setElementModel(hitElement, 127) 
elseif (source == fixmarker) then 
if (getElementType(hitElement) == "vehicle") and (getElementData(player, "Group" ) = "Group name") then 
fixVehicle(hitElement) 
end 
end 
end 
end 
) 

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