Hello all community members,
So My freind gave me E2 And Hes offline now For few months I'd like to ask about something ,
In this e2 anyone goes inside the circle it shows in ur chat his health guns ect, And it should Psay to him to stop raiding me , Now It doesnt psay to him anymore Because I forgot the code to put in Console to fix it , I removed my Garrys mod and re installed it And I cant remember the code If anyone knows the code please tell me here, I think the code for ulx psay or something.
Thanks alot.
afaik you can't display messages in someone else's chat using E2
[QUOTE=JackYack13;43325499]afaik you can't display messages in someone else's chat using E2[/QUOTE]
You can run console commands on yourself, so you could run the cmd: ulx psay "name" message.
Which would display the message in the target's chat.
Yes I can here is the code
" @name Raider Info
@inputs
@outputs
@persist [T W B]:vector
@model
if(first() | duped()){
T = vec(0,150,255)
W = vec(255,255,255)
B = vec(0,0,0)
runOnTick(1)
entity():setAlpha(0)
}
Col = hsv2rgb((curtime()*40)%360,1,1)
findByClass("player")
Raider = findClosest(entity():pos())
if(entity():pos():distance(Raider:pos()) < 100){
timer("Raid",1)
timer("Warning",1)
if(clk("Warning")){
concmd("ulx psay " + Raider:name() + " [Raider Alarm] Stop raiding " + owner():name() + " Or you will Die, you have been warned.")
timer("Warning",15000)
}
if(clk("Raid")){
printColor(T , "Name" , B , ": " , W , Raider:name()
, T , " Health" , B , ": " , W , Raider:health()
, T , " Weapon" , B , ": " , W , Raider:weapon():type()
, T , " Job" , B , ": " , W , teamName(Raider:team()))
}
timer("Raid",5000)
}
"
in the code it says " concmd("ulx psay " Now I need to know how make the message goes to the raider Because I forgot what was the command
[code]code tags please[/code]
This will only work if the server has ULX installed.
And it has ulx
What exactly is it doing? It seems like it should work to me.
[editline]30th December 2013[/editline]
wait, are you looking for the console command to let you run concmd?
[editline]30th December 2013[/editline]
If so, it's wire_expression2_concmd 1
[QUOTE=One Ear Ninja;43354105]What exactly is it doing? It seems like it should work to me.
[editline]30th December 2013[/editline]
wait, are you looking for the console command to let you run concmd?
[editline]30th December 2013[/editline]
If so, it's wire_expression2_concmd 1[/QUOTE]
And the command itself has to be whitelisted as well (I could be wrong, an empty whitelist might allow anything, not sure on the default behaviour).
[lua]wire_expression2_concmd_whitelist "ulx"[/lua] (replace "ulx" with a comma separated list of commands you want to run be able to run (iirc).
thank you !!@!
Sorry, you need to Log In to post a reply to this thread.