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.") }
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!")
print(type(player(id, "usgn"))) --> number