Jump to content

Freeroam f1 panel


Storm-Hanma

Recommended Posts

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

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?

 

  • Like 1
Link to comment

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

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

 

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...