iPrestege Posted January 12, 2013 Share Posted January 12, 2013 (edited) Read My Last Post Down Edited January 12, 2013 by Guest Link to comment
TAPL Posted January 12, 2013 Share Posted January 12, 2013 What? i don't understand.. You mean this? bindKey unbindKey Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 What?i don't understand.. You mean this? bindKey unbindKey I mean, when I entered the Battleground weapons shop only works in the Battleground!If the player came out of the Battleground could not use shop weapons ! Link to comment
TAPL Posted January 12, 2013 Share Posted January 12, 2013 Create a col shape and use events onClientColShapeHit and onClientColShapeLeave with function bindKey and unbindKey. Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 (edited) == Edited January 12, 2013 by Guest Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 showCursor not needed. Thank You TAPL .. Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 (edited) i have a problem here when i click the button ! all the function work ! but the showCursor(false) not working realy i don,t Know Why , Some Help here : i want to hide the cursor! Edited January 12, 2013 by Guest Link to comment
MR.S3D Posted January 12, 2013 Share Posted January 12, 2013 Does not have a problem Make sure other Function or use this to above visibility replace this showCursor(false) then put this showCursor(not isCursorShowing()) Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 (edited) Here My Script Not Working! DeathWnd = guiCreateWindow(0, 0, 0, 0, "DeathMatch Game", false) function close() guiSetVisible(DeathWnd,false) showCursor(false) showChat(true) fadeCamera(true) end addEventHandler("onClientGUIClick",root, function () if ( source == Grove ) then close() setElementData(localPlayer,"x",-1819.62439) setElementData(localPlayer,"y",-1610.32141) setElementData(localPlayer,"z",23.01563) setElementData(localPlayer,"skin",107) setElementData(localPlayer,"team","Grove") triggerServerEvent("spawnPlayer",localPlayer) elseif ( source == Police ) then close() setElementData(localPlayer,"x",-1858.80212) setElementData(localPlayer,"y",-1612.50281) setElementData(localPlayer,"z",21.76415) setElementData(localPlayer,"skin",285) setElementData(localPlayer,"team","Police") triggerServerEvent("spawnPlayer",localPlayer) elseif ( source == NoTeam ) then close() setElementData(localPlayer,"x",-1911.83398) setElementData(localPlayer,"y",-1671.33533) setElementData(localPlayer,"z",23.01563) setElementData(localPlayer,"skin",29) setElementData(localPlayer,"team","No Team") triggerServerEvent("spawnPlayer",localPlayer) end end ) Edited January 12, 2013 by Guest Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 There is no errors But i dont know why the wtf showCursor all the other,s function working! why the showCursor not working wtf with showCursor still i need help . Link to comment
KenXeiko Posted January 12, 2013 Share Posted January 12, 2013 Are you sure that there's no other part of your resource which show the cursor after that 'close' function? Or perhaps the Console window is currently visible? Any warnings/errors? Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 Are you sure that there's no other part of your resource which show the cursor after that 'close' function?Or perhaps the Console window is currently visible? Any warnings/errors? guiSetVisible(DeathWnd, false) And Am Sure No other part with showcursor Link to comment
3NAD Posted January 12, 2013 Share Posted January 12, 2013 Check if 'open Window' Code doesn't have any problems with Cursor. Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 Need Some Help @ 3NAD Am Not Using Code For Open The Window it,s Same,s GameMode . Link to comment
MR.S3D Posted January 12, 2013 Share Posted January 12, 2013 Send me full code in a private message Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 I have sent you to see your inbox!I hope to not put the script here and send it to me pm! Link to comment
MR.S3D Posted January 12, 2013 Share Posted January 12, 2013 I have sent you to see your inbox!I hope to not put the script here and send it to me pm! Is there a problem? Link to comment
iPrestege Posted January 12, 2013 Author Share Posted January 12, 2013 thank you the problem fixed . 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