The moVer Posted April 23, 2015 Share Posted April 23, 2015 --Client Side local blip2 = createBlip (1536.27, -1686.387, 13.546,5) addEventHandler( "onClientResourceStart", resourceRoot, function ( ) progress = guiCreateProgressBar( 0.8, 0.8, 0.1, 0.1, true ) marker = createMarker ( 3005.3,817,45.6,"cylinder", 2, 255, 255, 255, 50) guiSetVisible ( progress, false ) setElementDimension ( marker, 2 ) end ) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( element ) if ( source == marker ) then if ( element == getLocalPlayer ( ) and not getPedOccupiedVehicle ( element ) ) then triggerServerEvent("chp", localPlayer) end end end) addEvent("p", true) addEventHandler("p", root, function guiSetVisible ( progress, true ) guiProgressBarSetProgress ( progress, 0 ) function updateProgress ( ) guiProgressBarSetProgress ( progress, guiProgressBarGetProgress ( progress ) + 1 ) if ( guiProgressBarGetProgress ( progress ) == 100 ) then guiSetVisible ( progress, false ) outputChatBox ( "* CTF Completed" ) triggerServerEvent("CtfC", localPlayer) guiProgressBarSetProgress ( progress, 0 ) if isTimer ( timer ) then killTimer ( timer ) end end end timer = setTimer ( updateProgress, 600, 0) end end addEventHandler ( "onClientMarkerLeave", resourceRoot, function ( element ) if ( source == marker ) then if ( element == getLocalPlayer ( ) and not getPedOccupiedVehicle ( element ) ) then end if isTimer ( timer ) then killTimer ( timer ) timer = nil guiProgressBarSetProgress ( progress, 0 ) guiSetVisible ( progress, false ) end end end) --Server Side addEvent("chp", true) addEventHandler("chp", root, function local policeTeam = getTeamFromName ("Police") if (policeTeam) then local police = getPlayersInTeam (policeTeam) triggerClientEvent(client, "p", client) end end end السلام عليكم ورحمة الله وبركاته وش مشكلة هاذا الكود ما يشتغل الديبوق:[19:31:40] SCRIPT ERROR: ctf-tarek\mapEditorScriptingExtension_s.lua:4: '(' expec ted near 'local' [19:31:40] ERROR: Loading script failed: ctf-tarek\mapEditorScriptingExtension_s. lua:4: '(' expected near 'local' Link to comment
Simple. Posted April 23, 2015 Share Posted April 23, 2015 مآيحتاج تسوي موضوع , وموضوعك للحين موجود وثآني واحد بعد --Server Side addEvent("chp", true) addEventHandler("chp", root, function local policeTeam = getTeamFromName ("Police") if (policeTeam) then local police = getPlayersInTeam (policeTeam) triggerClientEvent(client, "p", 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