Jump to content

Display Labels


DexoTronic

Recommended Posts

Hi,

i have this clientside script:

intro1 = guiCreateLabel(446,927,834,79,"NextGeneration Team presents...",false)
guiSetAlpha(intro1,1)
guiLabelSetColor(intro1,255,120,0)
guiLabelSetVerticalAlign(intro1,"top")
guiLabelSetHorizontalAlign(intro1,"left",false)
guiSetFont(intro1,"sa-gothic")
guiSetVisible ( intro1 , false )
 
 
intro2 = guiCreateLabel(446,927,834,79,"MultiTheft Roleplay",false)
guiSetAlpha(intro2,1)
guiLabelSetColor(intro2,255,120,0)
guiLabelSetVerticalAlign(intro2,"top")
guiLabelSetHorizontalAlign(intro2,"left",false)
guiSetFont(intro2,"sa-gothic")
guiSetVisible ( intro2 , false )
 
 
function intro1_func ()
 
setTimer ( guiSetVisible , 4000, 1, intro1 , false)
guiSetVisible ( intro1 , true )
 
end
addEvent ( "intro1", true )
addEventHandler ( "intro1", getRootElement(), intro_func )
 
 
 
function intro2_func ()
 
 
setTimer ( guiSetVisible , 4000, 1, intro2 , false)
guiSetVisible ( intro2 , true )
 
end
addEvent ( "intro2", true )
addEventHandler ( "intro2", getRootElement(), intro_func )

and this server script:

fadeCamera ( source, false, 10.0, 0, 0, 0 )
	setTimer ( outputChatBox, 1000, 1, "Pilot: Mayday, over", source)
	setTimer ( outputChatBox, 2000, 1, "Pilot: Hier ist Flug MOSQ536, over", source)
	setTimer ( outputChatBox, 3000, 1, "Pilot: wir stürzen ab", source)
	setTimer ( outputChatBox, 4000, 1, "Pilot: ahhhrrghhh", source)
	setTimer ( triggerClientEvent , 4000, 1, source, "intro1", getRootElement())
	setCameraMatrix(source, -204.76, 1492.3, 72.4, -225.31, 1395.92, 162.74)
	setTimer ( fadeCamera, 10000, 1, source, true, 0.5 )
	setTimer ( triggerClientEvent , 10000, 1, source, "intro2", getRootElement())
	setTimer ( setCameraMatrix, 10000, 1, source, -233.12, 1331.17, 37.7, -234.78, 1313.88, 31.74 )
	setTimer ( giveWeapon , 15000, 1, source, 46, 1)
	setTimer ( spawnPlayer, 15000, 1, source, -231.72, 1302.4, 29.34 )
	PlayerLogins[source] = PlayerLogins[source] + 1
	triggerClientEvent (  source, "planecrash", getRootElement())
	setTimer ( triggerClientEvent , 12000, 1, source, "phonesound", getRootElement())
     		setTimer ( setCameraTarget, 15000, 1, source, source)
	setTimer ( setPedAnimation, 15000, 1,  source, "ped", "phone_in", -1, false)
	setTimer ( setPedAnimation, 17000, 1,  source, "ped", "phone_talk", -1, false)
	setTimer ( outputChatBox, 17000, 1, "Du(Handy): Er ist Tod..", source)
	setTimer ( outputChatBox, 19000, 1, "Michael Hunter(Handy): Gut, das Geld ist auf deinem Bankkonto.", source)
	setTimer ( setPedAnimation, 20000, 1,  source, "ped", "phone_out", 3000, false)
	setTimer ( triggerClientEvent , 20000, 1, source, "maintitle", getRootElement())

like you can see i try to call the clientfunktion in line 6&9.

but nothing happens :(

it shoud display the two labels (there is no window, only the labels)

i hope you can help me :)

**EDIT:

im rly sorry, there is a mistake in the client function: it has to be intro1/2_func, i forgot that.. solved :)

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