Jump to content

code edit help !!!


Randomnob

Recommended Posts

ihave a skin marker code

but ineed someone to make it for "Group"

--server 
local marker = createMarker(2784, 1267.4000244141, 10.60000038147, "cylinder", 2, 0, 0, 0, 170) 
  
addEventHandler("onMarkerHit",marker, 
    function(player) 
        if getElementType(player) == "player" then 
            setElementModel(player,299) 
        end 
    end 
) 

ifounded this but not working :@

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

my edidit code with output chat

--server 
local marker = createMarker(2784, 1267.4000244141, 10.60000038147, "cylinder", 2, 0, 0, 0, 170) 
  
addEventHandler("onMarkerHit",marker, 
    function(player) 
        if getElementType(player) == "player" then 
            if ( getElementData(player, "Group" ) ~= "GHOST" ) then 
    outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", player, 255, 255, 0, true) 
    else 
    outputChatBox("#FF0000* #FFF000Your Skin Changed .", player, 255, 255, 0, true) 
            setElementModel(player,299) 
        end 
    end 
) 

help :@ iwant the first code with output chat + "group" elementData :@

Link to comment
--server 
local marker = createMarker ( 2784, 1267.4000244141, 10.60000038147, "cylinder", 2, 0, 0, 0, 170 ) 
  
addEventHandler ( "onMarkerHit", marker, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            if ( getElementData ( player, "Group" ) ~= "GHOST" ) then 
                outputChatBox ( "#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", player, 255, 255, 0, true ) 
            else 
                outputChatBox ( "#FF0000* #FFF000Your Skin Changed .", player, 255, 255, 0, true ) 
                setElementModel ( player, 299 ) 
            end 
        end 
    end 
) 

Link to comment
--server 
local marker = createMarker ( 2784, 1267.4000244141, 10.60000038147, "cylinder", 2, 0, 0, 0, 170 ) 
  
addEventHandler ( "onMarkerHit", marker, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            if ( getElementData ( player, "Group" ) ~= "GHOST" ) then 
                outputChatBox ( "#FF0000* #FFF000Only For #FF0000 .:[GHOST]:. #FFF000Group ", player, 255, 255, 0, true ) 
            else 
                outputChatBox ( "#FF0000* #FFF000Your Skin Changed .", player, 255, 255, 0, true ) 
                setElementModel ( player, 299 ) 
            end 
        end 
    end 
) 

Thanks ;)

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