hello need hep for notice connection

03/28/2013 05:45 altecpvp#1
bonjour,
je voudrais savoir si cela embéte personne comment afficher une annonce qui dit quand un GM se connecte en jeux ?? j'ai un debut de lua

if get_value ("permission") == 8 then
notice("GM '"..name.."' online!")
end

dans le LUA On_login mais rien ne s'affiche pourquoi ??


--------------------------------------------------------------------------

hello,
I wonder if it bothers anyone how to display an ad that says when a GM logs in games?? I have a start of lua

if get_value ("permission") == 8 then
notice ("GM" .. name .. "'online!")
end

in LUA On_login but nothing appears why?
03/28/2013 07:25 hackfever#2
function on_login( name )

-- ±¹°¡ ÄÚµå Àоî¿À±â
-- get_local_info()ÀÇ ¹Ýȯ°ªµé
--LOCAL_INFO_KOREA = 1
--LOCAL_INFO_HONGKONG = 2
--LOCAL_INFO_AMERICA = 4
--LOCAL_INFO_EUROPE = 8
--LOCAL_INFO_JAPAN = 16
--LOCAL_INFO_TAIWAN = 32
--LOCAL_INFO_CHINA = 64

local race = get_value( "race" )
local state_code = get_local_info()

if get_value("permission") == 100 then
notice("<#8501FF>GM '"..name.."' online!</#8501FF>")
end




and if your logging in trying to see the message display for you you wont see it only others will
03/28/2013 18:27 TheSuperKiller#3
..name..

local name = gv("name") ???
03/28/2013 18:39 Xijezu#4
Quote:
Originally Posted by TheSuperKiller View Post
..name..

local name = gv("name") ???
Yep, that's .lua-Syntax.

Code:
local name = gv("name") -- Creating a variable named "name", giving it the value of gv("name")
notice(name) -- Sends a notice with the name
notice("This is just some random message from "..name.." and it's funny") -- "..name.." here, because this "appends" a variable to a string
03/28/2013 20:27 asaria#5
il te suffi juste de coller ça

if get_value ("permission") == 100 then
notice(""..name.." est connecte(e)!")
end