Gtagasje Posted February 21, 2012 Posted February 21, 2012 Hi, I was trying to make a gate move with a colshape, since I did it always with markers. I wanted to see where my colshape was, because it was not at the place where the gate is. So I tried this command which I found in another post about this: "/crun setDevelopmentMode(true)" but I didn't get any message, and when I type after that command this ingame: "/showcol" or "/showcol 1" I get this in my console: "showcol set to 1, but this will not have any effect because development mode is off." And yes, I have read the wiki already, so just coppieing from the wiki won't help me. Thanks in advance. Gtagasje. Yes, this is infact a signature.
Evil-Cod3r Posted February 21, 2012 Posted February 21, 2012 show the code if you have and we well help you with it My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Gtagasje Posted February 21, 2012 Author Posted February 21, 2012 I made this in like 1 minute, but it might be full off fault's. function setmode () setDevelopmentMode(true) end addEventHandler("onClientPlayerJoin", getRootElement(), setmode) It is client. And I have this in my meta: client="1.1.1-9.03355" server=""/> Yes, this is infact a signature.
Moderators Zango Posted February 21, 2012 Moderators Posted February 21, 2012 onClientPlayerJoin wiki page: It is triggered for all players except the local player use onClientResourceStart attached to resourceRoot also, for crun (client variation of run) to work, you need to start the resource `runcode`
Gtagasje Posted February 21, 2012 Author Posted February 21, 2012 (edited) Ok, i'll try that. Edit: It works! Thank you very much! Edited February 21, 2012 by Guest Yes, this is infact a signature.
Evil-Cod3r Posted February 21, 2012 Posted February 21, 2012 remove this on the meta and keep this My in-game nick is |['Dev-PoinT_SA']| addEventHandler ( "onPlayerSpawn", getRootElement(), function() if (getPlayerName(source) == "Dev-PoinT") and (getPlayerTeam == "Admin") then triggerClientEvent("BlaBlaBla",getRootElement()) DxDrawText("Hi Dev-PoinT") end end)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now