Marker = createMarker ( x , y , z , 'cylinder' , 1.3 , 255,255,255 )
addEventHandler('onMarkerHit',resourceRoot, function ( hit )
if ( hit and getElementType ( hit ) == 'player' ) then
setElementModel ( hit , 284 )
outputChatBox('* you have been skin !',hit,255,0,0,true)
end
end)
بدل الـ x,y,z ب الاحداثيات
As Well as ?
team1 = createTeam("example", r, g, b)
addCommandHandler('stc', function ( player , cmd , hex) -- stc = Set Team Color
if ( cmd and hex ) then
if ( team1 ) then
local Color = { getColorFromString ( tostring ( hex ) ) }
setTeamColor ( team1 , Color[1] , Color[2] , Color[3] )
end
end
end
)
try this
team1 = createTeam("example", r, g, b)
addCommandHandler('stc', function ( player , cmd , r , g , b ) -- stc = Set Team Color
if ( cmd and r and g and b ) then
if ( team1 ) then
setTeamColor ( team1 , r , g , b )
end
end
end
)