Jump to content

Rules


yoya99

Recommended Posts

Posted

hey i have this rules resource and i want that when a player join his rules are shown automatically..and when he logins or he plays as a guest his rules are disappearing...

CODE REMOVED BY Solidsnake14

Posted
CODE REMOVED BY Solidsnake14

Please stop, you don't actually know proper scripting.

when dealing with dx, you have to use render events.

this is how it should be.

CODE REMOVED BY Solidsnake14

Posted

It's not actually about being perfect, i noticed from your posts, you're making horrible mistakes, please learn more scripting, i believe within a month or two you will be able to help people.

Posted
It's not actually about being perfect, i noticed from your posts, you're making horrible mistakes, please learn more scripting, i believe within a month or two you will be able to help people.

Ok , Thank's for the advise

Posted

Theres no event for that clientsided so use triggerClientEvent...

Something like this:

--Server 
addEventHandler("onPlayerLogin", root, 
    function () 
        triggerClientEvent(source, "onClientPlayerLogin", root) 
    end 
) 
  
--Client 
addEvent("onClientPlayerLogin", true) 
addEventHandler("onClientPlayerLogin", root, 
    function () 
        removeEventHandler("onClientRender", root, showRules) 
    end 
) 

Should work

Posted
--Server 
addEventHandler("onPlayerLogin", root, 
    function () 
        triggerClientEvent(source, "onClientPlayerLogin", root) 
    end 
) 
  
--Client 
addEvent("onClientPlayerLogin", true) 
addEventHandler("onClientPlayerLogin", root, 
    function () 
        removeEventHandler("onClientRender", root, showRules) 
        shown = false 
    end 
) 

Posted

No , you can see , --Server

put in serverSide script ,

--Client

put in ClientSide script ,

check meta.xml to know witch script is client and server

Posted

He can always hide it by pressing f3, but anyway, you can do it using an export, i cant tell you how now since i'm on phone, but read this wiki page:

  
call 
  

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...