Storm-Hanma Posted October 25, 2016 Share Posted October 25, 2016 Hi all im a new beginer scripter im trying to make new scripts for my mta freeroam ! I scipted login panel for my freeroam with moving cam But now i need a f1 panel that ability of Disable warp,disable knife and disable dethmatch option for my f1 panel I dont have how to get this and how to do it from were to start I need help i tested edit in gui but i didnt get anh idea for it Help me Link to comment
iPrestege Posted October 25, 2016 Share Posted October 25, 2016 You have to edit the freeroam so edit warp function and add checkbox and check if the player the other player wan't to warp to is checked that box so not allowed to warp return for a chatbox message like you can't warp to this player! And about disable knife you mean the player can't die if someone knifed him? Also i don't understand what you mean by disable dethmatch? 1 Link to comment
Storm-Hanma Posted October 25, 2016 Author Share Posted October 25, 2016 Brush i mean i want to make a option like fall of bike and jetpack option in f1 panel Same like that i need to make a Warp-when they choose no warp option no other player cant warp him. No knife-means by this option knifing kill will be disabled No deathmatch - means u cant kill others and cant be kill!! U got it now? Link to comment
iPrestege Posted October 25, 2016 Share Posted October 25, 2016 For add a warp check box use this : {'chk', id='Disable Warp', onclick=toggleDisableWarp}, -- And on click this use data to set toggle warp : setElementData getElementData -- and set the data for the localPlayer and edit the server part open -- fr_server.lua search for this function 'warpMe' -- and add a check if getElementData so you get the data if it was true then return to something like -- outputChatBox message that you can't warp to this player And about no knifing i think you need if i was right i'm not sure what are you exactly trying to do but this what you want : onClientPlayerStealthKill cancelEvent Also about disable deathmatch : -- To disable deathmatch do as what i said in warp create a new checkbox -- Use data setElementData getElementData toggleControl -- if you want to disable fire and aim ..etc use this also addEventHandler ( 'onClinetPlayerDamage' ) cancelEvent 1 Link to comment
Storm-Hanma Posted October 25, 2016 Author Share Posted October 25, 2016 Bruh can u add me in fb khadeer mta i dont have idea about it once message me in fb Link to comment
iPrestege Posted October 25, 2016 Share Posted October 25, 2016 I'm only in the forums. Any way start learning scripting because no one is going to do it for you unless you ask someone to do it for $. https://wiki.multitheftauto.com/wiki/Scripting_Introduction https://wiki.multitheftauto.com/wiki/Introduction_to_Scripting_the_GUI https://forum.multitheftauto.com/forum/123-tutorials/ https://wiki.multitheftauto.com/wiki/Main_Page 1 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