• Making it so only Owner group can see this?
    2 replies, posted
Im using ULX (group name: owner) and i want to make it: [lua] if v:IsSuperAdmin() then net.Start("reporter_sendtext") net.WriteString("Player "..ply:Nick().." has joined with the SteamID "..ply:SteamID().." ("..ply:IPAddress()..")") net.Send(v) [/lua] Because at the moment it says the ip to all superadmins (a few players) and i want it to just say to the owner group, any help i have tried v:IsOwner
[lua] for k,v in pairs( player.GetAll() ) do if ( v:IsUserGroup( "owner" ) ) then net.Start( "reporter_sendbox" ); net.WriteString( "Player " .. ply:Nick() .. " has joined with the SteamID " .. ply:SteamID() .. " (" .. ply:IPAddress() .. ")" ); net.Send(v); end end [/lua]
[QUOTE=>>oubliette<<;40431670][lua] for k,v in pairs( player.GetAll() ) do if ( v:IsUserGroup( "owner" ) ) then net.Start( "reporter_sendbox" ); net.WriteString( "Player " .. ply:Nick() .. " has joined with the SteamID " .. ply:SteamID() .. " (" .. ply:IPAddress() .. ")" ); net.Send(v); end end [/lua][/QUOTE] Thanks! Will test now [editline]26th April 2013[/editline] Had to change [lua] net.Start( "reporter_sendbox" ); [/lua] to: [lua] net.Start("reporter_sendtext"); [/lua] And it worked!
Sorry, you need to Log In to post a reply to this thread.