NotAvailable Posted October 13, 2010 Share Posted October 13, 2010 (edited) Hi, EDIT: FIXED! I got a Tutorial script Ex. When you register the tutorial will start every 10 seconds it changes the camera from position. But it doesnt work. Here is the script (tuto_c): ---Tutorial function tutoWideScreen() dxDrawRectangle(0.0,652.0,1523.0,215.0,tocolor(0,0,0,255),false) dxDrawRectangle(0.0,0.0,1523.0,215.0,tocolor(0,0,0,255),false) showPlayerHudComponent ("radar", false ) end function tutu() setCameraMatrix(2023.45703125, 1555.7138671875, 23.787837982178,-1800,0,-2000) addEventHandler("onClientRender",root,tuto1) addEventHandler("onClientRender",root,tutoWideScreen) setTimer(remove1,12000,1) lol = setTimer(tutorial2,12000,1) end addEvent("startTutu", true) addEventHandler ("startTutu", getRootElement (), tutu) function tutorial2() setCameraMatrix(2115.1982421875, 2260.0625, 14.8203125,-14000,0,-8000) addEventHandler("onClientRender",root,tuto2) setTimer(remove2,12000,1) lol2 = setTimer(tutorial3,12000,1) end function tutorial3() setCameraMatrix(34,-9,50.0,-5,-10,20) addEventHandler("onClientRender",root,tuto3) setTimer(remove3,12000,1) lol3 = setTimer(tutorial4,12000,1) end function tutorial4() setCameraMatrix(-1990.96484375, 285.1650390625, 38.889850616455,10000,3500,-2000) addEventHandler("onClientRender",root,tuto4) setTimer(remove4,12000,1) lol4 = setTimer(tutorial5,12000,1) end function tutorial5() setCameraMatrix(1976.69921875, 2049.5712890625, 14.8203125,10000,6500,-3000) addEventHandler("onClientRender",root,tuto5) setTimer(remove5,12000,1) lol5 = setTimer(tutorial6,12000,1) end function tutorial6() setCameraMatrix(1353,-1274,22.0,1364,-1278,16.54) addEventHandler("onClientRender",root,tuto6) setTimer(remove6,12000,1) lol6 = setTimer(tutorial7,12000,1) end function tutorial7() setCameraMatrix(907.3076171875, -1778.11328125, 13.540578842163,10000,-8000,0) addEventHandler("onClientRender",root,tuto7) setTimer(remove7,12000,1) lol7 = setTimer(tutorial20,12000,1) end function tutorial20() addEventHandler("onClientRender",root,tuto20) setTimer(remove20,5000,1) end function tuto1() dxDrawText("Welcome at European Zombie Roleplay BETA, every new player will be spawned at this place!",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto2() dxDrawText("Here you can buy a new skin, you can always come back and change it!",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto3() dxDrawText("[HAY] This is a minigame if you reach the top you'll get much cash!",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto4() dxDrawText("[CAR SHOP] Here you can buy your own car, you can spawn your car with your playermenu by pressing L!",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto5() dxDrawText("[PIZZA] Here you can start the job 'Pizza Delivery' ",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto6() dxDrawText("[CHAO LUNGS AMMO-NOODLES] Here you can buy Weapons / Ammo",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto7() dxDrawText("[HOME] You can buy in European Zombie Roleplay (EZR) your own houses, Soon u can save your cars there!",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function tuto20() dxDrawText("Thanks for reading this mother fucking tutorial, now fuck off and play.",21.0,500.0,250.0,291.0,tocolor(255,255,255,255),1.0,"default","left","top",false,true,true) end function remove1() removeEventHandler("onClientRender",root,tuto1) end function remove2() removeEventHandler("onClientRender",root,tuto2) end function remove3() removeEventHandler("onClientRender",root,tuto3) end function remove4() removeEventHandler("onClientRender",root,tuto4) end function remove5() removeEventHandler("onClientRender",root,tuto5) end function remove6() removeEventHandler("onClientRender",root,tuto6) end function remove7() removeEventHandler("onClientRender",root,tuto7) end function remove20() removeEventHandler("onClientRender",root,tuto20) removeEventHandler("onClientRender",root,tutoWideScreen) showPlayerHudComponent ("radar", true ) end addEventHandler("onClientPlayerRegister", getRootElement(), startTutu) Can someone help me? Thanks! Regards, Jesseunit Edited October 13, 2010 by Guest Link to comment
dzek (varez) Posted October 13, 2010 Share Posted October 13, 2010 you are not removing old event handlers when adding new ones. you should tell what exactly is not working, what is happening, if there is any error, etc. I think guy with 230 posts should know that.. Link to comment
NotAvailable Posted October 13, 2010 Author Share Posted October 13, 2010 you are not removing old event handlers when adding new ones.you should tell what exactly is not working, what is happening, if there is any error, etc. I think guy with 230 posts should know that.. Ok. i start the resource, No errors anything. I join the server, Login... But nothing happens. I want like when a player registers, He sees the tutorial. Link to comment
dzek (varez) Posted October 13, 2010 Share Posted October 13, 2010 no errors? are you sure? addEventHandler("onClientPlayerRegister", getRootElement(), startTutu) there is no function called startTutu Link to comment
Castillo Posted October 13, 2010 Share Posted October 13, 2010 also that event handler dosn't exist, i told you to wait for me to fix it jester (its my code thats why) you need to add a triggerClientEvent at your logingui resource to make it working, also add the tutorial to the client side of your logingui. 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