Wysłany: 2015-08-23, 15:09
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
mozesz zrobic to ?
[ Dodano : 2015-08-23, 15:15 ]
--[[
Przebieralnia
@ copyright 2013 - 2014 Split < split @ go - life . pl >
@ author Split < split @ go - life . pl >
@ version 1.0 beta
Nie masz prawa u ? ywac tego kodu bez mojej zgody .
Napisz do mnie by ? mo ? e si ? zgodz ? na u ? ycie kodu .
]]--
local skiny = { 280 , 285 , 286 , 300 , 298 , 72 }
local ubrania = createMarker (- 176.31 , 1112.27 , 19.74 , "corona" , 2 , 0 , 255 , 255 )
setElementData ( ubrania , "marker_opis" , "Wyb?r skina" )
setElementInterior ( ubrania , 0 )
setElementDimension ( ubrania , 0 )
okno = guiCreateWindow ( 997 , 179 , 262 , 381 , "Przebieralnia" , false )
gridlist = guiCreateGridList ( 9 , 27 , 243 , 344 , false , okno )
guiGridListAddColumn ( gridlist , "ID" , 0.9 )
guiWindowSetSizable ( okno , false )
guiSetVisible ( okno , false )
for i , v in ipairs ( skiny ) do
local row = guiGridListAddRow ( gridlist )
guiGridListSetItemText ( gridlist , row , 1 , v , false , false )
end
addEventHandler ( "onClientGUIClick" , gridlist , function()
local model = guiGridListGetItemText ( gridlist , guiGridListGetSelectedItem ( gridlist ))
if model then
triggerServerEvent ( "onPlayerEditSkin" , getLocalPlayer (), model )
end
end )
addEventHandler ( "onClientMarkerHit" , ubrania , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el == localPlayer then
triggerServerEvent ( isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "VIP" ))
guiSetVisible ( okno , true )
showCursor ( true , false )
else
outputChatBox ( "Nie jeste? VIP'EM" )
end
end )
addEventHandler ( "onClientMarkerLeave" , ubrania , function( el , md )
guiSetVisible ( okno , false )
showCursor ( false )
end
end )
Cos w ten dens ?
Wysłany: 2015-08-23, 16:02
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
AstroStudio , Pokombinuj z tym kodem Tyko przestaw sobie kordy bo to s? moje
local myMarker = createMarker ( 1109.08203125 , 1768.8251953125 , 9.899000167847 , 'cylinder' , 1.0 , 76 , 76 , 76 , 150 )
local myMarker = createMarker ( 1109.08203125 , 1768.8251953125 , 9.899000167847 , 'cylinder' , 2.0 , 255 , 0 , 0 , 0 )
function MarkerHit ( hitElement , matchingDimension )
if matchingDimension then
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( hitElement )), aclGetGroup ( "Mechanik_LV" ) ) then
triggerClientEvent ( hitElement , "nazwa" , hitElement )
end
end
end
addEventHandler ( "onMarkerHit" , myMarker , MarkerHit )
[ Dodano : 2015-08-23, 16:03 ]
p.s. nom mo?e a jakie? db ?
Wysłany: 2015-08-23, 16:15
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
db jest
juz daje
LINK
[ Dodano : 2015-08-23, 16:29 ]
s-side
addEvent ( "onPlayerEditSkin" , true )
addEventHandler ( "onPlayerEditSkin" , root , function( model )
setElementModel ( source , model )
setElementData ( source , "gracz_ubranie" , model )
end )
createBlip ( - 179.10 , 1177.64 , 19.89 , 45 )
c-side
local skiny = { 280 , 285 , 286 , 300 , 298 , 72 }
local ubrania = createMarker (- 176.31 , 1112.27 , 19.74 , "corona" , 2 , 0 , 255 , 255 )
setElementData ( ubrania , "marker_opis" , "Wyb?r skina" )
setElementInterior ( ubrania , 0 )
setElementDimension ( ubrania , 0 )
okno = guiCreateWindow ( 997 , 179 , 262 , 381 , "Przebieralnia" , false )
gridlist = guiCreateGridList ( 9 , 27 , 243 , 344 , false , okno )
guiGridListAddColumn ( gridlist , "ID" , 0.9 )
guiWindowSetSizable ( okno , false )
guiSetVisible ( okno , false )
for i , v in ipairs ( skiny ) do
local row = guiGridListAddRow ( gridlist )
guiGridListSetItemText ( gridlist , row , 1 , v , false , false )
end
addEventHandler ( "onClientGUIClick" , gridlist , function()
local model = guiGridListGetItemText ( gridlist , guiGridListGetSelectedItem ( gridlist ))
if model then
triggerServerEvent ( "onPlayerEditSkin" , getLocalPlayer (), model )
end
end )
addEventHandler ( "onClientMarkerHit" , ubrania , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el == localPlayer then
triggerServerEvent ( isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "VIP" ))
guiSetVisible ( okno , true )
showCursor ( true , false )
else
outputChatBox ( "Nie jeste? VIP'EM" )
end
end )
addEventHandler ( "onClientMarkerLeave" , ubrania , function( el , md )
guiSetVisible ( okno , false )
showCursor ( false )
end
end )
Wysłany: 2015-08-23, 16:32
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
Pr?buj. C-side
local skiny = { 280 , 285 , 286 , 300 , 298 , 72 }
local ubrania = createMarker (- 176.31 , 1112.27 , 19.74 , "corona" , 2 , 0 , 255 , 255 )
setElementData ( ubrania , "marker_opis" , "Wyb?r skina" )
setElementInterior ( ubrania , 0 )
setElementDimension ( ubrania , 0 )
okno = guiCreateWindow ( 997 , 179 , 262 , 381 , "Przebieralnia" , false )
gridlist = guiCreateGridList ( 9 , 27 , 243 , 344 , false , okno )
guiGridListAddColumn ( gridlist , "ID" , 0.9 )
guiWindowSetSizable ( okno , false )
guiSetVisible ( okno , false )
for i , v in ipairs ( skiny ) do
local row = guiGridListAddRow ( gridlist )
guiGridListSetItemText ( gridlist , row , 1 , v , false , false )
end
addEventHandler ( "onClientGUIClick" , gridlist , function()
local model = guiGridListGetItemText ( gridlist , guiGridListGetSelectedItem ( gridlist ))
if model then
triggerServerEvent ( "onPlayerEditSkin" , getLocalPlayer (), model )
end
end )
addEventHandler ( "onClientMarkerHit" , ubrania , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el == localPlayer then
triggerServerEvent ( isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "VIP" ))
guiSetVisible ( okno , true )
showCursor ( true , false )
else
outputChatBox ( "Nie jeste? VIP'EM" )
end
end )
addEventHandler ( "onClientMarkerLeave" , ubrania , function( el , md )
guiSetVisible ( okno , false )
showCursor ( false )
end )
end )
[ Dodano : 2015-08-23, 16:37 ]
tera
local skiny = { 280 , 285 , 286 , 300 , 298 , 72 }
local ubrania = createMarker (- 176.31 , 1112.27 , 19.74 , "corona" , 2 , 0 , 255 , 255 )
setElementData ( ubrania , "marker_opis" , "Wyb?r skina" )
setElementInterior ( ubrania , 0 )
setElementDimension ( ubrania , 0 )
okno = guiCreateWindow ( 997 , 179 , 262 , 381 , "Przebieralnia" , false )
gridlist = guiCreateGridList ( 9 , 27 , 243 , 344 , false , okno )
guiGridListAddColumn ( gridlist , "ID" , 0.9 )
guiWindowSetSizable ( okno , false )
guiSetVisible ( okno , false )
for i , v in ipairs ( skiny ) do
local row = guiGridListAddRow ( gridlist )
guiGridListSetItemText ( gridlist , row , 1 , v , false , false )
end
addEventHandler ( "onClientGUIClick" , gridlist , function()
local model = guiGridListGetItemText ( gridlist , guiGridListGetSelectedItem ( gridlist ))
if model then
triggerServerEvent ( "onPlayerEditSkin" , getLocalPlayer (), model )
end
end )
addEventHandler ( "onClientMarkerHit" , ubrania , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el == localPlayer then
triggerServerEvent ( isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "VIP" ))
guiSetVisible ( okno , true )
showCursor ( true , false )
else
outputChatBox ( "Nie jeste? VIP'EM" )
end )
end )
addEventHandler ( "onClientMarkerLeave" , ubrania , function( el , md )
guiSetVisible ( okno , false )
showCursor ( false )
end )
end )
Wysłany: 2015-08-23, 16:55
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
c-side
local skiny = { 280 , 285 , 286 , 300 , 298 , 72 }
local ubrania = createMarker (- 176.31 , 1112.27 , 19.74 , "corona" , 2 , 0 , 255 , 255 )
setElementData ( ubrania , "marker_opis" , "Wyb?r skina" )
setElementInterior ( ubrania , 0 )
setElementDimension ( ubrania , 0 )
okno = guiCreateWindow ( 997 , 179 , 262 , 381 , "Przebieralnia" , false )
gridlist = guiCreateGridList ( 9 , 27 , 243 , 344 , false , okno )
guiGridListAddColumn ( gridlist , "ID" , 0.9 )
guiWindowSetSizable ( okno , false )
guiSetVisible ( okno , false )
for i , v in ipairs ( skiny ) do
local row = guiGridListAddRow ( gridlist )
guiGridListSetItemText ( gridlist , row , 1 , v , false , false )
end
addEventHandler ( "onClientGUIClick" , gridlist , function()
local model = guiGridListGetItemText ( gridlist , guiGridListGetSelectedItem ( gridlist ))
if model then
triggerServerEvent ( "onPlayerEditSkin" , getLocalPlayer (), model )
end
end )
addEventHandler ( "onClientMarkerHit" , ubrania , function( el , md )
if not md or getElementType ( el ) ~= "player" then return end
if el == localPlayer then
tiggerServerEvent ( isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "VIP" )))
guiSetVisible ( okno , true )
showCursor ( true , false )
else
end
end )
addEventHandler ( "onClientMarkerLeave" , ubrania , function( el , md )
guiSetVisible ( okno , false )
showCursor ( false )
end )
Nie dzia?a
[ Dodano : 2015-08-23, 17:06 ]
DB3 : http://wrzuc.se/i/55d9def8d1c2a
Wysłany: 2015-08-24, 00:50
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
tiggerServerEvent ( isObjectInACLGroup ( "user." .. accName , aclGetGroup ( "VIP" )))
Co to jest? :O
Wysłany: 2015-08-24, 01:29
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Wysłany: 2015-08-24, 15:27
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
Sk?adnie tej funkcji, to ma trigerrowa? event a nie funkcj?.
Tagi: skiny :: premium
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: