Jump to content

little help


Recommended Posts

Posted (edited)

Hey guys 

i was trying to make a script that play music and display picture when a console logs in (for everyone)

i tried to use IsObjectInAclGroup , DXDrawImage and playsound

but somehow i couldnt link them together , can anyone help ? 

Edited by Zie[E]D_)"U.R
Posted

You'll have to use the onPlayerLogin event, check if the player is in the console ACL Group using the isObjectInAclGroup (which needs the getAccountName and aclGetGroup functions), and then just using an addEventHandler to draw the image using dxDrawImage, and then use the playSound function.

And you'll have to use a custom event using addEvent because those functions are server-sided only.

6C73yFv.png

Did I help you?

Mmpe7Jm.gif


NeXuS™#0001

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