Jump to content

Help in Logo!


E-mail

Recommended Posts

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Client :

 GUIEditor_Label = {} 
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(false,10.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
    triggerServerEvent(source"blurFade",source) 
end 
addEvent("fadeNew",true) 
addEventHandler("fadeNew",getRootElement(),lol) 
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),lol) 
  
GUIEditor_Button = {} 
GUIEditor_Window = {} 
GUIEditor_Memo = {} 
  
function loled() 
GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) 
guiSetAlpha(GUIEditor_Window[1],0.80000001192093) 
GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490,"                                 Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use  handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) 
setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true)  
triggerServerEvent(source,"rulesOnJoin", source) 
showCursor(true) 
end 
addEvent("blabla",true) 
addEventHandler("blabla",getRootElement(), loled) 
  
  
function showRulePanel () 
    local playerName = getPlayerName ( getLocalPlayer() ) 
    if guiGetVisible (GUIEditor_Window[1]) then 
    guiSetVisible (GUIEditor_Window[1], false) 
    showCursor (false) 
    removeEventHandler("onClientGUIClick",GUIEditor_Button[1],showRulePanel) 
    else 
    guiSetVisible (GUIEditor_Window[1], true) 
    showCursor (true) 
    addEventHandler("onClientGUIClick",GUIEditor_Button[1],showRulePanel) 
    end 
end 

Server :

function fade() 
fadeCamera(true,10.0) 
triggerClientEvent(source , "fadeNew", source) 
end 
addEventHandler("onPlayerJoin",getRootElement(),fade) 
addEvent( "blurFade",true ) 
addEventHandler(source,"blurFade",source) 
  
function OnjoinRules() 
triggerClientEvent("blabla",getRootElement(), source) 
end 
addEvent("rulesOnJoin",true) 
addEventHandler("rulesOnJoin",getRootElement(),OnjoinRules) 

Link to comment

Can i seperate first and second part in 2 different folders ?

Edit:

I really dont get what is wrong here ...

Client:

GUIEditor_Button = {} 
GUIEditor_Window = {} 
GUIEditor_Memo = {} 
  
function loled() 
GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) 
guiSetAlpha(GUIEditor_Window[1],0.80000001192093) 
GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490,"                                 Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use  handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) 
setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true)  
triggerServerEvent(source,"rulesOnJoin",source) 
showCursor(true) 
end 
addEvent("blabla",true) 
addEventHandler("blabla",getRootElement(), loled) 
  
  
function showNamePanel () 
    local playerName = getPlayerName ( getLocalPlayer() ) 
    if guiGetVisible (GUIEditor_Window[1]) then 
    guiSetVisible (GUIEditor_Window[1], false) 
    showCursor (false) 
    else 
    guiSetVisible (GUIEditor_Window[1], true) 
    showCursor (true) 
    addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) 
    triggerServerEvent(source,"namePanelServer",source) 
    end 
end 
addEvent("namePanel",true) 
addEventHandler("namePanel",getRootElement(),showNamePanel) 
  

Server:

function OnjoinRules() 
triggerClientEvent(source,"blabla",source) 
end 
addEvent("rulesOnJoin",true) 
addEventHandler("rulesOnJoin",getRootElement(),OnjoinRules) 
addEventHandler("onPlayerJoin",getRootElement(),OnjoinRules) 
  
function serverRules() 
triggerClientEvent(source,"namePanel",source) 
end 
addEvent("namePanelServer",true) 
addEventHandler("namePanelServer",getRootElement(),serverRules) 

When i click accept , window doesnt want to dissapear. -.-

Link to comment
GUIEditor_Button = {} 
GUIEditor_Window = {} 
GUIEditor_Memo = {} 
  
function loled() 
GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) 
guiSetAlpha(GUIEditor_Window[1],0.80000001192093) 
GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490,"                                 Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use  handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) 
addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) 
setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true) 
triggerServerEvent(source,"rulesOnJoin",source) 
showCursor(true) 
end 
addEvent("blabla",true) 
addEventHandler("blabla",getRootElement(), loled) 
  
  
function showNamePanel () 
    local playerName = getPlayerName ( getLocalPlayer() ) 
    if guiGetVisible (GUIEditor_Window[1]) then 
    guiSetVisible (GUIEditor_Window[1], false) 
    showCursor (false) 
    else 
    guiSetVisible (GUIEditor_Window[1], true) 
    showCursor (true) 
    triggerServerEvent(source,"namePanelServer",source) 
    end 
end 
addEvent("namePanel",true) 
addEventHandler("namePanel",getRootElement(),showNamePanel) 

Link to comment

This is the whole script and something is not good inside .. it seems we are messed 2 scripts in one .

Client :

 GUIEditor_Label = {} 
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(false,10.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
    triggerServerEvent(source,"blurFade",source) 
end 
addEvent("fadeNew",true) 
addEventHandler("fadeNew",getRootElement(),lol) 
addEventHandler("onClientResourceStart",getRootElement(),lol) 
  
  
GUIEditor_Button = {} 
GUIEditor_Window = {} 
GUIEditor_Memo = {} 
  
function loled() 
GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) 
guiSetAlpha(GUIEditor_Window[1],0.80000001192093) 
GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490,"                                 Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use  handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) 
addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) 
setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true) 
triggerServerEvent(source,"rulesOnJoin",source) 
showCursor(true) 
end 
addEvent("blabla",true) 
addEventHandler("blabla",getRootElement(), loled) 
  
  
function showNamePanel () 
    local playerName = getPlayerName ( getLocalPlayer() ) 
    if guiGetVisible (GUIEditor_Window[1]) then 
    guiSetVisible (GUIEditor_Window[1], false) 
    showCursor (false) 
    else 
    guiSetVisible (GUIEditor_Window[1], true) 
    showCursor (true) 
    triggerServerEvent(source,"namePanelServer",source) 
    end 
