Jump to content

[HELP] Script


1LoL1

Recommended Posts

Posted

Where do I put this when I want to create the clock text? or what I put into methyl .. please help

versionDisplay = textCreateDisplay ()

local versionText = textCreateTextItem ( "[!] TEST [!]", 0.950, 0.02, "medium", 255, 255, 255, 255, 1, "right" )

textDisplayAddText ( versionDisplay, versionText )

Posted

dxDrawText 

To create the text.

getRealTime 

To get the real time.

methyl? Do you mean meta? If so;

<meta> 
     <script src="thefile.lua" type="thetype"/> 
</meta>  

thefile = the file you saved your script as, for example I saved it as something.lua and it's client sided, I'll have this in the meta:

And now Aurora is back again, pm for more info.

Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA.

Ex. Developer at Community of Social Gamers - CSG

Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP

9o6E8.png Ab-47

Posted

These are serverside functions so you cannot use dxDraw. Once you have created the display you need to add people to the display in order for them to see the text.

I aint got no time to think of a witty signature

Posted

text is server side, and dx is client side. Take your pick, which ever one you want.

  
local time = getRealTime() 
local hours = time.hour 
local minutes = time.minute 
dxDrawText(..hours..":"..minutes.., args) 

Posted
text is server side, and dx is client side. Take your pick, which ever one you want.

  
local time = getRealTime() 
local hours = time.hour 
local minutes = time.minute 
dxDrawText(..hours..":"..minutes.., args) 

I copied it from Gamemode TDMA there it was written up and the text I wanted to give the DayZ server ..

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