بويكا Posted April 27, 2015 Share Posted April 27, 2015 ابي الماركر ذأ يفتح لرتبةة معينهه ~ VIP الكود كلينت Markers = { {-1364.21899,-484.03787,13.57188}, {-1368.18958,-475.70483,13.57188}, } for i,M in ipairs(Markers) do local mark = createMarker(M[1],M[2],M[3] - 1,"cylinder",3,0,255,0,255) local blip = createBlipAttachedTo(mark,27) end addEventHandler("onClientMarkerHit",resourceRoot, function (player) if localPlayer == player then if isPedInVehicle(localPlayer) then guiSetVisible(wnd,true) showCursor(true) guiSetInputEnabled(true) guiGridListSetSelectedItem(grid,0,1) guiStaticImageLoadImage(img,"img/1025.jpg") else outputChatBox("# You Have To Be In Vehicle",255,0,0) end end end ) addEventHandler("onClientGUIClick",ex, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) end ,false) Link to comment
ALw7sH Posted April 27, 2015 Share Posted April 27, 2015 تريقر لسيرفر سايد وتتحقق لو انه اللاعب عنده الرتبة ذي ولو عنده تريقر لكلاينت سايد عشان يفك اللوحة triggerServerEvent -- isObjectInACLGroup triggerClientEvent Link to comment
The moVer Posted April 27, 2015 Share Posted April 27, 2015 --Client Side Markers = { {-1364.21899,-484.03787,13.57188}, {-1368.18958,-475.70483,13.57188}, } for i,M in ipairs(Markers) do local mark = createMarker(M[1],M[2],M[3] - 1,"cylinder",3,0,255,0,255) local blip = createBlipAttachedTo(mark,27) end addEventHandler("onClientMarkerHit",resourceRoot, function (player) if localPlayer == player then if isPedInVehicle(localPlayer) then triggerServerEvent("CVIP", localPlayer) end end end ) addEvent("VIP", true) addEventHandler("VIP", root, function guiSetVisible(wnd,true) showCursor(true) guiSetInputEnabled(true) guiGridListSetSelectedItem(grid,0,1) guiStaticImageLoadImage(img,"img/1025.jpg") else outputChatBox("# You Have To Be In Vehicle",255,0,0) end) addEventHandler("onClientGUIClick",ex, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) end ,false) --Server Side addEvent("CVIP", true) addEventHandler("CVIP", root, function() local accName = getAccountName(getPlayerAccount(client)) if isObjectInACLGroup("user."..accName, aclGetGroup("VIP")) then triggerClientEvent(client, "VIP", client) end end) Link to comment
ALw7sH Posted April 27, 2015 Share Posted April 27, 2015 سطر 23 كلاينت ماحطيت قوسين للفنكشن else وفي نفس الفنكشن انت حاط if بدون ماتستخدم Link to comment
yazan Posted April 27, 2015 Share Posted April 27, 2015 client# markers = { [1]={ 3056, -2079.3999023438, -68.199996948242 }, [2]={ 3047.3999023438, -2080.3999023438, -68.199996948242 }, [3]={ 3021.6999511719, -2067.8999023438, -61.200000762939 }, [4]={ 3029.3000488281, -2022.6999511719, -58 }, [5]={ 3024.6999511719, -2105.8999023438, -69.199996948242 }, [6]={ 3025.1999511719, -2000.5999755859, -66.599998474121 } } addEventHandler('onClientResourceStart',resourceRoot,function() for k,v in ipairs(markers) do d = createMarker(v[1],v[2],v[3],'cylinder',3,255,255,175,170) end end ) addEventHandler("onClientMarkerHit",resourceRoot, function (player) if source == v then if isPedInVehicle(localPlayer) then triggerServerEvent("CVIP", localPlayer) else outputChatBox("# You Have To Be In Vehicle",255,0,0) end end end ) addEvent("VIP", true) addEventHandler("VIP", root, function guiSetVisible(wnd,true) showCursor(true) guiSetInputEnabled(true) guiGridListSetSelectedItem(grid,0,1) guiStaticImageLoadImage(img,"img/1025.jpg") end) server # addEvent("CVIP", true) addEventHandler("CVIP", root, function() local accName = getAccountName(getPlayerAccount(client)) if isObjectInACLGroup("user."..accName, aclGetGroup("VIP")) then triggerClientEvent(client, "VIP", client) end end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now