Jump to content

F1


CapY

Recommended Posts

Posted

Is it possible when player joins to the server and when he press F1 to don't see these buttons: weapons , speed , grav and time .

Can it be only available for admins ?

Posted

You can maybe disable them, and then trigger a event to the server to see if he's admin and if so, enable the buttons.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You can use

guiSetEnabled 

to disable a GUI element.

When a player login ("onPlayerLogin") check if he's admin and triggerClientEvent according to it, if he's admin enable the buttons, if he's not disable them.

Or maybe when the player press F1.

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

  • MTA Team
Posted
-- client  
guiSetEnabled(getControl("grav"), false)  

look for more id's in the table "wndMain"

or try:

wndMain =  {} at the end of ur script

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...