end 
addEvent("namePanel",true) 
addEventHandler("namePanel",getRootElement(),showNamePanel) 

GUI Label is okay, but rules window is not displayed after label.

And server :

function fade() 
fadeCamera(true,10.0) 
triggerClientEvent(source , "fadeNew", source) 
end 
addEventHandler("onPlayerJoin",getRootElement(),fade) 
addEvent( "blurFade",true ) 
addEventHandler(source,"blurFade",source) 
  
function rulesS() 
triggerClientEvent(source,"namePanel",source) 
end 
addEvent("namePanelServer",true) 
addEventHandler("namePanelServer",getRootElement(),rulesS) 

Link to comment

Doesnt work.

Client:

 GUIEditor_Label = {} 
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(false,10.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
    triggerServerEvent(source,"blurFade",source) 
end 
addEvent("fadeNew",true) 
addEventHandler("fadeNew",getRootElement(),lol) 
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),lol) 
  
  
GUIEditor_Button = {} 
GUIEditor_Window = {} 
GUIEditor_Memo = {} 
  
function loled() 
GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) 
guiSetAlpha(GUIEditor_Window[1],0.80000001192093) 
GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490,"                                 Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use  handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) 
addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) 
setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true) 
triggerServerEvent(source,"rulesOnJoin",source) 
showCursor(true) 
end 
addEvent("blabla",true) 
addEventHandler("blabla",getRootElement(), loled) 
  
  
function showNamePanel () 
    local playerName = getPlayerName ( getLocalPlayer() ) 
    if guiGetVisible (GUIEditor_Window[1]) then 
    guiSetVisible (GUIEditor_Window[1], false) 
    showCursor (false) 
    else 
    guiSetVisible (GUIEditor_Window[1], true) 
    showCursor (true) 
    triggerServerEvent("namePanelServer",source) 
    end 
end 
addEvent("namePanel",true) 
addEventHandler("namePanel",getRootElement(),showNamePanel) 

Server:

function fade() 
fadeCamera(true,10.0) 
triggerClientEvent(source , "fadeNew", source) 
end 
addEventHandler("onPlayerJoin",getRootElement(),fade) 
addEvent( "blurFade",true ) 
addEventHandler("blurFade",getRootElement(),fade) 
  
function rulesS() 
triggerClientEvent(source,"namePanel",source) 
end 
addEvent("namePanelServer",true) 
addEventHandler("namePanelServer",getRootElement(),rulesS) 

No errors in debug .

Link to comment
GUIEditor_Label = {} 
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(false,10.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
    triggerServerEvent("blurFade",source) 
end 
addEvent("fadeNew",true) 
addEventHandler("fadeNew",getRootElement(),lol) 
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),lol) 
  
  
GUIEditor_Button = {} 
GUIEditor_Window = {} 
GUIEditor_Memo = {} 
  
function loled() 
GUIEditor_Window[1] = guiCreateWindow(0.2805,0.2139,0.4172,0.5713,"Rules ",true) 
guiSetAlpha(GUIEditor_Window[1],0.80000001192093) 
GUIEditor_Memo[1] = guiCreateMemo(16,38,501,490,"                                 Here is a list of our rules, respect them.\n\n\n1. Do NOT use any kinds of hacks and cheats. \n\n2. Do NOT argue with staff, our is last word.\n\n3. Respect other players , especially members.\n\n4. Dont fight with others.\n\n5. Dont use any outgame modified handlings ( use  handling editor for that, more info on F9 ) \n\n6. Never ask for membership, we will ask you .\n\n7. Dont bother staff .\n\n8. Have a bit of experience .\n\n9. If something is not understand to you , just read help on F9 .\n\n10. Dont spam vehicles , dont RAM others.\n\n\nAbove all , have fun !\n\n\n\n\nNote: Every rule break can result as kick / ban or permaban.",false,GUIEditor_Window[1]) 
GUIEditor_Button[1] = guiCreateButton(211,547,128,29,"Accept !",false,GUIEditor_Window[1]) 
addEventHandler("onClientGUIClick",GUIEditor_Button[1],showNamePanel) 
setTimer ( guiSetEnabled, 10000, 2, GUIEditor_Window[1], true) 
triggerServerEvent("rulesOnJoin",source) 
showCursor(true) 
end 
addEvent("blabla",true) 
addEventHandler("blabla",getRootElement(), loled) 
  
  
function showNamePanel () 
    local playerName = getPlayerName ( getLocalPlayer() ) 
    if guiGetVisible (GUIEditor_Window[1]) then 
    guiSetVisible (GUIEditor_Window[1], false) 
    showCursor (false) 
    else 
    guiSetVisible (GUIEditor_Window[1], true) 
    showCursor (true) 
    triggerServerEvent("namePanelServer",source) 
    end 
end 
addEvent("namePanel",true) 
addEventHandler("namePanel",getRootElement(),showNamePanel) 

Read the WIKI, triggerServerEvent is not like triggerClientEvent.

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