will briggs Posted June 11, 2011 Share Posted June 11, 2011 Hey, Another problem (Yeah everything with me is a problem) This isnt working, it bypasses my login and spawns me in the middle of the map... Can anyone fix it for me or help me (PLEASE?) views = { { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- first view { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- second view (change coordinats obviously) { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- third, etc timer = false, -- view changing timer will be here current = 0 -- current view will be stored here } -- then views.timer = setTimer(function() local new = views.current == #views and 1 or views.current + 1 -- switch to view 1 if the last view is active or switch to next view setCameraMatrix(views[new][1], views[new][2], views[new][3], views[new][4], views[new][5], views[new][6]) views.current = new -- set new view as current end, 5000, 0) -- when you'll need to stop killTimer(views.timer) Thanks Link to comment
UAEpro Posted June 11, 2011 Share Posted June 11, 2011 from this code i don't think there is something wrong Link to comment
JR10 Posted June 11, 2011 Share Posted June 11, 2011 god damn it use [lua][/lua] so we can see the code -.- Link to comment
will briggs Posted June 11, 2011 Author Share Posted June 11, 2011 Here, heres the whole client side, When i have added this it makes the screen black and just the login appears... --[[uTOPIA SERVERS SCRIPT Made by: (UF)Will and (UF)Weirdy Name: main (client side) Description: controls functions such as login, register, spawn, respawn and data saving Last Edit: 17/1/11 ]] function promptLogin() guiSetInputEnabled (true) views = { { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- first view { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- second view (change coordinats obviously) { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- third, etc timer = false, -- view changing timer will be here current = 0 -- current view will be stored here } -- then views.timer = setTimer(function() local new = views.current == #views and 1 or views.current + 1 -- switch to view 1 if the last view is active or switch to next view setCameraMatrix(views[new][1], views[new][2], views[new][3], views[new][4], views[new][5], views[new][6]) views.current = new -- set new view as current end, 5000, 0) -- when you'll need to stop killTimer(views.timer) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "radar", false ) showPlayerHudComponent ( "area_name", false ) showChat ( false ) if(guiGetVisible(GUI_loginWindow)==false) then guiSetVisible ( GUI_loginWindow, true ) showCursor ( true ) end end addEventHandler("onClientResourceStart", getResourceRootElement(), promptLogin) function makeMessage(message, title) if(message~=nil) then guiSetText(GUI_messageText,message) if(title~=nil) then guiSetText(GUI_messageWindow,title) end guiSetVisible(GUI_messageWindow,true) guiBringToFront(GUI_messageWindow) end end addEvent("makeMessage", true) addEventHandler("makeMessage", getRootElement(), makeMessage) function loginSuccess(characterMade) guiSetVisible(GUI_loginWindow, false) showCursor(false) if (characterMade=="true") then triggerServerEvent("spawnMe",getLocalPlayer(),getLocalPlayer()) guiSetInputEnabled (false) else selectorenable() end end addEvent("loginSuccessful", true) addEventHandler("loginSuccessful", getRootElement(), loginSuccess) function registerSuccess() guiSetVisible(GUI_registerWindow, false) guiSetInputEnabled(false) showCursor(false) selectorenable() end addEvent("registerSuccessful", true) addEventHandler("registerSuccessful", getRootElement(), registerSuccess) function onLoginButtonPress() local username = guiGetText(GUI_loginUsernameBox) local password = guiGetText(GUI_loginPasswordBox) triggerServerEvent("tryLogin",getLocalPlayer(),username,password) end function onForgotPasswordPress() makeMessage("You forgot your password? N00B!") end function onLoginShowRegister() guiSetVisible(GUI_loginWindow,false) guiSetVisible(GUI_registerWindow,true) guiSetInputEnabled (true) end function onMessageClosePress() guiSetVisible(GUI_messageWindow,false) guiSetText(GUI_messageWindow,"Utopia RPG") guiSetText(GUI_messageText,"An unknown error occured.") end function onRegisterButtonPress() local username = guiGetText(GUI_registerUsernameBox) local password = guiGetText(GUI_registerPasswordBox) local confPass = guiGetText(GUI_registerPassConfBox) local email = guiGetText(GUI_registerEmailBox) local terms = guiCheckBoxGetSelected(GUI_registerTermsCons) if(username~="") then if(password~="") then if(password==confPass) then if(terms==true) then triggerServerEvent("tryRegister",getLocalPlayer(),username,password,email) else makeMessage("You must agree to \n the Terms and Conditions","Registration Error") end else makeMessage("Your passwords don't match","Registration Error") end else makeMessage("Enter a password","Registration Error") end else makeMessage("Enter a username","Registration Error") end end function onRegisterViewTerms() makeMessage("no!","Registration Error") end function onRegisterBackToLogin() guiSetVisible(GUI_registerWindow,false) guiSetVisible(GUI_loginWindow,true) guiSetInputEnabled ( false ) end function selectorenable() triggerServerEvent("spawnForSkinSelect",getLocalPlayer()) guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getLocalPlayer()) showCursor(true) end addEvent("chooseSkin") addEventHandler("chooseSkin", getRootElement(), selectorenable) function clientSkinSelect(button) guiSetVisible(wdwselector, false) showCursor(false) guiSetInputEnabled ( false ) triggerServerEvent("SkinSelected", getLocalPlayer()) end function clientSkinRight(button) triggerServerEvent("SkinRight", getLocalPlayer()) end function clientSkinLeft(button) triggerServerEvent("SkinLeft", getLocalPlayer()) end GUI_loginWindow = guiCreateWindow(0.325,0.35,0.35,0.3,"Login to Utopia RPG",true) guiWindowSetMovable(GUI_loginWindow,false) GUI_loginUsernameBox = guiCreateEdit(0.2893,0.1944,0.6357,0.1111,"",true,GUI_loginWindow) GUI_loginPasswordBox = guiCreateEdit(0.2893,0.3833,0.6357,0.1111,"",true,GUI_loginWindow) GUI_loginRememberMe = guiCreateCheckBox(0.5643,0.5556,0.3607,0.1056,"Remember Me",false,true,GUI_loginWindow) GUI_loginForgotPassword = guiCreateButton(0.7286,0.7167,0.2964,0,"Click here",true,GUI_loginWindow) GUI_loginLabelUsername = guiCreateLabel(0.0536,0.1944,0.2,0.0833,"Username:",true,GUI_loginWindow) GUI_loginLabelPassword = guiCreateLabel(0.0536,0.3833,0.2,0.0833,"Password:",true,GUI_loginWindow) GUI_loginButton = guiCreateButton(0.7143,0.7722,0.2107,0.1222,"Login",true,GUI_loginWindow) GUI_loginShowRegister = guiCreateButton(0.45,0.7722,0.2143,0.1222,"Register",true,GUI_loginWindow) GUI_loginForgotPassword = guiCreateButton(0.0536,0.7722,0.3607,0.1222,"Forgot Password",true,GUI_loginWindow) guiEditSetMasked(GUI_loginPasswordBox, true) addEventHandler("onClientGUIClick", GUI_loginForgotPassword, onForgotPasswordPress, false) addEventHandler("onClientGUIClick", GUI_loginButton, onLoginButtonPress, false) addEventHandler("onClientGUIClick", GUI_loginShowRegister, onLoginShowRegister, false) guiSetVisible ( GUI_loginWindow, false ) GUI_registerWindow = guiCreateWindow(0.3,0.3,0.4,0.4,"Create an account on Utopia RPG",true) guiWindowSetMovable(GUI_registerWindow,false) GUI_registerUsernameBox = guiCreateEdit(0.3656,0.2083,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerPasswordBox = guiCreateEdit(0.3656,0.3333,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerPassConfBox = guiCreateEdit(0.3656,0.4583,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerEmailBox = guiCreateEdit(0.3656,0.5833,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerTermsCons = guiCreateCheckBox(0.3656,0.7125,0.6062,0.0792,"I agree to terms and conditions",false,true,GUI_registerWindow) GUI_registerButton = guiCreateButton(0.6375,0.8333,0.2594,0.1083,"Register",true,GUI_registerWindow) GUI_registerViewTerms = guiCreateButton(0.0531,0.8333,0.5281,0.1083,"View Terms and Conditions",true,GUI_registerWindow) GUI_registerBackToLogin = guiCreateButton(0.625,0.1,0.2719,0.0708,"Back to Login",true,GUI_registerWindow) GUI_registerMessage = guiCreateLabel(0.0469,0.0875,0.5094,0.0792,"Enter your details to register:",true,GUI_registerWindow) GUI_registerLabelUsername = guiCreateLabel(0.0469,0.2083,0.1906,0.0533,"Username:",true,GUI_registerWindow) GUI_registerLabelPassword = guiCreateLabel(0.0469,0.3333,0.175,0.0567,"Password:",true,GUI_registerWindow ) GUI_registerLabelConfPass = guiCreateLabel(0.05,0.4583,0.2844,0.06,"Verify Password:",true,GUI_registerWindow) GUI_registerLabelEmail = guiCreateLabel(0.0531,0.5833,0.1094,0.0567,"Email:",true,GUI_registerWindow) guiEditSetMasked(GUI_registerPasswordBox, true) guiEditSetMasked(GUI_registerPassConfBox, true) addEventHandler("onClientGUIClick", GUI_registerBackToLogin, onRegisterBackToLogin, false) addEventHandler("onClientGUIClick", GUI_registerButton, onRegisterButtonPress, false) addEventHandler("onClientGUIClick", GUI_registerViewTerms, onRegisterViewTerms, false) guiSetVisible ( GUI_registerWindow, false ) GUI_messageWindow = guiCreateWindow(0.35,0.4,0.3,0.2,"Utopia RPG",true) GUI_messageText = guiCreateLabel(0.0292,0.3167,0.9375,0.3,"An unknown error occured.",true,GUI_messageWindow) GUI_messageClose = guiCreateButton(0.3292,0.6417,0.3583,0.2333,"Close",true,GUI_messageWindow) addEventHandler ( "onClientGUIClick", GUI_messageClose, onMessageClosePress, false) guiLabelSetColor(GUI_messageText,255,255,255) guiLabelSetVerticalAlign(GUI_messageText,"center") guiLabelSetHorizontalAlign(GUI_messageText,"center",false) guiSetVisible ( GUI_messageWindow, false ) GUI_decisionWindow = guiCreateWindow(0.35,0.4,0.3,0.2,"Utopia RPG",true) GUI_decisionMessage = guiCreateLabel(0.0292,0.3167,0.9375,0.175,"An unknown error occured.",true,GUI_decisionWindow) GUI_decisionNo = guiCreateButton(0.5583,0.6417,0.3583,0.2333,"No",true,GUI_decisionWindow) GUI_decisionYes = guiCreateButton(0.0833,0.6417,0.3583,0.2333,"Yes",true,GUI_decisionWindow) guiLabelSetColor(GUI_decisionMessage,255,255,255) guiLabelSetVerticalAlign(GUI_decisionMessage,"center") guiLabelSetHorizontalAlign(GUI_decisionMessage,"center",false) guiSetVisible ( GUI_decisionWindow, false ) wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Select",true,wdwselector) addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) guiSetVisible(wdwselector, false) When i use [lua] it adds loads of kw2 callses to my script...! Link to comment
JR10 Posted June 11, 2011 Share Posted June 11, 2011 hmm sure? i thought its just with getPlayerTeam can you try it please? i can't look at all this code Link to comment
will briggs Posted June 11, 2011 Author Share Posted June 11, 2011 Using tag [lua]--[[uTOPIA SERVERS SCRIPT Made by: (UF)Will and (UF)Weirdy Name: main (client side) Description: controls functions such as login, register, spawn, respawn and data saving Last Edit: 17/1/11 ]] function promptLogin() guiSetInputEnabled (true) views = { { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- first view { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- second view (change coordinats obviously) { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- third, etc timer = false, -- view changing timer will be here current = 0 -- current view will be stored here } -- then views.timer = setTimer(function() local new = views.current == #views and 1 or views.current + 1 -- switch to view 1 if the last view is active or switch to next view setCameraMatrix(views[new][1], views[new][2], views[new][3], views[new][4], views[new][5], views[new][6]) views.current = new -- set new view as current end, 5000, 0) -- when you'll need to stop killTimer(views.timer) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "radar", false ) showPlayerHudComponent ( "area_name", false ) showChat ( false ) if(guiGetVisible(GUI_loginWindow)==false) then guiSetVisible ( GUI_loginWindow, true ) showCursor ( true ) end end addEventHandler("onClientResourceStart", getResourceRootElement(), promptLogin) function makeMessage(message, title) if(message~=nil) then guiSetText(GUI_messageText,message) if(title~=nil) then guiSetText(GUI_messageWindow,title) end guiSetVisible(GUI_messageWindow,true) guiBringToFront(GUI_messageWindow) end end addEvent("makeMessage", true) addEventHandler("makeMessage", getRootElement(), makeMessage) function loginSuccess(characterMade) guiSetVisible(GUI_loginWindow, false) showCursor(false) if (characterMade=="true") then triggerServerEvent("spawnMe",getLocalPlayer(),getLocalPlayer()) guiSetInputEnabled (false) else selectorenable() end end addEvent("loginSuccessful", true) addEventHandler("loginSuccessful", getRootElement(), loginSuccess) function registerSuccess() guiSetVisible(GUI_registerWindow, false) guiSetInputEnabled(false) showCursor(false) selectorenable() end addEvent("registerSuccessful", true) addEventHandler("registerSuccessful", getRootElement(), registerSuccess) function onLoginButtonPress() local username = guiGetText(GUI_loginUsernameBox) local password = guiGetText(GUI_loginPasswordBox) triggerServerEvent("tryLogin",getLocalPlayer(),username,password) end function onForgotPasswordPress() makeMessage("You forgot your password? N00B!") end function onLoginShowRegister() guiSetVisible(GUI_loginWindow,false) guiSetVisible(GUI_registerWindow,true) guiSetInputEnabled (true) end function onMessageClosePress() guiSetVisible(GUI_messageWindow,false) guiSetText(GUI_messageWindow,"Utopia RPG") guiSetText(GUI_messageText,"An unknown error occured.") end function onRegisterButtonPress() local username = guiGetText(GUI_registerUsernameBox) local password = guiGetText(GUI_registerPasswordBox) local confPass = guiGetText(GUI_registerPassConfBox) local email = guiGetText(GUI_registerEmailBox) local terms = guiCheckBoxGetSelected(GUI_registerTermsCons) if(username~="") then if(password~="") then if(password==confPass) then if(terms==true) then triggerServerEvent("tryRegister",getLocalPlayer(),username,password,email) else makeMessage("You must agree to \n the Terms and Conditions","Registration Error") end else makeMessage("Your passwords don't match","Registration Error") end else makeMessage("Enter a password","Registration Error") end else makeMessage("Enter a username","Registration Error") end end function onRegisterViewTerms() makeMessage("no!","Registration Error") end function onRegisterBackToLogin() guiSetVisible(GUI_registerWindow,false) guiSetVisible(GUI_loginWindow,true) guiSetInputEnabled ( false ) end function selectorenable() triggerServerEvent("spawnForSkinSelect",getLocalPlayer()) guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getLocalPlayer()) showCursor(true) end addEvent("chooseSkin") addEventHandler("chooseSkin", getRootElement(), selectorenable) function clientSkinSelect(button) guiSetVisible(wdwselector, false) showCursor(false) guiSetInputEnabled ( false ) triggerServerEvent("SkinSelected", getLocalPlayer()) end function clientSkinRight(button) triggerServerEvent("SkinRight", getLocalPlayer()) end function clientSkinLeft(button) triggerServerEvent("SkinLeft", getLocalPlayer()) end GUI_loginWindow = guiCreateWindow(0.325,0.35,0.35,0.3,"Login to Utopia RPG",true) guiWindowSetMovable(GUI_loginWindow,false) GUI_loginUsernameBox = guiCreateEdit(0.2893,0.1944,0.6357,0.1111,"",true,GUI_loginWindow) GUI_loginPasswordBox = guiCreateEdit(0.2893,0.3833,0.6357,0.1111,"",true,GUI_loginWindow) GUI_loginRememberMe = guiCreateCheckBox(0.5643,0.5556,0.3607,0.1056,"Remember Me",false,true,GUI_loginWindow) GUI_loginForgotPassword = guiCreateButton(0.7286,0.7167,0.2964,0,"Click here",true,GUI_loginWindow) GUI_loginLabelUsername = guiCreateLabel(0.0536,0.1944,0.2,0.0833,"Username:",true,GUI_loginWindow) GUI_loginLabelPassword = guiCreateLabel(0.0536,0.3833,0.2,0.0833,"Password:",true,GUI_loginWindow) GUI_loginButton = guiCreateButton(0.7143,0.7722,0.2107,0.1222,"Login",true,GUI_loginWindow) GUI_loginShowRegister = guiCreateButton(0.45,0.7722,0.2143,0.1222,"Register",true,GUI_loginWindow) GUI_loginForgotPassword = guiCreateButton(0.0536,0.7722,0.3607,0.1222,"Forgot Password",true,GUI_loginWindow) guiEditSetMasked(GUI_loginPasswordBox, true) addEventHandler("onClientGUIClick", GUI_loginForgotPassword, onForgotPasswordPress, false) addEventHandler("onClientGUIClick", GUI_loginButton, onLoginButtonPress, false) addEventHandler("onClientGUIClick", GUI_loginShowRegister, onLoginShowRegister, false) guiSetVisible ( GUI_loginWindow, false ) GUI_registerWindow = guiCreateWindow(0.3,0.3,0.4,0.4,"Create an account on Utopia RPG",true) guiWindowSetMovable(GUI_registerWindow,false) GUI_registerUsernameBox = guiCreateEdit(0.3656,0.2083,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerPasswordBox = guiCreateEdit(0.3656,0.3333,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerPassConfBox = guiCreateEdit(0.3656,0.4583,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerEmailBox = guiCreateEdit(0.3656,0.5833,0.5313,0.0875,"",true,GUI_registerWindow) GUI_registerTermsCons = guiCreateCheckBox(0.3656,0.7125,0.6062,0.0792,"I agree to terms and conditions",false,true,GUI_registerWindow) GUI_registerButton = guiCreateButton(0.6375,0.8333,0.2594,0.1083,"Register",true,GUI_registerWindow) GUI_registerViewTerms = guiCreateButton(0.0531,0.8333,0.5281,0.1083,"View Terms and Conditions",true,GUI_registerWindow) GUI_registerBackToLogin = guiCreateButton(0.625,0.1,0.2719,0.0708,"Back to Login",true,GUI_registerWindow) GUI_registerMessage = guiCreateLabel(0.0469,0.0875,0.5094,0.0792,"Enter your details to register:",true,GUI_registerWindow) GUI_registerLabelUsername = guiCreateLabel(0.0469,0.2083,0.1906,0.0533,"Username:",true,GUI_registerWindow) GUI_registerLabelPassword = guiCreateLabel(0.0469,0.3333,0.175,0.0567,"Password:",true,GUI_registerWindow ) GUI_registerLabelConfPass = guiCreateLabel(0.05,0.4583,0.2844,0.06,"Verify Password:",true,GUI_registerWindow) GUI_registerLabelEmail = guiCreateLabel(0.0531,0.5833,0.1094,0.0567,"Email:",true,GUI_registerWindow) guiEditSetMasked(GUI_registerPasswordBox, true) guiEditSetMasked(GUI_registerPassConfBox, true) addEventHandler("onClientGUIClick", GUI_registerBackToLogin, onRegisterBackToLogin, false) addEventHandler("onClientGUIClick", GUI_registerButton, onRegisterButtonPress, false) addEventHandler("onClientGUIClick", GUI_registerViewTerms, onRegisterViewTerms, false) guiSetVisible ( GUI_registerWindow, false ) GUI_messageWindow = guiCreateWindow(0.35,0.4,0.3,0.2,"Utopia RPG",true) GUI_messageText = guiCreateLabel(0.0292,0.3167,0.9375,0.3,"An unknown error occured.",true,GUI_messageWindow) GUI_messageClose = guiCreateButton(0.3292,0.6417,0.3583,0.2333,"Close",true,GUI_messageWindow) addEventHandler ( "onClientGUIClick", GUI_messageClose, onMessageClosePress, false) guiLabelSetColor(GUI_messageText,255,255,255) guiLabelSetVerticalAlign(GUI_messageText,"center") guiLabelSetHorizontalAlign(GUI_messageText,"center",false) guiSetVisible ( GUI_messageWindow, false ) GUI_decisionWindow = guiCreateWindow(0.35,0.4,0.3,0.2,"Utopia RPG",true) GUI_decisionMessage = guiCreateLabel(0.0292,0.3167,0.9375,0.175,"An unknown error occured.",true,GUI_decisionWindow) GUI_decisionNo = guiCreateButton(0.5583,0.6417,0.3583,0.2333,"No",true,GUI_decisionWindow) GUI_decisionYes = guiCreateButton(0.0833,0.6417,0.3583,0.2333,"Yes",true,GUI_decisionWindow) guiLabelSetColor(GUI_decisionMessage,255,255,255) guiLabelSetVerticalAlign(GUI_decisionMessage,"center") guiLabelSetHorizontalAlign(GUI_decisionMessage,"center",false) guiSetVisible ( GUI_decisionWindow, false ) wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Select",true,wdwselector) addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) guiSetVisible(wdwselector, false) BTW i can code just not very good if i made all this with my friend... Link to comment
UAEpro Posted June 11, 2011 Share Posted June 11, 2011 replace the 1st function by this function promptLogin() guiSetInputEnabled (true) views = { { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- first view { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- second view (change coordinats obviously) { 1515, -1636, 22.153465271, 1550, -1675, 9.881813049316 }, -- third, etc timer = false, -- view changing timer will be here current = 0 -- current view will be stored here } -- then views.timer = setTimer(function() local new = views.current == #views and 1 or views.current + 1 -- switch to view 1 if the last view is active or switch to next view setCameraMatrix(views[new][1], views[new][2], views[new][3], views[new][4], views[new][5], views[new][6]) views.current = new -- set new view as current end, 5000, 0) -- when you'll need to stop killTimer(views.timer) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "radar", false ) showPlayerHudComponent ( "area_name", false ) showChat ( false ) guiSetVisible ( GUI_loginWindow, true ) showCursor ( true ) end addEventHandler("onClientResourceStart", getResourceRootElement(), promptLogin) Link to comment
will briggs Posted June 11, 2011 Author Share Posted June 11, 2011 I replaced it like you said and its still a black background... Link to comment
will briggs Posted June 11, 2011 Author Share Posted June 11, 2011 hmm sure? i thought its just with getPlayerTeam can you try it please? i can't look at all this code Done, can you have a go now? Im sure its just in the first half... Link to comment
will briggs Posted June 11, 2011 Author Share Posted June 11, 2011 WHat do you mean by 'fadecamera maybe?) Link to comment
h1ama3d Posted June 11, 2011 Share Posted June 11, 2011 fadeCamera(true) and delete this line killTimer(views.timer) i tested it ,, but it's stop in 1 view Link to comment
will briggs Posted June 11, 2011 Author Share Posted June 11, 2011 Sorry but that aint working... Link to comment
JR10 Posted June 11, 2011 Share Posted June 11, 2011 ok iam sorry iam a bit tired but can you tell me what you want to do? Link to comment
will briggs Posted June 12, 2011 Author Share Posted June 12, 2011 lol, i just need the script working in its own separate file... 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