function CheckTag( ply )
if string.find( ply:Nick(), "your tag here" ) then
return true
else
return false
end
end
hook.Add( "PlayerInitialSpawn", "CheckName", function( ply )
if CheckTag( ply ) then
ply.tag = true
else
ply.tag = false
end
end )
hook.Add( "ULibPlayerNameChanged", "CheckNameChange", function( ply )
if IsValid( ply ) then
if CheckTag( ply ) then
if ply.tag = false then
ply:ChatPrint( "Thank you for putting on the tag." )
end
ply.tag = true
else
ply.tag = false
end
end
end )
Actually this won't work but you need to check for the tag in the ulx code for reserved slots. Use the same method. Then use the above when you want to give people wearing the tag other benefits in-game.