For example:
1
2
3
4
5
6
2
3
4
5
6
admins = {1,2,3}
function sendMsgToAdmins(){
	local adm_id = ??
	msg2(adm_id,"This msg is for admins only.")
}
Scripts
Send message to spesific user group
Send message to spesific user group
1

admins = {1,2,3}
function sendMsgToAdmins(){
	local adm_id = ??
	msg2(adm_id,"This msg is for admins only.")
}
admins = {
[50998] = true,
[7844] = true
}
if admins[ player(id, "usgn") ] == true then msg(player(id, "name") .. " is an admin") end
admins = {
[50998] = true,
[7844] = true
}
function sendMsgToAdmins(messageText)
local playerList = player(0, "table")
for i = 1, #playerList do
local id = playerList[i]
if admins[ player(id, "usgn") ] == true then
msg2(id, messageText)
end
end
end
sendMsgToAdmins("Hello, Moto!")
Hajt's post
VADemon: You don't need to convert player(id,"usgn") to number, have a look at this:print(type(player(id, "usgn"))) --> number
1
